The Illusion of Class 10

This indirection was intended to make the language seem more familiar to classically trained programmers, but failed to do that, as we can see from the very low opinion Java programmers have of JavaScript. JavaScript’s constructor pattern did not appeal to the classical crowd. It also obscured JavaScript’s true prototypal nature. As a result, there ...

The Initializer Pattern 7

If you haven’t read my previous tutorial on Objects and The Prototype Chain, it would be a good idea to do so. This article builds on the concepts presented there. Object oriented programming with only those concepts, while possible, can get pretty verbose, so we often use common abstraction techniques – called Design Patterns – ...

Objects and the Prototype Chain 8

JavaScript is a language of objects. Everything is an object, and even those things that aren’t objects are often automatically converted to objects when they need to be. So, learning how to work with objects is an important part of becoming a better JavaScript programmer. If you’ve been writing JavaScript at all, then you’ve used ...