mouser: perhaps you haven't heard of it, but in the end it's time saving
: Write tests! Functions that call other functions, classes etc. and expect a certain result. After each build all tests should be run, all successful of course
Some people go so far(r) to write the tests before they've implemented the function to test.