Skip to content Tom McFarlin On Design Patterns
- Considerations for Design Patterns for WordPress. 2019.
- A General Example of the Repository Pattern in WordPress. 2019.
- Using the Registry Pattern in WordPress. 2018.
- Repository Pattern Benefits: Why We Should Consider It. 2017.
- The Repository Pattern Primer. 2017.
- Singletons in WordPress, Revisited (A Time and a Place?). 2017.
- Singleton Design Pattern and Dependency Injection. 2016.
- Use and Abuse Singleton in WordPress. 2016.
- Design Patterns and WordPress (And Resources!). 2016.
- An Implementation of the Repository Pattern. 2016.
- Design Patterns for Refactoring: The Facade Pattern. 2014.
- Of Libraries and the Single Pattern in WordPress. 2014.
- Thoughts on Design Patterns in WordPress. 2014.
- Design Patterns in WordPress. Tuts+, 2013.
- Part 1: Introduction.
- WP is built on an event-driven design pattern in which there is a publisher and a subscriber, hooks are an example of this.
- Discusses the Observer Pattern, also known as Publisher-Subscriber Pattern or Pub-Sub.
- Part 2: The Singleton Pattern.
- Great summary of the Singleton Pattern as used in WP.
- Part 3: The Simple Factory Pattern.
- A derivation of the more complicated Factory Method Pattern.
- “The Simple Factory pattern returns a specific set of data or a specific class based on its input.”
- Good code examples.
- Part 4: We’re Just Getting Started.
- Suggested patterns to learn: Abstract, Singleton, Adapter, Composite, Decorator, Flyweight, Chain-of-Responsibility, Null Object, Visitor, and Scheduler Patterns.
- Recommends Head First Design Patterns and Design Patterns: Elements of Reusable Object-Oriented Software as books worth reading on the topic.
- Some Thoughts on Design Patterns in WordPress. 2013.
Carl Alexander on Design Patterns
Like this:
Like Loading...