尽管还算不上完美,不过DrySQL通过拒绝用间接关联重写现有的关联,减轻了问题的复杂性。
Though still imperfect, DrySQL mitigates this problem (and others) by refusing to overwrite an existing association with a through association.
用这种方法扩展JAAS减少了您或另一个程序员必须在应用程序生命周期内业务规则发生更改时重写代码的可能性。
Extending the JAAS in this way decreases the chances that you or another programmer will have to rewrite the code as the business rules change over the lifespan of the application.
而另一方面,重写是更具有攻击性的改变,它会导致系统中更大的混乱。
Rewrite on the other hand is a more invasive change and results in a bigger chaos in the system.
应用推荐