Next chapter in the book is quite long but it presents actually two design patterns: factory method and abstract factory. Both are explained to the reader in the same context: you are an owner of successful pizza shop. At the beginning the code of an application which helps you with your pizza shop is really …
Tag Archive: design patterns
Permanent link to this article: https://blog.lukaszewski.it/2013/04/30/design-patterns-factory/
Mar 31
Design patterns: decorator
It is about time for next design pattern which I have learnt by reading the book I have already mentioned several times[1, 2] on this blog Let’s do not make this prelude too long and start with book examples of decorator pattern. Book examples This time we learn Starbuzz Coffee. They got really popular and their …
Permanent link to this article: https://blog.lukaszewski.it/2013/03/31/design-patterns-decorator/
Feb 23
Design patterns: observer
As I promised myself every month one design pattern from the book will be described by me on this blog. This month’s design pattern is the observer pattern. I will start with definition this time: The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents …
Permanent link to this article: https://blog.lukaszewski.it/2013/02/23/design-patterns-observer/
Jan 14
Design patterns: strategy
I became a little bit lazier at the end of previous year. Of course in terms of taking care of this blog But, new year has come! And as it usually is new goals are slowly being visible on the horizon. One of those goals for me will be getting more familiar with software design …
Permanent link to this article: https://blog.lukaszewski.it/2013/01/14/design-patterns-strategy/