this post was submitted on 28 Aug 2024
73 points (100.0% liked)

technology

23313 readers
74 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 

Sites like Hexbear source scripts from only one domain (hexbear.net). I like those sites.


Other sites loop in a few JavaScript libraries. They have a few domains asking for permissions. That's okay. A little lazy, but acceptable.


Then you have the corporate websites with, like, sixty JavaScript domains. Holy crap! What are scripts from facebook, pinterest, and amazon doing on this news article about jellyfish? brow And the website is perfectly functional with just a couple domains enabled. fry

top 18 comments
sorted by: hot top controversial new old
[–] Gorb@hexbear.net 21 points 2 months ago* (last edited 2 months ago) (1 children)

I remember the days when it felt a little spicy just adding the google analytics script on a website that was entirely jquery... Aaaah jquery, peak of internet

[–] smpl@discuss.tchncs.de 14 points 2 months ago* (last edited 2 months ago) (3 children)

Is that still the default answer on stackoverflow?

  • Q: I'm having trouble turning on my computer.
  • A: Use jQuery!
[–] Gorb@hexbear.net 15 points 2 months ago* (last edited 2 months ago) (2 children)

When node was becoming popular I was tempted to port jquery and make some demonic server side jquery library. Maybe one day. Just need to make an XML based OS first

[–] Findom_DeLuise@hexbear.net 8 points 2 months ago

Rewriting the interface to firewalld in JQuery as a joke was not okay

[–] someone@hexbear.net 5 points 2 months ago (2 children)

Node is one of those things that baffles me. Why use a shitty language originated during a two-week cocaine binge by Brendan Eich as the basis of server backends? I can understand the tragic compatibility need to keep using Javascript in browsers, especially after Google inexplicably pulled the plug on Dart as a potential browser language and redesigned it to be just another Typescript clone that's been crippled so that it can transpile to Javascript. But it's not like we're starved for good backend languages.

[–] Gorb@hexbear.net 2 points 2 months ago* (last edited 2 months ago) (1 children)

I think it was out of a desire to reduce staff tbh. Around the time the concept of a full stack dev was becoming popular and the idea is one person does everything rather than splitting the various components into different specialties and since js was mandatory on the browser why not get the frontend devs to write the backend as well. It was a tech bro psyop thats my theory.

[–] someone@hexbear.net 5 points 2 months ago

What sort of incompetent no-long-term-planning 3-second-attention-span halfwit would ever think that using a dynamically-typed scripting language with barely any standard library and which is famous for undefined behaviour would make a good backend language, just to save a few dollars in the short term, was ever a good idea?

Oh, right, just every tech company upper-management drone on the planet.

[–] alexandra_kollontai@hexbear.net 1 points 2 months ago

It's a fun programming language.

[–] BeamBrain@hexbear.net 12 points 2 months ago* (last edited 2 months ago)

Ah, StackOverflow.

"How do I do x with platform y?"

Responses:

  • "Platform z is better. Use that instead." [+57]
  • "Nobody does x anymore. You should be doing w." [+108]
  • "This is for work and company policy dictates I use platform y and my team could not get approval for w." [-1]
  • "Thread closed. Question is a duplicate of another: 'How do I customize colors for the x I'm doing on platform y? (2007)'"
[–] propter_hog@hexbear.net 9 points 2 months ago* (last edited 2 months ago)
  • Q: how to quit vim
  • A: have you tried jQuery?

It got to a point that it was almost like a religion, like we were going to see pairs of programmers walking through neighborhoods, handing out chic tracts on jQuery.

[–] neo@hexbear.net 18 points 2 months ago (1 children)
[–] Edie@hexbear.net 7 points 2 months ago* (last edited 2 months ago)

I believe you can also enable scripts from specific domains by noop'ing only that domain.

[–] keepcarrot@hexbear.net 17 points 2 months ago (1 children)

I hate trying to figure out which domains are just for advertising/tracking/shady stuff and which are actually necessary for seeing the actual content I want.

[–] TankieTanuki@hexbear.net 14 points 2 months ago

It can be a chore. I'll often say "fuck it" and temp enable everything in the tab, but I don't like letting them win.

[–] pinguinu@lemmygrad.ml 8 points 2 months ago (1 children)

install umatrix instead, more control over which assets can be loaded

[–] itsraining@lemmygrad.ml 2 points 2 months ago (1 children)

I thought Umatrix was unmaintained?

Anyway, I used to use it till a few years ago. It's a really powerful extension, but it breaks some sites with the default settings and it can get tedious reenabling scripts one by one to find the bare working minimum. I have since switched to uBlock of the same developer and it seems to me an adequate compromise between privacy, better performance and working sites.

Unfortunately the modern web has turned into tihs so you can't even browse without an ad blocker anymore.

[–] pinguinu@lemmygrad.ml 2 points 2 months ago

That's fair. I've used noscript for 4 years and the default is awful. I looked a bit into using uBlock for blocking scripts but I just noped out.

[–] keepcarrot@hexbear.net 5 points 2 months ago

I hate trying to figure out which domains are just for advertising/tracking/shady stuff and which are actually necessary for seeing the actual content I want.