Thursday, September 08, 2016

Corey Haines : The Four Rules of Simple Design Book Review

The example that shows Duplication of Knowledge is the same as prefer domain specific types over primitive types (domain driven design).
Behavior Attractor is the same as cohesion. Keep the related data and behavior in the same class.
Test names should influence object's API is the same as tests should focus on intent not implementation. There is a relationship between the test name or doc string and the test.


Don't have tests that depend on previous tests. This is subtle and something new that I learned.

No comments:

Post a Comment