User:Szucsatti/Design patterns

Since I usually tend to forget everything I've decided to take notes on the things I consider important, or interesting, or both. So here is my collection of thoughts on design patterns. First of all design patterns were conceived to ease the process of creating flexible and extendable code. One of the basic principles behind these patterns is the Open-Closed principle. The code should be open for extension and closed to modification. This is very important !

A good design pattern is though in such a way that a modification (which can be foreseen) will be done in one place.   Abstract Factory  Iterator 