2010
-
Object-Oriented JavaScript
Dec 17
JavaScript is a prototype-based language, not an object-oriented one. When colleagues used to stricter OOP struggled with it, I bent the tool to fit the people: pseudo-classes, private scope and prototype “inheritance,” with JSON and constructor examples.
-
JavaScript Event Bus
Jul 9
Decoupled code talks through events, not to other objects. I went looking for a pre-built JavaScript event bus for script events rather than DOM events, found nothing that fit, and wrote my own. Here’s the rough skeleton.