re: What is your single most important rule for good software design? VIEW POST


Listen to the unit tests.

A unit test should be very easy to write in no more than 3 or 4 lines. If more, you probably have coupling but don't go overboard or your classes will lack cohesion!

Basically: a unit test should be easy to write on a couple of lines but be on the lookout to ensure that your class have meaning.

Code of Conduct Report abuse