javedAB, to javascript

want fast-loading pages

one way to achieve this is by loading only the necessary initially

load the rest on hover or button click for a smoother experience

aeveltstra,
@aeveltstra@mastodon.social avatar

@javedAB Other ways to achieve it include removing Javascript altogether and replacing it by server-side scripting, as well as serving most if not all of your sources over a fast CDN.

javedAB,

@aeveltstra server side rending is a valid approach. i started with @astro and @solid_js . however, from what i guess, server side rendering is more cost intensive than static html

fast cdn can be combined with lazy loading

kubikpixel, to rust
@kubikpixel@chaos.social avatar

»Prusti is an automated program verifier for Rust, based on the Viper infrastructure. It leverages Rust's strong type guarantees to simplify the specification and verification of Rust programs.«

Do any of you know this and use it or are there "better" or even integrated tools for this, if such a thing is needed at all?

🦀 https://www.pm.inf.ethz.ch/research/prusti.html


niklaskorz,
@niklaskorz@rheinneckar.social avatar

@kubikpixel I didn't use it myself yet but one of the creators of Prusti is giving a talk about it at RustFest Zürich next month: https://rustfest.ch/talks/beyond-memory-safety/

kubikpixel,
@kubikpixel@chaos.social avatar

@niklaskorz will videos of the conference presentations be available on the Internet?

(Unfortunately I can't be there for reasons)

mischavandenburg, to NixOS
@mischavandenburg@toot.community avatar
danielsiepmann,

@mischavandenburg Very cool. I started the same way.

Maybe my path is helpful for you: git.daniel-siepmann.de/daniels…

noellemitchell, to webdev
@noellemitchell@mstdn.social avatar

I don't know why or how my blog has 17K views, it's not that great looking lol 😂

https://noellesbookshelf.neocities.org

quite_adept,
@quite_adept@mas.to avatar

@noellemitchell

sorry that was me, I opened your site in 17k new tabs... but probably a lot of it is from web crawlers, at least I believe most of the traffic on my sites isn't real people based on the numbers and distribution...

noellemitchell,
@noellemitchell@mstdn.social avatar

@quite_adept I kind of figure it isn't real traffic either. Hardly anyone clicks on links 😆

stevensanderson, to programming
@stevensanderson@mstdn.social avatar
kaiserkiwi, to workersrights
@kaiserkiwi@corteximplant.com avatar

Trying to work on my couch for the day. See how it goes.

I usually have two 4K monitors attached to the MacBook and have the MacBook open to use the additional space. But I usually have to manage a dev team. On Friday it’s usually much quieter and I can focus on my dev stuff.

If I work on private projects I do it often from the couch so I know it's doable in theory.

I always have the option to switch to my desk so I guess it's fine.

But the goal is to find a good workflow to only work on one screen from time to time to be more flexible with where I work. For example: I never worked in a café and would like to try this one day.

evanesca,
@evanesca@literatur.social avatar

@kaiserkiwi Yeah, that's a huge downsize!
Do you have a gadget to keep the laptop off your lap? I never owned a mac so I don't know if "the device is hitting up and burning my knee-caps" would be an issue for you, but it was for me when I had to code from the sofa.

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

@evanesca Since Apple switched to Apple Silicon this isn't an issue. I have a M1 Pro, which is not as efficient as current processors, but it get's barely warm.

When I had an Intel MacBook it was terrible ^^" But it was also so loud I couldn't concentrate. For the M1 I never ever heard the fans once since I have it ^^

stevensanderson, to datascience
@stevensanderson@mstdn.social avatar

Learn how to handle rows in R containing specific strings using base R's grep() and dplyr's filter() with str_detect(). Select or drop rows efficiently and enhance your data manipulation skills. Give it a try with your datasets for better data cleaning and organization.

#R

Post: https://www.spsanderson.com/steveondata/posts/2024-05-23/

ErikJonker, to Software
@ErikJonker@mastodon.social avatar

Amazing resource on software evolution, maintenance, migration and improvement.

https://aim42.github.io/

morix, to shitposting
@morix@loci.onl avatar

So with the upcoming UK general election I got inspired to make a fun little toy:

https://github.com/twitchy-ears/2024-uk-general-election-bingo

Basically its some PHP that generates very simple/awful web pages with a CSV file as a data source (yeah it should be an SQLite DB or just statically generated data - I know) to act as random bingo cards to play along with the election, cross them off as they lose their seats :)

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Want to split numbers up, because why not? I go over this in todays post using gsub() and strsplit() functions from base R.

Post: https://www.spsanderson.com/steveondata/posts/2024-05-22/

#R

image/png

davidbisset, to programming
@davidbisset@phpc.social avatar

"Clever code is probably the worst code you could write... and clear, readable code is probably the hardest to write."

https://read.engineerscodex.com/p/clever-code-is-probably-the-worst

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset one thing i found that can convince a lot of developers to stop doing those one liners "because its fewer vars and faster" is if the language can stop being compiled at an assembly stage.

the compilers of most languages will end up making ::temp# variables to assign the results of each call to, ergo being the same as if you had declared them yourself.

Lumpbucket, to demoscene
@Lumpbucket@mastodon.social avatar

Yesss! Decent progress on my demo for Nova today. Feels good 👍

jtruk,
@jtruk@mastodon.social avatar

@Lumpbucket Oric Oric Oric! Oi oi oi!

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Code drunk, debug sober. Bah! Just fixed three bugs after a pint of Tundra.

(This is in no way meant to be role model behaviour. There just happens to be a lovely pub by the seashore in Bray where you can sit outside and it’s a nice distraction in the evenings when the weather is good and I don’t feel I’ve done enough in the day* and need a change of scene.)

  • It doesn’t help that I never think I’ve done enough in the day. 🤷‍♂️

aral,
@aral@mastodon.ar.al avatar

@JohannaMakesGames Haha, indeed. (Or is it worse if you’re ok the day after?) :)

Yeah, I know. And I think I’m way better than I was. I’ve convinced myself that some day you do a little, some days more, and the most important thing is to keep making progress. Harder when sometimes it feels like absolutely no one on the planet gives a single damn what you’re making but, hey, it’s the road I’ve chosen apparently. Better than being applauded from all sides for mediocrity, that’s for sure :)

aral,
@aral@mastodon.ar.al avatar

@JohannaMakesGames * some days, even (yeah, I know) :)

metin, to demoscene
@metin@graphics.social avatar

This demo from 2016 is less than 4 kilobytes (❗), and made my jaw drop… 😮

https://www.youtube.com/watch?v=SFoyJED5A4s

Love the soundtrack too. 🤘😎

metin,
@metin@graphics.social avatar

@sedincore Thanks! 👍

metin,
@metin@graphics.social avatar

@f4grx Just about everything must have been generated at the start of the demo, including the synth sounds and textures on the 3D models.

reillypascal, to Blog
@reillypascal@hachyderm.io avatar

I did a write up of setting up Webmentions on my site! I had mentioned it earlier, but there was one stumbling block that took me longer to figure out.

Webmentions let me get notified when people share my posts, respond to my comments on other sites, etc., and lets me use my site for a lot of the kinds of interactions I'd otherwise have to do on social media.

https://reillyspitzfaden.com/blog/05-21-2024

#IndieWeb #Blog #Webmentions #Microformats #WebDev #WebDevelopment #Programming #Coding

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • rosin
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • lostlight
  • All magazines