Recently I have started to writing article series for Tuts+, and this time topic is very interesting which is “Design Patterns“.
In this series of tutorials, we will cover some different design patterns that are available to us in programming. You’ll learn about their pros and cons, and factors that indicate where we should use them.
Throughout these tutorials, I will take PHP as a base language to demonstrate design patterns; however, they are actually a concept that can be applied to any programming language—it’s just a matter of changing the syntax as per your preferred language.
Design rules are separated into four categories:
- creational patterns
- structural patterns
- behavioral patterns
- concurrency patterns
In this tutorial, we are going to cover the facade design pattern. It falls under the category of structural patterns because it deals with how your code should be structured to make it easily intelligible and keep it well maintained in the long term.