I find that when I need to wait for something to run (a compilation, a jupyter notebook cell, a script, etc) is when I'm most prone to embark on something distracting.<p>The common train-of-thought is "I'm just gonna check _____ for a second while this runs." And then it's never just a second.<p>What do you do?
Go make coffee for 10 minutes, and then come back to realize that the thing I meant to run was waiting for input via a prompt before actually starting.
I work from home now and I solve rubik cube, randomly strum my guitar, and juggle balls while waiting for something to run.<p>I used to check random stuff on the internet ( social media , HN, reddit or youtube) but I found them very distractive. So, I ended up picking something that are not related to internet.
I believe the industry standard is "have sword fights in the hall" <a href="https://xkcd.com/303/" rel="nofollow">https://xkcd.com/303/</a>