Justin Johnson - The Good Parts

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 [...]

    Read More »

  • Magento Onepage Checkout Template Bug

    Changing from the default template in Magento breaks the onepage checkout page. Here's how to fix it.

    Read More »

  • 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. [...]

    Read More »

Booleangate technology blog

  • Semicolon insertion finally caught me

    While debugging a caching class today, I realized that I had finally been caught by semicolon insertion. Here’s the original code cut from a larger object literal isValid: function(hash) { return // Is cached AND typeof this.entries[hash] != "undefined" &&... Read More »
  • Learning Python with Google, Day 1

    If programmers can agree on one thing, I think it’s that new languages are good to learn.  And why not?  Exposing yourself to new ideas helps you grow and refine your skills as a professional or hobbyist as the case may be.  Practically speaking, it gives you a larger skill set which can make you... Read More »
  • The Developer Who Cried “Done!”

    Whether it’s an internal or external project, for coworkers or clients, the trap of being the boy who cried “wolf”, or in this case, the developer who cried “done,” is an easy one to fall into. The issue here, besides an elongated development time, is that this trap cuts at our credibility as programmers,... Read More »

My life with my wife

  • Hired! :: Jon the Bartender

    Alright, so we could have contracted the whole bar out, but that was going to be really EXPENSIVE. Instead, we found a friend of a friend (thanks, Alvin!), who used to handle a lot of the house parties I didn’t tell my mom and dad I was at. (hi mom and dad!) Jon is so great so... Read More »
  • Hired! :: ICA Photography

    ::sigh:: …photography.. Marrying one who is well-versed in photography has its ups and downs: ups : we know what to look for and what to be put off by downs : choosing a photographer seemed to take forever to find a compromise between his more traditional style and my love of the more recent photojournalistic photography. Finally, we found... Read More »
  • Hired! :: Wendy’s Divine Weddings

    I found Wendy Alexis through the Inland Empire Association of Bridal Consultants website after speaking to three or four other wedding planners. She’s got a tiny office in Riverside off the 91 and Central. In fact, here’s her info: Wendy Alexis, PBC™ Divine Designs, Event and Wedding Design 3380 La Sierra Ste. 104-144 Riverside CA 92503 USA Email: ddweddingsandevents@earthlink.net Phone: 951-352-8186 Wendy was... Read More »

Epicbread food blog

  • Best Camping Food Ever

    This is my favorite camping food … ever!  I’m not talking about s’mores, and hot dogs don’t even rank.  I learned this one way back when I was a Boy Scout, and it’s the foil bag roast.  After all, just because our sleeping arrangements may  be spartan (some of us anyway), doesn’t mean we have... Read More »
  • Stone Fresh Dinner – May 2010

    Another Fresh Dinner at Stone Brewing World Bistro and Gardens has come and gone, and once again, “epic” describes it rather adeptly. If you missed my last review, then a little explanation is in order.  Stone holds a special, seasonal dinner event that features fresh, organic, local food from surrounding farms and fisheries.  They begin... Read More »
  • Turkey Tetrazzini – Holiday Left Overs Part 1

    Turkey only comes once a year for me.  So, when it does come, it’s a big deal—a very big deal.   Scavenging pounds of left over turkey from various families is my own little holiday tradition.  After all the left over mash and stuffing has run out and turkey sandwiches have run their course, I still... Read More »