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)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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)