PHP Design Patterns – Introduction
Everyone that has been programming for a couple of years should at least heard the term ‘Design Pattern’. It is often referred to an idea how to solve common Object Oriented problems.
Some common problems that arrived when OOP was introduced to the world of programmers was that people made God-classes, long extends and some legacy from procedural programming.
But the revolution of OOP didn’t turn out to be the solution as people thought. So under the years it has evolved and people rephrased the way how they used the tools instead of changing the tools.
Today many has agreed to decoupling, responsibility and patterns is good approach to solve problems with code degeneration and maintanance.
I’ll try to show some examples of php code with and without patterns.
Posted by Stig Lindqvist
June 2008
Post A Comment
« « Learn to optimize MySql queries ∞ PHP Design Patterns – Factory Pattern » »