News for hackers. Stuff that matters.
Re:Ask HN: Why is Node.js hated so much? by ruffrey on Saturday October 02, 2021 @10:41AM (#28728932)
Node is hated because programmers are highly opinionated (not in a negative way). Everything with huge usage gets hate, because everything has flaws and trade offs. People get forced to use it at work, sometimes to solve the wrong kinds of problems for it's strengths, which amplifies the dislike. It's the nature of the beast.
Re:Ask HN: Why is Node.js hated so much? by dkarl on Saturday October 02, 2021 @11:47AM (#28729527)
I disagree. Python doesn't get anywhere near the amount of hate as Javascript. Ruby never had that level of hate. Go attracts some criticism, but it also has a lot of ardent supporters. I have extremely negative feelings about Java, but when I work on a Java project, I can't assume that everybody working with me feel the same way. Lots of people who work with Java find it tolerable or even pleasant. Javascript is like PHP; when you join a group of people working in it, you can freely shit on the language without worrying that you're going to hurt anybody's feelings, because everybody hates it. Even people who love it, hate it.
Re:Ask HN: Why is Node.js hated so much? by muzani on Saturday October 02, 2021 @07:15PM (#28732994)
That's interesting. I hate Java and actually like JS. I used to make the same assumption too, that everyone just hated Java and it was easy to hate on.

I used to apply for JS jobs, and the interview would have questions like "What do you dislike about JS?" I couldn't find much to dislike and never got those jobs. Maybe it's a sign of proficiency when you're good enough at a language to hit its limits.

I'd say the other effect is when you join projects built by experienced but non-senior people, it tends to be overengineered. Overengineering shows the ugly side of a language. Everyone assumes that this is normal behaviour for the language, when it's frequently not.

Re:Ask HN: Why is Node.js hated so much? by eska on Saturday October 02, 2021 @03:05PM (#28731089)
As an outsider, I see nodejs differently from js in general. I think nodejs has its flaws, in particular in the ecosystem, but general js is just garbage all the way. I think a lot of people see it this way.
Re:Ask HN: Why is Node.js hated so much? by smitty1e on Saturday October 02, 2021 @10:05PM (#28733930)
I hate:

- the sense that I never really can be sure where the code is executing at a glace;

- the (compared to Python) cruft-laden syntax

JSON was a win. I nearly forgive JavaScript for begetting JSON.

Re:Ask HN: Why is Node.js hated so much? by rektide on Saturday October 02, 2021 @08:26PM (#28733432)
no other language had anywhere near the amount of users who were put onto it, regardless of their tastes. js is ubiquotous, node js highly present.

and unlike these other languages there s not usually one or two ways of doing things. there's so many different frameworks, build tools, countless stacks beyond measure. when someone is force converted onto node they're more likely than not to have poor footing, be unable to make the typical sloe steady grind into proficiency they would with a less diverse language like python or ruby.

Re:Ask HN: Why is Node.js hated so much? by yshklarov on Saturday October 02, 2021 @11:15AM (#28729216)
A fair point, but don't you think it sidesteps the matter at hand? Never mind that other systems have flaws, too. What are the specific reasons that Node.js itself is hated?
Re:Ask HN: Why is Node.js hated so much? by drewcoo on Saturday October 02, 2021 @12:40PM (#28730003)
You are reframing the question then accusing the parent of not answering your goalposts-moved scenario.
Re:Ask HN: Why is Node.js hated so much? by pixelgeek on Saturday October 02, 2021 @11:28AM (#28729351)
> Node is hated because programmers are highly opinionated (not in a negative way).

And in a negative way as well :-) Ask me how I feel about php.

This is, though, a very excellent point.

Re:Ask HN: Why is Node.js hated so much? by CodeGlitch on Saturday October 02, 2021 @11:37AM (#28729436)
> Ask me how I feel about php.

Negative views about PHP is completely justified :)

Re:Ask HN: Why is Node.js hated so much? by linkdd on Saturday October 02, 2021 @09:54PM (#28733885)
Fun fact: PHP stands for "People Hate Perl"
Re:Ask HN: Why is Node.js hated so much? by ukoms on Tuesday October 05, 2021 @05:39AM (#28757155)
Perl is not a bad language. Neither is PHP. I'm using both. And to be honest - it's all about collaboration. Writing something for myself? Perl. Writing anything which will involve anyone else? PHP.
Re:Ask HN: Why is Node.js hated so much? by tonywoode on Thursday October 07, 2021 @05:26PM (#28792302)
writing something that you don't mind if you hate after? PHP. Writing something that you don't mind if you hate after AND if you don't mind if you hate yourself after: Perl
Re:Ask HN: Why is Node.js hated so much? by pixelgeek on Saturday October 02, 2021 @11:38AM (#28729454)
Don't get me started.
Re:Ask HN: Why is Node.js hated so much? by dolni on Saturday October 02, 2021 @01:45PM (#28730465)
Everything has flaws and trade offs, but some things have more flaws than others.

You wouldn't make this statement if to compare bogosort and quicksort, would you?

JavaScript sucks. It isn't the best choice for any problem except where you are forced to use it (the web browser). The only reason we still have it is inertia. PHP is in the same camp.

Programming languages have evolved. We know how to do better now.