Archive for the ‘Javascript’ Category
Tuesday, June 28th, 2011
In my previous post A Layered Node.js Architecture using Express I wrote on the benefits of using a layered architecture and how to implement one in a node.js web app. This post goes one step further by introducing Layers, a module which will help automatically load and neatly setup the ...
Posted in Javascript | No Comments »
Tuesday, March 22nd, 2011
Using layers in your app is a good way to ensure separation of concerns. This post is not an in-depth description to this architecture pattern but more a quick description of each layer's purpose and how I've implemented them in node using express. For the impatient, you can peruse the code ...
Posted in Javascript | No Comments »
Sunday, October 18th, 2009
By using a combination of the YUI Compressor and the Revealing Module Pattern you can maximise the effect of minimisation and, as a bonus, improve code readability.
The YUI Compressor renames local variable names and references to a single character. It can do this as it knows these variables cannot be ...
Posted in Javascript | No Comments »