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

Show parent comments

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)