Work blog
-
Object Literals vs. Constructed Objects in JavaScript
Another discussion born from a question at stackoverflow. Today I’m laying out the differences between object literals and constructed objects, when to use which, how to get the most out of them, and a few other tricks along the way. Let’s get started. Object Literals / Static Objects Object literals, or static objects, don’t require instantiation with [...] -
Magento Onepage Checkout Template Bug
Changing from the default template in Magento breaks the onepage checkout page. Here's how to fix it. -
Generic Singleton Factory in JavaScript
I recently contributed this little tidbit to stackoverflow’s Hidden Features of JavaScript and thought it would be best to elaborate it on it fully. In a recent client project, I needed a generic method to produce singleton instances of interface widgets. This is the method that I came up with and it works pretty well. [...]