Code examples for my article Design Patterns in Scala (adoption and transformation of classical software design patterns in Scala).
Creational patterns:
- Factory method
- Lazy initialization
- Singleton
Structural patterns:
- Adapter
- Decorator
Behavioral patterns:
- Value object
- Null Object
- Strategy
- Command
- Chain of responsibility
- Dependency injection
Pavel Fatin, http://pavelfatin.com