October 29th in Discussion by . 19 comments .

An Editor You Will Regret You Haven’t Used Before (and Tips on Getting the Most out of it)

In a former article I slightly mentioned that if you were a JavaScript developer, Aptana Studio — with all its built-in JSLint support, intellisense, auto completion, task management features, and more… — was an excellent IDE for you. But as time passed by, I realized that along with its good …

Continue Reading
October 16th in Isolated Objects by . 1 comment .

A Little Known Encapsulation Technique in JavaScript: Isolated Objects

There’s not a single post in the blog that I’ve not mentioned or used the module pattern. The module pattern is really useful in encapsulating functions, objects, and static configuration constants; making them invisible and inaccessible outside the module‘s boundaries. Here’s a simple example, which we have elaborated in depth …

Continue Reading
October 11th in Unit Testing by . no comment .

Unit Testing with JavaScript — Part 4: Automation

Now that we know unit testing best practices; and we have a o2.Unit test runner to do assertions, run and report our test suites; and we know how to construct test suites to be used in this test suite runner; it’s time to develop a methodology that’ll enable us execute …

Continue Reading
October 4th in Code Organization Guidelines by . no comment .

Now You Can Organize Your JavaScript Code, and Collaborate Without Hassle

The most up-to-date, and arguably more “readable” version of this document, may be found at the o2.js github repository. 1. INTRODUCTION This document includes JavaScript naming conventions, best practices and recommendations to be used within o2.js source code, and examples. If there’s a particular JavaScript usage that’s not mentioned in …

Continue Reading
o2.js _
Fork Ribbon