O'Reilly logo

PHP Master by Matthew Turland, Lorna Mitchell, Davey Shafik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4Design Patterns

In this chapter, you’ll learn some essential design principles that will form the keystone of many architectural decisions you’ll make along your application’s development path.

As with the real world, repeated tasks have best practices—you put your clothes through the washing machine before sticking them in the dryer or on the clothesline, right? Similarly, common code architecture problems have best-practice solutions; these are known as design patterns.

What Are Design Patterns?

Hammer: nail. Screwdriver: screw. You need the right tool for the right job. Design patterns are really just a bunch of tools in your toolbox; sometimes you’ll find one that fits the job, sometimes you need to use more than one, and sometimes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required