from Hacker News

What do you do while it compiles?

by bvrlt on 5/31/18, 9:24 AM with 5 comments

You're working on your project and iterating on, for instance, UI fixes. Compiling and launching your project takes 20 seconds. What do you do during these 20 seconds? (eg. read the news, Twitter, …) Do you feel it affects your focus?
  • by cimmanom on 5/31/18, 10:40 AM

    20-40 seconds? That's not enough time for a full context switch.

    Take an eye break (look at something more than 20 feet away). Stand and stretch your back. Do a few desk-friendly stretches or exercises (curls, squats). Go to the kitchen for a beverage refill.

    Somewhere around the 5 min mark for a wait it becomes time to check email, etc.

  • by fmkamchatka on 5/31/18, 11:43 AM

    I like to use Focus (https://heyfocus.com/) on the Mac to prevent myself from actually doing these context switches.
  • by GrumpyNl on 5/31/18, 10:10 AM

    Wow, old days, working with clipper, it took between 15 and 40 minutes. We went to the bar and hoped the compiler didnt break the moment we entered the bar.