构造定律的意思是:For a finite-size system to persist in time (to live), it must evolve in such a way that it provides easier access to the imposed currents that flow through it.
Check out CQRS for an architectural solution to this problem, but the Rails community (esp DHH) is not a fan of this style. CQRS可以解决这个问题,但是Rails社区特别是Rails创始人DHH不是这种风格的粉丝。
也有人认为如果只是围绕CRUD或简单问题领域,Active Record是一个好的解决方案: Agreed. If what you're doing centers around CRUD or is a simpler problem domain, then Active Record is perfectly ok.
[该贴被banq于2014-08-24 11:25修改过]
banq
2014-08-24 11:52
该Twitter讨论推崇 Kent Beck的那句话:软件设计者应该是分离应该分离事物,而不是将本应一起考虑的事情进行分离。