Category Archive: Design patterns

May 25

Design patterns: singleton

This month I’d like to write about singleton pattern and tell you how it’s described in Head First: Design Patterns book. This chapter was one of the shortest in the book, so far. I read it a while ago and wanted to post about it earlier but as always… lack of free time didn’t let …

Continue reading »

Permanent link to this article: http://blog.lukaszewski.it/2013/05/25/design-patterns-singleton/

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: http://blog.lukaszewski.it/2013/04/30/design-patterns-factory/

Mar 31

Design patterns: decorator

Class explossion

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: http://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: http://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: http://blog.lukaszewski.it/2013/01/14/design-patterns-strategy/

» Newer posts