Monday, April 9, 2012

Use Interfaces and Small Classes - Seemann

Lots of small classes sounds just fine :)

Particularly if you let each class implement an interface and have the different collaborators communicate through those interfaces instead of directly with each other, you should be able to achieve a so-called Supple Design (a term from Domain-Driven Design) with lots of loose coupling.

Mark Seemann

http://stackoverflow.com/questions/1963991/srp-and-a-lot-of-classes

No comments:

Post a Comment