How To Use Design Patterns Correctly

Short answer: as comments. The standard definition of a design pattern is “a general reusable solution to a commonly occurring problem in software design,” but a better definition is “a good title with a useful description and a pile of other rubbish.” Take “Singleton” for example. A singleton is a class that has one instance [...]

January 24, 2010 • Tags: , , • Posted in: Thinking Out Loud • Comments Off

Teaching Good Interface Design

We all know just how hard it is to design good interfaces. Conflicting issues of performance, extensibility, readability and abstraction all influence the final design, and poor decisions early on can continue to cause issues long into the future (for example, the Windows API). The importance of finding a suitable balance is often understated, in [...]

January 16, 2010 • Tags: , , , • Posted in: Uncategorized • Comments Off