Always test functions before writing others that depend on them
January 31, 2013 Leave a comment
Yeah. Didn’t do that. Now I have half a dozen functions, 50 or so lines of code, I have no idea if it works or not.
At least I’ve traced this function as for sure not working. And the other functions that it depends on are tested and work correctly. So even if the rest are completely wrong, at least I’ve found a good starting point for debugging.