News for hackers. Stuff that matters.
Re:How to write a command line application in Node.js by akbar501 on Saturday August 10, 2013 @01:58AM (#6190215)
I actually reuse the same code a lot, which is a very nice feature once you get used to it.

I share code between the client and server. For example, I have data type checks where I reuse the same library and the same application specific code on both the client and server.

I expose substantial portions of my server-side code via the command line. I also frequently call shell scripts from node as there are certain things I find easier to write in a shell script.

That said, I don't know if this amount of reuse is typical. And, code reuse is clearly not the only consideration.

There are no comments on this comment yet.