DEV Community

Discussion on: If it's Saturday and you won't be coding again until Monday, how do you get your mind off your current work?

Collapse
 
erdo profile image
Eric Donovan • Edited

Before I leave work, I add a sentence right in the code that I'm working on, so that it breaks the project (I don't commit that obviously).

The sentence details what my current thought process is, what I am going to try next etc.

Because it stops the project compiling, the IDE now puts a bunch of red squiggles all around it, highlighting what I need to read whenever I get back to work.

Now that my thought process is out of my brain and written in the code, I feel more free to forget about it (unless it's some particularly exciting thing).

I shut the laptop, leave it at work, and don't have slack or work email going to my phone.

(If it's a really exciting problem, I will occasionally indulge myself and think it through in my free time, but with a pencil and paper - definitely not on my work laptop)