Archive

Posts Tagged ‘Observer pattern’

Five common PHP design patterns

March 30th, 2009 Gertjan 2 comments

Design patterns are just for Java architects or at least that’s what you may have been led to believe. In fact, design patterns are useful for everyone.

The core concept behind design patterns are simple. Over their years of developing software, developers found certain patterns of solid design emerging, just as architects designing houses and buildings can develop templates for where a bathroom should be located or how a kitchen should be configured. Having those templates, or design patterns, means they can design better buildings more quickly. The same applies to software.

It’s difficult to demonstrate the value of patterns using small examples. They often look like overkill because they really come into play in large code bases. That’s not to say that you shouldn’t use patterns in small applications. Most good applications start small and become big, so there is no reason not to start with solid coding practices like these.

The article handles 5 common PHP design patterns

Read more…

data recovery software