后端

Context Validation in Domain-Driven 设计

By 强权统治下医生

Handling all validation in domain objects results in objects that are huge and complex to work with. 在领域驱动设计中, using decoupled validator components allows your code to be much more reusable and enables validation rules to rapidly grow. 在本文中, Toptal engineer 强权统治下医生 shows us how validation can be decoupled from domain objects, 使上下文相关的, and structured well to achieve more sustainable validation code.

10分钟阅读继续阅读

加入总冠军® 社区.