//TODO: Test this thoroughly!!!!!!
- by Edward Boyle
I just ran into an ugly sight in my code:
//TODO: Test this thoroughly!!!!!!
private void ...
I would very much like to go back in time and ask the past me what I meant, why did I add that TODO:? …And then, smack the s%#t out of him. No matter how much testing I do of this code I will always wonder if the past me found something. Was it actually that code or was it a calling method that may bring unwanted results. The fact that I find absolutely nothing wrong with the code makes it that much more haunting.
The moral of the story; when you find something wrong and need to test it thoroughly, stay up another hour testing it. The clarity in your head at that moment, on that issue, at that specific moment in time, would take hours worth of commenting to justify not finishing it now.
Maybe what I meant was:
// TODO: Test this thoroughly!!!!!!
// All seems fine but test it just in case, not to worry.
private void ...
Doubt it. -I’m screwed.