Key art image for A New Love For NodeJS

A New Love For NodeJS

I’ve been working with NodeJS for the past couple of months and I have to say . . . . it is incredible.

I’ve been using it for building a restful JSON API and been amazed out how simple it was to pick and getting running with. Reasons for my loving it:

The one thing I would love to see happen as a result of NodeJS, is an IDE or plugin for an existing IDE, which integrates JSLint and auto-complete into the development cycle out of the box. JSLint is a great safety net to catch some of those pesky things you can trip up from time to time is js, especially if you’re fairly new to javascript.

Memory management. It’s not a sexy topic, I know, but I’ve never looked into how javascript manages memory, I have only understood that is has garbage collection. This is probably one of the few instances where I’ve seen hefty pieces of javascript code running and because of the simple ‘require’ method, it’s easy to pull a chain of modules and I’d be interested to learn the memory allocation of that as a result. I think that this comes down, A.) Not investing the time to learn these things B.) Not having played with it enough to find out where I’ve abused a part of NodeJS, which will later improve my knowledge of it’s internal working.

Docs . . . . . the weird weird docs. I think this is an issue which comes from my background of Mobile platforms having a fairly hefty supply of documentation where as NodeJS, I get the impression it’s so new and moving so fast that docs aren’t really going to be maintained or have the best amount of time invested into making them more accessible. Fortunately there are plenty of articles on the web, but still.

Finally, you can get default installs of NodeJS on hosted systems, similar to just grabbing a LAMP stack from a web host. My suggestion is Heroku, you can sign up, for free, without entering a credit card and while the tools are bare bones does everything you need to get going. The developer docs are simple and targeted at getting you from joining to development as fast as possible. But I get the impression NodeJS  is happy in the cloud (which is good) but not so hot if you want it for a personal site or blog on a cheap, fixed priced host. One day though….

The future for me is getting NodeJS working as a full blown web server for displaying HTML content as well as JSON data etc. coming from a single endpoint working with a nice development environment for HTML templating.

Orig Photo: https://flic.kr/p/7YUYVi

Found an issue?

All my posts are available to edit on GitHub, any fix is greatly appreciated!

Edit on GitHub