- Modular Programming with PHP 7
- Branko Ajzele
- 226字
- 2021-07-14 10:05:59
Chapter 2. GoF Design Patterns
There are a handful of things that make a great software developer. Knowledge and usage of design patterns is one of them. Design patterns empower developers to communicate using well-known names for various software interactions. Whether someone is a PHP, Python, C#, Ruby, or any other language developer, design patterns provide language agnostic solutions for frequently occurring software problems.
The concept of design patterns emerged in 1994 as part of the Elements of Reusable Object-Oriented Software book. Detailing 23 different design patterns, the book was written by four authors Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. The authors are often referred to as the Gang of Four (GoF), and the presented design patterns are sometimes referred to as GoF design patterns. In Today, more than two decades later, designing software that is extensible, reusable, maintainable, and adaptable is near to impossible without embracing design patterns as part of implementation.
There are three types of design patterns which we will cover in this chapter:
- Creational
- Structural
- Behavioral
Throughout this chapter we will not go deep into the theory of each of them, as that alone is an entire book's worth of material. Moving forward, we will focus more on simple PHP implementation examples for each of the patterns, just so we get a more visual sense of things.
- 數據科學實戰手冊(R+Python)
- Oracle從新手到高手
- PostgreSQL Cookbook
- Python程序設計(第3版)
- 機器人Python青少年編程開發實例
- 數據結構(Python語言描述)(第2版)
- Java Web應用開發技術與案例教程(第2版)
- 精通Scrapy網絡爬蟲
- Spring Boot進階:原理、實戰與面試題分析
- C++從入門到精通(第5版)
- Mastering Linux Security and Hardening
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Node學習指南(第2版)
- Kubernetes進階實戰
- Django 3.0應用開發詳解