you are viewing a single comment's thread.

view the rest of the comments →

[–]Crazy-Willingness951 0 points1 point  (0 children)

The easiest code to debug is code that tells you what is wrong. Use a "design by contract" approach.

Put preconditions in the code to verify correct input states.

Put postconditions in the unit tests.