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
May 2nd in o2.js Modules by . 2 comments .

How to Build a Kick-Ass AJAX Object From Scratch

Creating an AJAX object is easier than you may think. We will explore it, step by step, in this tutorial. An typical AJAX interface should have the following properties, at the bare minimum: Ability to send HTTP GET requests Ability to send HTTP POST requests Ability to send SYNC AJAX …

Continue Reading
o2.js _
Fork Ribbon