re: Worth the 5 Minutes VIEW POST

FULL DISCUSSION
 

This is the first step to good unit testing practice.

Once you've got into the habit of breaking down a routine into a set of discrete functions, clearly defining what the inputs and outputs should be, it's not such a big leap to habituate writing the unit tests which enforce the function's role.

code of conduct - report abuse