What things can you do to give your mind a rest when you can't find the bug in your code?
@CodeNewbies Walk away for a bit. Talk to friends sometimes using them as a RubberDuck can help shed light on it
@CodeNewbies Walk for 5 mintes, even if just around the house
@CodeNewbies Copy the code into a notepad and do some drastic deleting/commenting. Plus a gin and tonic.
@CodeNewbies What helped me lately was write down all the solutions I’ve tried or going to try, take a 5 min break, and then come back. I don’t have to keep track of them in my head to actually relax and sometimes the answer is right in front of me when I come back.
@CodeNewbies Sleep. It’s the best debugger. 😴💤👨🏻💻
@CodeNewbies A break and a hot shower is always the best answer but the last resort haha
@CodeNewbies Step away, ask someone to take a look and even grab a cup of coffee and get back to it.