Head First Design Patterns (2020 2nd Edition) is written in Java
, and in this repository I adapt all codes in Rust
.
Besides pure code about design patterns, necessary documents covering OO (object-oriented) principles and idioms in Rust
are also included. Throughout the README files, I will use HFDP Book to refer to Head First Design Patterns.
A Pattern
is a solution to a problem in a context.
- Strategy Pattern. Chapter 1 of HFDP Book.
- Observer Pattern. Chapter 2 of HFDP Book.
- Command Pattern. Chapter 6 of HFDP Book.
- Template Method Pattern. Chapter 8 of HFDP Book.
- Iterator Pattern. Chapter 9 of HFDP Book.
- State Pattern. Chapter 10 of HFDP Book.
- Decorator Pattern. Chapter 3 of HFDP Book.
- Adapter Pattern. Chapter 7 of HFDP Book.
- Facade Pattern. Chapter 7 of HFDP Book.
- Composite Pattern. Chapter 9 of HFDP Book.
- Proxy Pattern. Chapter 11 of HFDP Book.
- Factory Method Pattern. Chapter 4 of HFDP Book.
- Abstract Factory Pattern. Chapter 4 of HFDP Book.
- Singleton Pattern. Chapter 5 of HFDP Book.