this post was submitted on 21 Oct 2024
61 points (89.6% liked)

Programming

17479 readers
221 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
top 19 comments
sorted by: hot top controversial new old
[–] [email protected] 23 points 1 month ago (1 children)
[–] [email protected] 63 points 1 month ago (4 children)

Nah, a lot of old tech. I used to work on shit like this... loading all your images (including the fucking rounded corners for IE) into a sprite... setting up caching, using prefetching and inlined CSS/JS for critical path stuff.

There was a whole industry around web performance in the days that a customer might be trying to download your site over their 256 kbps connection.

It's neat tech and I miss fiddling with it. I honestly found it a lot more fulfilling than the SPA era of web design.

[–] [email protected] 45 points 1 month ago (1 children)

Aw, c'mon! Who doesn't enjoy piping ten megabytes of JavaScript through Webpack to achieve those crucial on-scroll effects on an otherwise static page?

[–] [email protected] 46 points 1 month ago (2 children)

Hey let's not lie to ourselves... most of those megabytes of JS are there to disable the copy functionality for anyone browsing our site.

Why? ... reasons. Someone in marketing said a thing once.

[–] [email protected] 8 points 1 month ago

I once had to add in custom tab behavior because a green screen used to work in a specific way in an ordering page. The IBM system that we replaced only had a couple of users but was responsible for something like 30-40% of all orders in a small company. So in it went! Fun times.

[–] [email protected] 2 points 4 weeks ago

Nothing has ever worked less than giving people text and getting mad when they have it. It was a joke on Geocities in the ninteteen goddamn hundreds, and yet people keep fuckin' trying.

[–] sjpwarren 8 points 1 month ago (2 children)
[–] [email protected] 10 points 1 month ago

<Pig Latin instructions unclear, entire site rewritten in XHTML />

[–] [email protected] 2 points 1 month ago

Such a nice library.

[–] [email protected] 4 points 4 weeks ago

See: The Website Obesity Crisis.

The author links their tweet saying "your website should not exceed in file size the major works of Russian literature." At the time, that page on Twitter was 900 KB. Today it is 11 MB.

[–] RustyShackleford 3 points 4 weeks ago* (last edited 2 weeks ago) (2 children)

Noob question: what is the SPA era of web design; when did it roughly start?

[–] [email protected] 12 points 4 weeks ago (1 children)

By SPA I mean "single page application" it's currently the dominant approach and powered in a large part by technologies like react and node. I'm not certain when it started precisely... with technology it's more a case of "rising to prominence" rather than "first happened" I think it probably really started going around 2014 with HTML5?

SPAs are still pretty hot but they've waned in popularity due to overuse and general complexity. Essentially your website becomes a single page that just swaps out what's shown to the user as they "navigate" between different parts of the site. When well done this can make a site incredibly responsive, but it's often quite poorly done and responsiveness can end up blocked by server requests anyways.

[–] [email protected] 4 points 4 weeks ago (1 children)

Interestingly the pendulum is now swinging the other way. If you look at next.js for example, server generated multi page applications are back on the menu!

[–] [email protected] 4 points 4 weeks ago

Yea, I don't want to totally shit on SPAs but server-side rendering has a lot of advantages and is so much fucking simpler.

I'm a PHP dev and DB specialist in my day job - there are a lot of good server-side tech options.

[–] [email protected] 5 points 4 weeks ago

I'd place it right around when angular started gaining traction. That's when it became common to serve just one page and have all the navigation happen in JavaScript.

[–] bitcrafter 9 points 1 month ago

I disagree that the web site is fast; it took at least 10 seconds before the video would start playing.

[–] [email protected] 6 points 4 weeks ago (1 children)

McMaster Carr is the greatest site ever. I could browse forever

[–] [email protected] 2 points 4 weeks ago

I use the site daily. Being able to download FREE CAD models in one click, nominal dimensions for nearly everything, and linked compatible components makes design so much simpler. I can swap a screw out in my assemblies in seconds. Other online hardware catalogs just don't compare. It's the perfect first draft resource.

If McMaster ever goes down it's going to take twice as long to do any design.

[–] [email protected] 1 points 4 weeks ago