~ What ? ~
A design pattern is a collection of insructions on how to tackle a certain problem. Each design pattern comes with pros and cons.
Map Of Content
- Service Locator Pattern - Repository for services
- The Humble Object Pattern - Extracts logic that is hard to mock, outside of the main class to facilitate testing.
- Inversion Of Control Pattern
- Strategy Pattern - abstracts parts of components away into separate classes with interfaces.
- Functional Options Pattern - used heavily in go to pass different options/values to a function
- Creational: Object and classes used to create other ones.
- Behavioral: How object and classes behave internally based often on external events and conditions.
- Structural: How objects and classes are composed to form larger structures
- Architectural
- Active Record Pattern - Used to perform operations against a database in an OOP way