News for hackers. Stuff that matters.
Re:Hamsa – A simple data-binding and observable model by rsuelzer on Sunday March 22, 2015 @12:08PM (#9247230)
As an aside around dealing with properties that don't exist yet, I have found the following pattern very useful. It greatly reduces the number of checks I have to do in an if statement and has made my code more maintainable by reducing the amount of boilerplate code I need to write inside of functions.

http://adripofjavascript.com/blog/drips/making-deep-property...

Re:Hamsa – A simple data-binding and observable model by wereHamster on Sunday March 22, 2015 @02:22PM (#9247707)
That avoids runtime exceptions, but won't save you from typos.