Archive

Archive for the ‘JavaScript/EcmaScript’ Category

Towards Better Graph Loading Via Conditional Types

07/13/2011 Leave a comment

One of my pet peeves is the cruft we often add to our objects to support graph loading. For example, we might create a special “lazy loading” type wrapper (e.g. Lazy) or we might create two independent fields that represent, in effect, the same thing (e.g. Employee MyManager and Guid MyManager_ID). Neither is clean, and each has its issues. I want something better. Read more…