Posts in category

Design patterns


Recently I needed to create some code to do the automatic wiring of dependencies using Java annotations. The annotation had an optional parameter specifying a name; if the name was missing, the dependency would be wired by type match. So of course the basic logic ended up looking like: private void wireDependency(Field field, Class annotation, …

My fellow Zone Manager Sam Atkinson wrote an excellent article on Beautiful Constructors. While I would totally agree that the builders in his article are beautiful, I was not so sure that his prescriptions could be universally applied. He graciously allowed me to use his piece as a springboard for a counterpoint, in the hope …

design templates are … come on, you know what they are. they are something that we love and to hate . we love them because they allow us to write code without thinking. you hate them when you see the code of someone who is used to writing code without thinking. Am I wrong? now …