Sonic the developer
- Local time
- Oct 5, 2019
When starting out I'd often spend hours battling an infuriating bug, going deeper down rabbit holes with ever crazier theories of what could be wrong, changing things at random, etc. Then often I'd realise it was something simple like a constant value I'd mistyped which I had assumed was correct.
So my advice is before you start debugging (or when you feel yourself getting into the manic debugging phase) check your assumptions. Everything you think is obvious and correct, check it, work through it methodically step by step. Seems boring and pointless but will save you time more often than not.
- Output is wrong? Check the input is correct before you check the logic.
- Formula produces wrong result? Check constants before checking the math.