All challenges
Multiple ChoiceHard 45s

Specification pattern reuse

What is the primary strength of the Specification pattern?
Options
  1. 1It couples business rules to the persistence layer so queries stay efficient
  2. 2It generates database indexes automatically from the domain object metadata
  3. 3It replaces the need for entities by storing rules directly as table columns
  4. 4It encapsulates a business rule as a composable, reusable predicate on domain objects

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle