Debug - ((new))
Assertions are your sentinels. They check invariants. If something is supposed to be true, assert it.
This is not a joke. Keep a rubber duck on your desk. When stuck, explain the code, line by line, what it is supposed to do , to the duck. The act of verbalizing forces you to confront your assumptions. You will find the bug before you finish the explanation. (If no duck, use a coworker, but warn them first.) Assertions are your sentinels
The word "debug" has become a universal verb in the tech industry, but it is frequently misunderstood. Beginners think debugging is simply "fixing errors." Veterans know that debugging is a systematic process of investigation, hypothesis, and elimination. As the legendary computer scientist Brian Kernighan once said, "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." This is not a joke
