logoalt Hacker News

torginus • today at 10:11 AM • 6 replies • view on HN

I don't get the Js hate. I have meaningful experience working in many languages (C++,Js,Ts,C# to name the biggest by LOC written). I've shipped nontrivial software in all of these.

I think Js is.. okay? I can name some strengths and weaknesses,both of the language itself and the culture/ecosystem, but I certainly don't hate it.


Replies

baq • today at 10:15 AM

It’s become okay in the past few years after two decades of absolutely Herculean effort of the whole industry and some particularly dedicated individuals.

The foundation is still abysmal, but it doesn’t hurt because you don’t have to look at it anymore or you can use modern facilities instead. Note the striking similarity to what LLMs give you, it’s the same thing on a higher level.

➕ show 2 replies
amelius • today at 10:14 AM

Javascript is actually a great language. Its garbage-collected closures made it easy to do GUI programming.

The C/C++ world where browsers came from didn't have this (closures). So it is actually a miracle we got a language as (relatively) great as Javascript.

➕ show 4 replies
GuB-42 • today at 11:19 AM

I don't get the hate for any mainstream language.

I mean, you can hate a language compared to another language, but to the point of making you hate programming? To me, if you do, you probably don't really like programming in the first place. Especially considering that Javascript is a conventional language with variables, conditions, loops, functions, etc... the kind that should be mostly transparent to an experienced programmer.

It would be like a woodworker saying that pine made him hate woodworking, sure, you may prefer to work with oak, but pine is still wood.

➕ show 1 reply
citrin_ru • today at 11:00 AM

JS is not the worst language but I would not say it has elegant and consistent design like some other languages do. Not every languages has the list of quirks as long as JS: https://github.com/denysdovhan/wtfjs (but C/C++ have much more foot-guns).

➕ show 1 reply
vanderZwan • today at 10:59 AM

I think people both are stuck in the 2000s image of JS, and conflate the language with the ecosystem a lot, as well as with using it where other tech stacks would be so much saner. The latter two things give JS a worse rep than it deserves imo. Although to be fair, if you write JS for work the ecosystem is almost unavoidable, so hating JS for that is somewhat deserved.

Personally, ever since ES5 I really started to enjoy writing javascript, and by now practically all the warts feel quite easy to avoid. I can't say if that's personal mastery or language improvements, probably bit of both.

I still hate the ecosystem though, and always disliked it more than I ever disliked the insane var scoping rules or whatever from twenty years ago.

moron4hire • today at 10:27 AM

He said his shift to management happened 5 years into his career, so he wasn't ever very experienced as a programmer.

➕ show 1 reply