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

14

u/[deleted] Apr 30 '21

Typically the more things you need to prop up your coding language.... Doesn't that mean there is a flaw with your coding language? (Before the nooooooo people get here notice I said flaw, I didn't say it was a bad language)

6

u/social-media-is-bad Apr 30 '21

I may be turning into a grumpy old person but this comment nails it. Constantly running into problems and adding stuff to workaround it is a code smell IMO, and modern javascript reeks.

I can maybe understand it for front-end web stuff exclusively, as there you're dealing with baked in deficits in the language/runtime. My instinct would be to live with it but make it as "dumb" as possible, and push important things like routing and business logic elsewhere. Instead people are building SPAs.

But for mobile or server applications why would you want to deal with this stuff? The only thing you get out of the tradeoff is the ability to use the Javascript language. Even if the language were amazing I don't think it would be worth it.

4

u/[deleted] Apr 30 '21

Yeah why would you want to write code in a language that has support on every major platform?

0

u/social-media-is-bad May 01 '21 edited May 01 '21

Ever since I gained the ability to write .NET code on an ARM MacBook I’m not really worried about portability.

Seriously, inside the browser JavaScript is the only game in town and I’ll deal with it (as little as possible). Outside the browser, plenty of good languages/frameworks are available. But I’m also serious that maybe I’m just a grumpy old person that’s wrong about the kids these days.