News for hackers. Stuff that matters.
Re:JavaScript Structs by johnfn on Thursday October 10, 2024 @05:34PM (#41803818)
Something about OP didn't strike me quite right, but your explanation here really nails it, I think. Especially because I can see that I'm in quite an old JS cohort - and quite happy with the language as a result - but if I were to start coding in JS yesterday I think I would gnash my teeth and tear out my hair.
Re:JavaScript Structs by iainmerrick on Thursday October 10, 2024 @06:30PM (#41804226)
This is quite a compelling story, but thinking about it, I don’t fully agree.

There’s more than one language that I initially disliked, and only learned to like after some of (what I saw as) the glaring flaws were fixed. After they added more features!

For one, Objective-C. I didn’t like it at all until they added ARC, removing the need for manual addRef / release everywhere. After that, coming to the language pretty late, I came to like Obj-C quite a lot.

JavaScript is another one. For a long time I thought it was an awful language and avoided using it, but a few things have brought me round and now I really like it:

- modules

- async/await

- TypeScript, if you’ll allow that as a “JavaScript feature”

I even quite like JS classes, although I could live without them.

Simplicity is good, but power and expressiveness are also good.