Hacker News new | past | comments | ask | show | jobs | submit login

I understand that Node.js is really popular here and that my opinion may be an unpopular one. Maybe this will change, but I cannot find a use case for Node where I wouldn't choose something else.

If I want to prototype (performance is not a constraint), I'd use Ruby (or Python) before Node. If I need concurrency or if performance is a constraint, I'd choose Go (or Clojure, or Scala, or Erlang) before Node. I understand the argument about using JavaScript throughout the stack, but I see this as specious at best. Front-end and back-end development require different domain knowledge, not just language proficiency.

Perhaps using Node opens a project to a larger community of developers. But under this argument, using C or Java also seems a good choice.




So I'm a node critic, and I think both the technology and the community suffer from technical immaturity.

But I actually use it and depend on it, for precisely the shared-codebase reason. And it helps immensely for my use case.

I actually started out with Ruby on server side, but spent increasing amounts of time duplicating the same code in both languages. Switching it all to Javascript was a demonstrable win.

When people argue it's a specious benefit, it just means they haven't tried to build a truly ambitious client-side application. If performance, consistency, and security matter you're going to have a lot of code that needs to run at the client for responsiveness and at the server for safety & security. And if you care about offline-capable applications, the problem because even more acute: your clients are now a fully distributed system with their own state, and it's easier to write all the synchronization and recovery logic once, and run it everywhere on both clients and servers.


This is great feedback. Thank you.


Here's an example: http://clara.io

Obviously this a fairly heavy client application. But imports, exports and renders are server side operations. They manipulate the scene graph using the same code that the client side uses to manipulate the scene graph.

Live render is a great example. When you start a live render, we start a client on the server, but instead of translating the scene graph into WebGL, it translates the scene graph into V-Ray. Any changes you make to the scene are sent to the server-side client using the same mechanism used to synchronize changes between 2 users editing the same scene.

If we used a different language in the front end and the back end, we would have ended up with a lot of duplication of effort.


Very cool!

I started working on a winged-edge WebGL editor--really happy to see other people getting this stuff to work!


Neat-o. We use a more convention polymesh representation. Email is in profile if you want to collaborate or interoperate.


Interesting. Thanks!


I haven't done more than fiddle around with Node and I'm not keen on the idea of JS on the server for basically the same reasons that you already stated, but if you are writing a SPA and you need to be able to generate the same views on the server for clients that don't run javascript (like googlebot) I believe that Node makes this relatively easy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: