14

JavaScript is a language that's easy to learn and has a gorillion features shoehorned in, to varying degrees of success. If you're relatively new to programming (just got done learning Python/Java) there's bound to be something new that you learn from JavaScript due to all its extra added features. Though these extra features are cool, over time you will slowly learn of the flaws that JavaScript has, and you will begin to associate "easy to learn with cool features" as the worst mistake that the language made. So, surely the answer must be to reduce how easy things are to learn. You will start to worship anything that excludes the less experienced and has cool features - for example Haskell or JS Frameworks - and you will denigrate solutions that seem too "simplistic and dirty". You will point to examples like C or Adobe Flash, citing that they have must have security vulnerabilities because they're accessible and so stupid people must be creating footguns with them. You will completely neglect the ways in which they're poorly designed and you will completely ignore the positives of both. Fundamentally, you will refuse to acknowledge that it's possible for software to be accessible and to be designed well at the same time.

Today, the internet is a dumpster precisely because of this false equivalency. It would be easy for Google to remove the guardrails from WebAssembly in some sort of public testing version of Chromium, allowing WASM to support fun little runtimes with 10x the safety of Flash. Artists could use software packages similar to the old Adobe Flash suite in order to make cool things again, expanding beyond the Neocities pages that are currently trendy. Over time, we could improve WASM environments to be incredibly safe, have interesting specialized runtimes and make super cool creations, a development model which basically already worked with HTML and CSS. But, because people still think accessible === vulnerable, we will never have that, and so every site will have the same hyperminimalistic slop look, and artists will be pushed onto the same shitty platforms to do nothing exciting in formats that have existed for centuries.

Programmers learned the wrong lesson in the 00s - that everything needs to be gatekept to protect people from themselves. The actual lesson was that designing things properly can let anyone make anything. Sure, the DOM doesn't satisfy people's need today, but it used to be excellently designed for its task - that's why it could let anyone build something amazing

top 14 comments
sorted by: hot top controversial new old
[-] Nommer@sh.itjust.works 47 points 5 months ago

That's a lot of weird assumptions in one post.

[-] emptiestplace@lemmy.ml 35 points 5 months ago

This is the worst second-hand embarrassment I've experienced in quite a while. I can't imagine working with someone like this.

[-] FizzyOrange@programming.dev 10 points 5 months ago

I mean... let's just hope he isn't doing this professionally.

[-] RonSijm@programming.dev 35 points 5 months ago

It would be easy for Google to remove the guardrails from WebAssembly in some sort of public testing version of Chromium

Google is not the authority on WASM, W3C is. Google diverging from the standards and removing any guardrails would result in "This page only works in Chrome" kinda bullshit we've seen before

[-] SatouKazuma@ani.social 29 points 5 months ago

Easy to learn? Sir, who's your dealer because they're selling you some strong stuff...

[-] MicrowavedTea@infosec.pub 46 points 5 months ago

"C is accessible" is not something I expected to read today

[-] marcos@lemmy.world 32 points 5 months ago

"People complain about C's security issues because it's too easy to learn" was absolutely not on my bingo card either.

The same for "Javascript frameworks exclude the less experienced".

[-] SatouKazuma@ani.social 14 points 5 months ago

People complain about C's security issues because it's too easy to learn.

Wat. That is...one of the opinions of all time, for sure.

[-] oscar@programming.dev 2 points 5 months ago

C is a pretty simple language and relatively easy to learn. But it's a lot harder to be proficient with.

[-] Kissaki@programming.dev 3 points 5 months ago

Aren't they teaching C in kindergarten?

[-] fourwd@programming.dev 8 points 5 months ago

console.log() is really easy to learn, but what happens after that is a complete "wtf"

[-] SatouKazuma@ani.social 3 points 5 months ago

Pretty much. Not to mention so many nonstandard libraries are used...

[-] magic_lobster_party@kbin.run 12 points 5 months ago

Flash was considered unsafe because it allowed malicious actors to write malware.

[-] hector@sh.itjust.works 3 points 5 months ago

It feels soo absurd, but I’m currently kinda drunk soo it’s maybe me 🫥

this post was submitted on 25 May 2024
14 points (100.0% liked)

Programming

17398 readers
173 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 !webdev@programming.dev



founded 1 year ago
MODERATORS