Tonight I did not feel much like working … so instead I finally, after a couple of weeks of abstinence, did dig into somebody else’s code again. For me still the ultimate way of learning and improving my coding skills.
Today’s code repository come from Jeremy D. Miller and is part of his storyteller project. Actually I was not too much interested in the story teller project itself, even though it is definitively worth checking out. Instead I did take a closer look at all his framework code in the namespaces shadetree.*
I am not going to go into any details; you certainly should check it out yourself. It is definitively a shade tree… And I am not going to bitch about the fact that it did not compile out of the box and that Jeremy seems to camel case private methods and pascal case public ones… ![]()
Just quickly my highlights:
- ShadeTree.DomainModel.PersistenceSpecification – extremely fast and elegant way to specify NHibernate mappings. Plus it has all the potential to reduce mapping errors. Just wow! Productivity award!
- ShadeTree.DomainModel.InMemoryRepository – very elegant way to do caching. Sure, it’s so simple, why not think about it as yet another persistence type. Maintainability award!
- Plus the repository is sprinkled with some very nice abstractions to code generation. Best-reminder-to-do-more-tool-aided-development-again-award.

Go on! Dig into those namespaces yourself. I’ll bet you’ll find some (good) surprises.
