Tag Archive: design patterns

Apr 30

Design patterns: factory

Abstract factory pattern diagram

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 …

Continue reading »

Permanent link to this article: https://blog.lukaszewski.it/2013/04/30/design-patterns-factory/

Mar 31

Design patterns: decorator

starbuzz decorator diagram

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 …

Continue reading »

Permanent link to this article: https://blog.lukaszewski.it/2013/03/31/design-patterns-decorator/

Feb 23

Design patterns: observer

observer pattern diagram

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 …

Continue reading »

Permanent link to this article: https://blog.lukaszewski.it/2013/02/23/design-patterns-observer/

Jan 14

Design patterns: strategy

strategy pattern diagram

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 …

Continue reading »

Permanent link to this article: https://blog.lukaszewski.it/2013/01/14/design-patterns-strategy/

» Newer posts