Posts tagged "node.js"
There's no shortage of blog posts which — like this one — provide an
introduction to Socket.IO. Many, though, were written prior to the
release of 0.7, which ushered in significant API changes. Here I'll
provide examples of server- and client-side code using APIs provided by
the current version (0.7.4 at time of writing).
Over the past few months I've reached a startling realization: JavaScript is
a tremendously capable language.
The reason that it took me so long to discover this is that the playing field
has never been fair. On the one hand I've been writing application code for
the server, a stable, predictable environment. On the other hand I've been
adding interactivity on the client's side, dealing with inconsistencies on
multiple fronts, not least of which is the DOM API.
Comparing Python and JavaScript, for example, by using the former to quickly
put together a website using the excellent Django framework while using the
latter to add drag and drop functionality is to compare apples and oranges.
Actually, it's more like comparing apples to root canals.