Monday, June 1, 2015

Interesting Paper: "Mock Roles, not Objects"

I've just read this very interesting paper by Steve Freeman, Nat Pryce, Tim Mackinnon and Joe Walnes about mock objects as a design technique for identifying types in a system based on the roles the objects play: They talk about the importance of RDD, the Law of Demeter and Tell Don't Ask in this technique and how it can lead to an OO style based in composition rather than inheritance, encouraging designs with good separation of concerns and modularity.

It also gives many heuristics to help drive your design using mock objects and fights against some typical misconceptions surrounding mock objects.

No comments:

Post a Comment