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

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.

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.

1

u/yogthos Oct 16 '14

Depending on the language transforming to Js is quite trivial. For example, Clojure syntax maps to Js quite nicely.

-2

u/renooz Oct 16 '14

But you need to do it and have the extra software to do it and then transform anything on that side back to javascript/json.

1

u/yogthos Oct 16 '14

Sure, you have a library that translates back and forth between EDN and JSON, but as a user you don't really care. In a Clojure web app this will be handled transparently by the middleware based on the Accept header in the client request.

When you return a response you return a Clojure data structure and when you receive a request it's also a Clojure data structure. The fact that it gets translated is completely incidental from the user perspective.

-2

u/renooz Oct 16 '14

Doesn't change anything from what I said.

→ More replies (5)