Monthly Archive: September 2013

Sep 22

Design patterns: template method

client and facade design pattern in terms of the principle of least knowledge

Chapter eight of the book is about template method pattern. It’s another way of encapsulation. The examples shows how to encapsulate piece of algorithms so the sub-classes can hook themselves right into computation any time they want. We learn a new design principle too! Book example First example is a real one from real life! …

Continue reading »

Permanent link to this article: https://blog.lukaszewski.it/2013/09/22/design-patterns-template-method/