News for hackers. Stuff that matters.

How do you “warm up” before coding?

Beginning to code is usually a struggle for me, whereas continuing is easy, sometimes even addictive. Especially when I'm facing a project that's daunting and/or that I haven't looked at in a while, I find I need to coax myself into an appropriate mindset.

I've found it often helps to review the filetree, the recent history of commits, and any comments with the word "todo" in them. That feels pretty basic; I imagine there are more, and more sophisticated, methods.

( 2 comments | on HN )
Re:How do you “warm up” before coding? by catchmeifyoucan on Saturday June 09, 2018 @01:10AM (#17271643)
I open 50 stackoverflow windows and 50 more terminal windows. Then I frantically move between desktop screens, and everything falls into place, as I finally understand what I'm doing.
Re:How do you “warm up” before coding? by inieves on Saturday June 09, 2018 @12:12AM (#17271497)
One way is to pick off an easy bug or feature... even something as simple as update documentation or update a comment or a config file. In my earlier years, drinking coffee was warm up enough. Something that has been fun recently is to type in “hacking music” or “programmig music” into youtube.