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.
World-class articles, delivered weekly.
Subscription implies consent to our 隐私政策
谢谢你!!
Check out your inbox to confirm your invite.
加入总冠军® 社区.