JavaScript

Improved productivity with Node.js

Improved productivity with Node.js

Writing raw JavaScript code and running it in a browser to test it has always been a non-agile technique. You have to unneccesarily create a HTML page, include the JavaScript code in it and run the HTML page in a […]

Dynamic access in JavaScript

A simple yet powerful feature in JavaScript that can save you several lines of code is the ability to dynamically access members of a class(or a function). A Calculator function is shown below function Calculator(){ this.add = function(num1,num2){ return num1+num2; […]

Global variables in JavaScript

It’s normal to get caught in the web of global variables, while working with JavaScript. Global variables tend to make the code less readable and maintainable. Douglas Crockford suggests a pattern that can be used to maintain global variables in […]

GuessingGame with Backbone.js

GuessingGame with Backbone.js

I have a set of examples that I always love to implement whenever I learn a new framework/language/technology. One of them is a Guessing Game. The application will generate a random number between 1 and 100. The user will play […]

Modularize JavaScript with Backbone

The jQuery code that I have used in projects have always had modularity issues. The code looks clumsy and messy making it very difficult to maintain. My work with Ext JS4 and Sencha Touch made me looking for a MVC […]