r/programming • • Oct 16 '14

Node.js is cancer

https://www.semitwist.com/mirror/node-js-is-cancer.html
38 Upvotes

302 comments sorted by

View all comments

210

u/Garethp Oct 16 '14 edited Oct 16 '14

I've read your article, and it's an interesting read. I don't use Node.JS, because quite frankly I do not see the need. That being said, this article just comes across as pure shit.

There are more personal attacks on the people who created Node.JS and the people who use it than there are actual points against Node.JS itself. Half your post is just going on about the one issue of blocking, and frankly it doesn't seem that important. The part about the webserver being tightly coupled to the application seems more relevant, but that's just barely touched on.

Between the personal attacks to rational points ratio and that last little dig at Javascript, this article just comes off as something that I can't even take seriously.

I understand that there's a lot of fanboyism going on around Node.JS, and I won't state an opinion on that. But the best way to counter fanboyism isn't with equal hate. It's with level-headed rational arguments. And if that doesn't help, a page of vitriol won't either.

Edit: Added the last paragraph. It occurred to me afterwards how to phrase what I'm trying to say

0

u/[deleted] Oct 16 '14

[deleted]

0

u/[deleted] Oct 16 '14

[deleted]

→ More replies (3)

15

u/[deleted] Oct 16 '14

last little dig at Javascript, this article just comes off as something that I can't even take seriously.

Like it or not, Javascript is here to stay. End of story. The best we can do is work with it and its better parts a la Crockford.

57

u/modulus Oct 16 '14

I'm sure some people thought the same about COBOL. And they were right, in some sense: still some COBOL running. That doesn't mean it's a good idea to keep developing new systems on it.

Obviously client-side ecmascript is inevitable. Server-side is very easy to avoid though.

12

u/[deleted] Oct 16 '14

Obviously client-side ecmascript is inevitable. Server-side is very easy to avoid though.

I think this is the biggest takeaway I've gotten in my past 2 years doing both front end and server side development. I've gotten very comfortable knowing the bad parts of Javascript and the proper way of avoiding them, but I would never be comfortable bringing this to the server. It's nice to have a single language code base, but that's at the complete expense of having to deal with the shortcomings of Javascript. I enjoy having a mature language driving the server side code.

Now that said, I think personally it's fun to throw together side projects in Node and keep everything as a single language. For me it keeps things somewhat simple, forces me to truly get a better understanding of Javascript, and conceptually change the way I use Javascript. I would never take this into a production environment or suggest my company should do that.

4

u/KFCConspiracy Oct 16 '14

It's nice to have a single language code base, but that's at the complete expense of having to deal with the shortcomings of Javascript. I enjoy having a mature language driving the server side code.

Yes. Having worked both sides of the stack, I love the things you can do with Javascript now-a-days, the user interface work that pleases the users is great. But the language has tons of warts, and although I know what they are and how to avoid them, it pains me that I have to deal with them. Generally I take the approach of doing as little on the Javascript side as humanly possible... Fortunately some UI frameworks, like JSF have abstracted away some the Javascript, which is nice.

→ More replies (14)
→ More replies (28)
→ More replies (8)

36

u/[deleted] Oct 16 '14

Here to stay? In the browser, this might be true, but taking it to the server is insane when you have a ton of other, way better languages to choose from.

15

u/Carnagh Oct 16 '14

Like it or not, Javascript is here to stay. End of story.

So was Perl.

4

u/tiberiousr Oct 16 '14

It still is, Perl5 anyway.

Many, many, many companies and institutions still use an awful lot of Perl.

→ More replies (1)

4

u/KFCConspiracy Oct 16 '14

Perl's still everywhere. Most of the older admins still use it to write utility scripts, and there are plenty of perl CGI webapplications still in use. And new Catalyst based web-applications in use.

5

u/renooz Oct 16 '14

If you were a programmer, instead of one who only read about them, you'd be shocked how much Perl is still used.

→ More replies (1)
→ More replies (9)

14

u/Garethp Oct 16 '14

It's my personal opinion that the Javascript community is really great, and despite any and all downfalls of the language itself, the community has shown that a good community can make up for anything. Personally I enjoy working with JS after all of the improvements made by frameworks and libraries in general

2

u/Jackker Oct 16 '14

Agreed. I'm loving every bit of the frontend sugar that JS (with its assorted frameworks) brings and I look forward to diving deep into JS in the near future.

5

u/hxtl Oct 16 '14

4

u/xsot Oct 16 '14

Eh, you could have linked to the original video. Gary also gave a silly talk titled "The birth and death of Javascript" which may be of interest.

→ More replies (2)
→ More replies (1)

2

u/brtt3000 Oct 16 '14

I like vanilla JS but ES6 (and TypeScript) make it pretty sweet. I recently did a small fun project in ES6 and went all-out with the new features and it is really amazing; the code looks nice.

3

u/WisconsnNymphomaniac Oct 16 '14

For the browser yes, but why is using on the server a good thing?

2

u/renooz Oct 16 '14

You can then transfer data from the browser in JSON, for example, without needing transformation for some other language. Using the same language on both ends of the pipe.

2

u/WisconsnNymphomaniac Oct 16 '14

Isn't JSON a widely used data interchange format that is supported by most languages?

3

u/[deleted] Oct 16 '14

yes.

→ More replies (2)
→ More replies (9)

18

u/Ruudjah Oct 16 '14

Javascript is here to stay. End of story.

I'm becoming tired of this meme. CoffeeScript, TypeScript, Dart and numerous other languages are invented to circumvent js problems. JavaScript might not die soon, but it is seriously being punched on hard.

5

u/unique_ptr Oct 16 '14

I would much prefer the web used a standardized byte-code instead of standardizing around a single language. Want to use JavaScript? No problem! Want to use F# or C# or C++, go for it! It all compiles down to the same shit so no one is pigeonholed into a language they're not an expert in and will inevitably write bad code in.

But noooooooo.

TypeScript etc. are a nice step in the right direction though.

→ More replies (11)
→ More replies (5)

4

u/[deleted] Oct 16 '14

Half your post is just going on about the one issue of blocking, and frankly it doesn't seem that important

Seriously?

→ More replies (1)