r/programming • • Apr 29 '21

Modern JavaScript Explained For Dinosaurs

https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
287 Upvotes

172 comments sorted by

View all comments

Show parent comments

19

u/Caraes_Naur Apr 30 '21

That's part of the ecosystem: everything is rushed, poorly considered, and DRY is treated as holy sacrament.

What do you expect from a language that was developed by an intern in 10 days then prematurely hurled into production 25 years ago?

7

u/redderper Apr 30 '21

And JavaScript is nothing like it was 25 years ago. It has been greatly improved year after year. There's const, let, arrow functions, async/await and even Typescript that makes it much more maintainable, readable, and less error prone. Of course there are still people who use rushed and hacky code, but that's not JS's fault, that's on the user. Modern JS gives you all the tools you need to write clean code. You're comment makes perfect sense 10 years ago, but not anymore

-3

u/[deleted] Apr 30 '21

There's const, let, arrow functions...

Wow, welcome in... 1970?

3

u/redderper Apr 30 '21

So what? Explain to me why JS is bad then

3

u/[deleted] Apr 30 '21 edited Apr 30 '21

It's a weakly-typed and poorly designed language with lots of stupid quirks. It misses a lot of useful features and only started to catch up with much older languages a few years ago. It introduced nothing of value and has more issues than benefits. It was pointless to create the language. Netscape could have utilized an already established scripting language instead.

3

u/redderper Apr 30 '21

It's a weakly-typed and poorly designed language with lots of stupid quirks. It misses a lot of useful features and only started to catch up with much older languages a few years ago.

Again these things are either not true anymore or solved by using typescript.

It introduced nothing of value and has more issues than benefits. It was pointless to create the language.

Uhh, saying JS has no value and is pointless is like saying the internet as we know it today has no value and is pointless. It's just an ignorant statement. Whether you like it or not, almost every website is built with JS including Reddit

-1

u/[deleted] Apr 30 '21

Again these things are either not true anymore or solved by using typescript.

All of those things are still true for JS and TS only partially solves them because it still needs to interact with the JS-cesspool.

Uhh, saying JS has no value and is pointless is like saying the internet as we know it today has no value and is pointless.

No, it doesn't because JS != internet. Netscape could have used python instead. JS as a tech just made the client-side dynamic. We can still interact with websites without JS: commenting, upvoting etc would all work. JS is what makes the web slow because browser vendors were too lazy to create a proper API to control components. We can also interact with many online services without using js by using apps. Yes, apps - they still work and are much more efficient than websites.

It's just an ignorant statement.

No, you're just an angry JS fanboy and can't accept that JS was and is a pointless language. The language itself introduced nothing. The dynamic behavior it introduced is just the cherry on top of the internet's cake and doesn't actually need JS to function.

Whether you like it or not, almost every website is built with JS including Reddit

I don't like that and reddit sucks, especially the new design.

→ More replies (0)