Jump to Navigation

Patterns I Hate #2: Template Method via Pure Danger Tech

Blogs > General Library Blog

A friend emailed me this blog post about the template design pattern. Some good points made here and I wish I'd read this before I implemented class BackgroundProcess in Fez.

Usually, the best way to address the addition of functionality in orthogonal domains under a template class is to define an interface for each kind of functionality and inject an instance for each.



Oh well, I'll have to remember this for Fez 2.0.