course

Design Patterns: Specification Pattern

The specification pattern encapsulates business logic in it's own class. Sounds complicated, but let's see how easy it is. We also build a validation class to demonstrate how it can be useful.

Watch this course

1. Specification pattern basics

12:04

2. Building a validator

12:52