Or do you move all the validation code into the services tier, removing it from the domain class that should be the owner of that knowledge?
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
This technique allows people to make necessary changes to a piece of code without going through the bottleneck of an individual code owner.
这种技术可以让人们对代码片段进行必要的更改而不用经过各个代码拥有者个人的瓶颈。
Not only that: You can identify the owner of those code changes and the exact times and dates they were introduced.
不仅仅是:能够识别那些改变代码的归属者和引入的准确时间和日期。
应用推荐