DEV Community

Cover image for The Better You Get at Coding, the Harder It Gets to Switch Off

The Better You Get at Coding, the Harder It Gets to Switch Off

Harsh on October 15, 2026

I used to close my laptop at 6 PM and forget about code until the next morning. Now I close my laptop and my brain keeps compiling. I'm in the sh...
Collapse
 
build996 profile image
build996 •

The 'write it down, but only once' suggestion seems useful because it separates having an idea from accepting a task. I'd be careful with the three-stage ladder, though: presenting 'can't switch off' as the senior stage risks making a boundary problem sound like a promotion requirement. A midnight note can remain a note until working hours. Do you find the harder part is capturing the thought, or resisting the urge to open the editor and act on it?

Collapse
 
harsh2644 profile image
Harsh •

Thanks for this You're right about the three-stage ladder. It wasn't meant as a promotion checklist, just an observation of a trap I've fallen into myself. And I'm glad the write it down once tip resonated.

To your question: capturing the thought is the easy part. Resisting the urge to open the editor at 2 AM is what actually gets me. Out of curiosity, what's been your experience with that?

Collapse
 
build996 profile image
build996 •

I don't have a personal 2 AM example to add, so I shouldn't present this as something I've solved. Your distinction makes me wonder whether the note needs a return time as well as the idea: 'look at this tomorrow after lunch' gives the unfinished thought somewhere to go. Opening the editor would then be a separate choice, rather than the next step in capturing it. Would that help in your case, or does setting a time just keep the task active?

Thread Thread
 
harsh2644 profile image
Harsh •

I really respect the honesty in that first line. And honestly, the return time idea is brilliant.

I think giving the thought a scheduled destination, like tomorrow after lunch actually works better than just leaving it open-ended. It turns a vague later into a concrete not now but then. For me, that wouldn't keep the task active in a stressful way. It would just put it in a queue with a clear execution time.

I'm definitely going to try adding a return time to my notes. Great suggestion!

Collapse
 
mohan_dhoundiyal profile image
MADAN DHOUNDIYAL •

As a solo founder this hits even harder — there's no "end of shift" when the product is yours. Last one for me: a user flow I'd shipped that morning kept replaying in my head all evening until I found the step people were dropping off at.

The "write it down in one place, then let it go" tip is the only thing that's actually worked for me. Once it's on paper, my brain stops guarding it.

Collapse
 
harsh2644 profile image
Harsh •

Madan the solo founder angle is something I didn't even consider when writing this, and you're right. There's no end of shift when the product is yours. The user flow bug replaying in your head all evening is such a perfect example because it's not even a bug you can fix anymore. It's already shipped. Your brain just doesn't accept that.

And I love that 'write it down in one place then let it go worked for you too. You said it better than I did: Once it's on paper my brain stops guarding it. That's exactly it. The note is proof to your brain that it doesn't have to hold onto it anymore.

Thanks for sharing this genuinely. Solo founders carry a specific kind of weight that doesn't get talked about enough.

Collapse
 
mohan_dhoundiyal profile image
MADAN DHOUNDIYAL •

Exactly that. The shipped-bug loop is the worst kind, because there's nothing left to do except accept it, and that's the hardest part.

The note trick has stuck for me. Small win, but it's the difference between actually being present in the evening or half-debugging in my head. Thanks for writing this one, Harsh.

Thread Thread
 
harsh2644 profile image
Harsh •

You nailed it with nothing left to do except accept it. Acceptance is always the hardest part because our brains are wired to solve problems not let them go. Half-debugging in my head' is such a perfect way to describe that feeling.

Really glad the note trick is working for you. Thanks for the great conversation, Madan

Collapse
 
yashish_yadav_3c497a3beae profile image
Yashish Yadav •

This hits incredibly close to home. When you first start coding, you leave your bugs at your desk. But as you get better, you start seeing the whole world as an architecture problem. Your brain just doesn't stop optimizing or refactoring in the background, even when you're trying to sleep or walk. That shift from 'solving a syntax error' to 'system-level thinking' is exactly why it becomes so hard to switch off. Thank you for putting this invisible tax of expertise into such perfect words!

Collapse
 
harsh2644 profile image
Harsh •

Yashish invisible tax of expertise is such a perfect way to put it. You're right the shift from syntax errors to system-level thinking is so gradual that you don't notice it until you're already in it. Thanks for reading, and for this comment. Was there a specific moment you noticed that shift in yourself?

Collapse
 
yashish_yadav_3c497a3beae profile image
Yashish Yadav •

For me, it was when I caught myself evaluating a restaurant's queue system as a rate-limiting and load-balancing problem instead of just waiting for food! That's when I realized my brain had stopped looking at code as just a screen job and started looking at the whole world through an engineering lens.

Collapse
 
andreas_mller_2fd27cf578 profile image
Andreas Müller •

I'm having the exact opposite experience right now. It was hard for me to switch of in the beginning, but now, after six and a half years, it's relatively easy. There are a couple of things that did the trick for me:

  1. Find something in your free time you truly care about. For me, music and reading have always been things that make me happy, and this makes switching of easier. I don't listen to music because I need to rest. I listen to music because I love music

  2. Learn mindfulness meditation. One of the biggest things for me. Meditation is the most effective mental rest I've ever come across. Nothing organizes my thoughts and rests my mind more. And it has numerous benefits, like making it easier to be present, making you less judgmental, more content...the list goes on

  3. Write everything you have to do for work down. This has also been a big help for me. I keep detailed notes about everything I do at work in OneNote on my work laptop. When I have a thought in my free time, I pull out a piece of paper, write down the thought, put it on my desk somewhere I'm gonna see it next day and move on with what I was doing before. If you write everything down you are not worrying about forgetting anything. Write everything you need to remember down somewhere you're gonna see it easily when it comes time to work again. It has saved me a lot of headaches

  4. Identifying less with my work. This is a hard process to go through. I'm still going through it, and I'm still falling down at times. But as the say in "Software Engineering at Google": You are not your code. The problems at work are something you have, not something you *are.

Keep up working on it. It is the journey of a lifetime, but you can definitely get better at switching of if you actively work on it.

Collapse
 
harsh2644 profile image
Harsh •

Andreas, this is such a valuable counterpoint. Thank you for sharing it.

I wrote this from the perspective of someone still figuring it out, so reading that it genuinely does get easier after six and a half years is honestly reassuring. It gives the article a hope I didn't give it myself.

A few of your points really landed:

The meditation one I've heard this from several developers now, and I think I've been avoiding it because it sounds too simple. But 'nothing organizes my thoughts and rests my mind more' is a strong endorsement. I'll give it an honest try.

And You are not your code' from Software Engineering at Google that quote alone reframes the whole problem. The idea that the problems at work are something you have, not something you are. That's the line I wish I'd had when I was writing this.

Thanks for the detailed reply. Comments like this make the article better than it was when I published it.

Collapse
 
effessdev profile image
EffessDev •

The beginning feels tooo relatable.

Collapse
 
harsh2644 profile image
Harsh •

Haha glad it's not just me. That brain keeps compiling feeling is the exact thing that made me write this. Thanks for reading! Which part hit hardest for you?