Wednesday, May 21, 2014

Session 5 (technically 7) - Design Patterns: Creational Patterns

<Meh>

I'm already starting to slack on this whole blog business.. not a good sign.

Apologies to the 4 or 5 people that follow this blog. I've been completely inundated with work and haven't had the energy to do this in the evenings or over the weekends lately... but I got some strength again today, so here goes.

Creational Design Patterns.. for this I used the Gang Of Four Design Patterns site as my primary source of info.

So far we've been tackling the base principles that, I feel, every developer worth his salt, should know. Now we get to the practical implementation of those principles... design patterns.

Each design pattern solves a very specific pattern. I was always taught that it's not too important if you don't know all of the patterns... as long as you think in line of patterns. Meaning with each problem presented you ask the famous questions: "What can be reused? What can be extended? What should never change?" etc. That thought process will naturally lead you to some sort of pattern.

In this session we addressed the Factory Method and Abstract Factory pattern. Both patterns are very good evangelists of the Open/Closed principle, especially the Abstract Factory.

Anyways, have a read through the code and the presentation. They, as always, can be found here:
Presentation: http://www.slideshare.net/DeonMeyer/code-like-a-ninja-session-7
Code: https://github.com/SheepWorx/Training/tree/master/FactoryPattern

</Meh>

No comments:

Post a Comment