TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Turning off the programming mind during non-work hours

65 pointsby tennisprinceover 1 year ago
I have this habit which I&#x27;m sure many other dev have of thinking through programming problems during routine moments throughout the day.<p>At times this is an amazing blessing because some of the more out-of-the-box solutions get formed in these moments but more recently it&#x27;s been veering into unhealthy obsessive territory (e.g. out for dinner or exercising).<p>Please share your experiences + any tips around striking a balance?

29 comments

TechBro8615over 1 year ago
Personally, the worst impact of &quot;bringing my work home with me&quot; has been when I&#x27;m spending time adjacent to infosec or pentesting. That&#x27;s a discipline that requires cynicism (engineers are incompetent, can&#x27;t protect their systems), paranoia (everyone is constantly trying to hack your vulnerable systems) and distrust (any user input could contain a malicious payload). Unsurprisingly, these are <i>not</i> the ideal qualities for fostering strong relationships, especially with a new partner or anyone you met recently.<p>I don&#x27;t think this is discussed often enough. The traits that make for the best infosec professional are the same traits that make for the worst spouse. And that&#x27;s before even considering the tendency to &quot;over analyze&quot; that comes with the baseline analytical mind required for any engineering profession.<p>So how to manage it? Well, I&#x27;m not sure you can really turn it off. But you can be aware of it. Remain cognizant of your own biases, and redirect some of that analytical energy into introspecting and analyzing yourself, before you take it out on someone else. But don&#x27;t take it too far - sometimes your gut instinct is right; maybe she really is cheating on you, maybe you&#x27;re <i>not</i> just crazy. But take a second to think about it. And make sure to communicate your biases to anyone whom they might affect, so that they&#x27;re prepared to recognize when they emerge - that&#x27;s when a good partner will sympathize and bring you back to earth, and a bad partner will take it personally and exacerbate the situation.
评论 #37475637 未加载
评论 #37473545 未加载
评论 #37476237 未加载
评论 #37476893 未加载
评论 #37479756 未加载
wsowsowsoover 1 year ago
Hey I’m in trading - Often we go home with millions of dollars of risk on our books after 12hours at the office, so it’s a common problem switching off in the little time after work. Most of us feel the need to constantly be up to date with market news&#x2F;price movements&#x2F;thinking about how to best position ourselves around a certain event. Within the industry there are well known ways for switching off out of work, some have been listed here already.<p>* Vigorous exercise, especially cardio - ok to let your mind wander here but wary of mentally exerting yourself<p>* end of day writing down everything you need to do and what you have learnt<p>* if you have extra learning&#x2F;coding side projects, do it only at the office after work but before you go home so that home is a work free zone<p>* have a threshold routine when you get home, e.g. change clothes or have a shower, after which you don’t think about work anymore<p>* controversial one but minimise talking about work with family - obviously share the nice things about your day but I pretty much avoid grumbling about work or specific stresses at work with family as it means you never get a rest from them<p>* consume media unrelated to work (don’t read hacker news before bed if you’re a software developer lol)<p>* some people meditate, never clicked for me but it’s meant to be very good<p>* work yourself to death when you are working so that you can properly relax guilt free when you’re not working. Honestly WFH makes a lot of these more difficult.
评论 #37473665 未加载
评论 #37473839 未加载
unsatedover 1 year ago
I found &quot;dumping&#x2F;serializing state&quot; greatly helped me.<p>I got into a habit of writing down things that required continued work next day, at the end of my workday. Initially I started doing this because it would take too long to get back into the depth needed to be productive especially after a long weekend or context switching for a day or two due to something time critical. The most effective form of &quot;state dump&quot; being specifically what is the next thing I need to immediately work on given next opportunity.<p>Overtime I realized, this &quot;checkpoint&quot; allowed me naturally to evaluate how much time and energy I spent on something and be specific about the next thing that would move me towards the outcome I wanted. This focus would:<p>1&#x2F; put my mind at ease, because I know what&#x27;s important was written down and I don&#x27;t need to spend mental energy keeping the state alive in my mind.<p>2&#x2F; It would direct my thinking towards what is important to do next time around rather than thinking of interesting but nuanced thing that are actually low value in grand scheme of things.<p>3&#x2F; Often, narrowing down what&#x27;s the next thing I need to do meant I had a solution next morning and would often experience high productivity in first few hours of the day.<p>ymmv.
评论 #37476666 未加载
评论 #37475625 未加载
gus_massaover 1 year ago
During exercising: I don&#x27;t mind if it&#x27;s not dangerous. For example, when you are biking IRL and get distracted. A fixed bike is nice for thinking. On the other hand, I can&#x27;t think while swimming, so it may be an option to 100% disconnect.<p>During out for dinner: Alone of with someone? When you are with other people the UI&#x2F;UX is important and must be responsive. Remember to switch off as many side process as possible.
hannasmover 1 year ago
I have always considered time like this billable hours. In a contracting role it may be something you can add to the invoice, it probably depends on the contract. In a salaried position it means coming in later to work, leaving earlier or otherwise finding extra time to properly recuperate. You may want to have conversations with appropriate peers and&#x2F;or leaders on your team to establish the best approach.
kdmccormickover 1 year ago
If I&#x27;m thinking about a work problem, I count it towards my 40 hrs&#x2F;wk of allocated work time.<p>If I&#x27;m thinking about a hobby problem, then I don&#x27;t sweat over it, unless of course it&#x27;s eating into some other aspect of my life (friends, outdoor activities, etc).
评论 #37472437 未加载
renjimenover 1 year ago
- I set strict working hours where I allow myself to think about work things.<p>- I finish these working hours every day with an activity that stimulates me and&#x2F;or requires concentration. Usually this involves getting outdoors where there&#x27;s a lot more sensory input to process. A walk around the park is usually good enough!<p>- I don&#x27;t expose myself to anything work related outside my working hours. I don&#x27;t have work related apps on my phone and I use a separate work profile on my laptop.<p>I work remotely so these rules are doubly important for me, where I don&#x27;t have the luxury of being able to leave the office.
mooredsover 1 year ago
If I have a burning thought about something work related, I&#x27;ll send myself an email to review the next working day.
javajoshover 1 year ago
A solid 90% of mental health issues stem from the inability to choose where to place your attention. The only activity that I know of that teaches this important ability is meditation. And the only place I know of that teaches it well are the Vipassana 10-day retreats (dhamma.org). They help you by taking away all distraction, giving you a safe, quiet place to practice, and all the encouragement in the world.
xk_idover 1 year ago
i think the fact you are even thinking in terms of an on&#x2F;off switch suggests you are far from your goal. the brain is not a computer [1]. yet, you projected on it machine characteristics: such as step transitions between states. rather, the biology of brain states is more similar to that of exercise biology: when you finished running, your heart rate, body temperature and <i>numerous other adaptations</i> stay elevated. in fact, metabolic rate stays elevated above sedentary baseline throughout the rest of the day (which constitutes a benefit). likewise, it&#x27;s unrealistic to expect a discrete switch from on to off of &quot;programmer mind&quot; adaptations. there are many good suggestions in the comments for speeding up the transition, but i thought i would mention this biological context. it&#x27;s completely normal to struggle with reverberations of the activity which occupied most of your day. above all it takes patience for them to fade away.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37426601">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37426601</a>
temeyaover 1 year ago
The fact that you recognize that you&#x27;ve got a runaway daemon is good. Now you just need to recognize when it&#x27;s eating too much memory and taking too many processes. (I realize that how I&#x27;ve described might be a bit much, but if you&#x27;ve thought yourself into this conundrum, then perhaps you can think your way out!)
评论 #37475747 未加载
DrThunderover 1 year ago
Try a type of exercise that gets you out of your head. Jogging isn&#x27;t going to cut it unless you&#x27;re sprinting ridiculously hard. For me, it&#x27;s heavy weights or technical mountain biking. For mountain biking I really cannot take my focus off the trail or it could mean a really bad wreck. Of course, if I don&#x27;t change up the trails enough my mind can even wander during that.<p>As others have mentioned, meditation may help too. It&#x27;ll help you learn how to let thoughts go without obsessing. So, everytime you catch yourself following down the programming thought path you need tell yourself &quot;HEY, it&#x27;s time to turn my attention elsewhere&quot;. Just like physical exercise you&#x27;ll build the brain pathways to do this more easily the more you practice.<p>Lastly, maybe you just need to take some time off. I find if I&#x27;m gone from work for a few days all that stuff fades away while I&#x27;m doing other things.
评论 #37472570 未加载
hyggetroldover 1 year ago
In my experience the ability to &quot;turn it off&quot; is a skill that requires practice. This thread already has some good suggestions: exercise, meditation, writing a note to yourself, etc.<p>I would add that getting out into nature can be really helpful as well. If you&#x27;re in an urban situation a walk in the park or near some water is good.<p>Exploring art like with physical drawing or painting can be good too. Or sculpting if that turns you on.<p>I think it&#x27;s really important as part of this to get out of the &quot;productivity mindset&quot; - so go for a walk&#x2F;run&#x2F;bike ride&#x2F;whatever and <i>don&#x27;t</i> try to get a &quot;two-fer.&quot; So don&#x27;t listen to a podcast or audiobook while you&#x27;re exercising or walking. Really try to dial down all the mental input as much as possible. You don&#x27;t have to do this all the time but at least a few times a week can really help.
评论 #37472466 未加载
night-riderover 1 year ago
<a href="https:&#x2F;&#x2F;practicalpie.com&#x2F;the-tetris-effect&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;practicalpie.com&#x2F;the-tetris-effect&#x2F;</a><p><a href="https:&#x2F;&#x2F;exploringyourmind.com&#x2F;tetris-effect&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;exploringyourmind.com&#x2F;tetris-effect&#x2F;</a>
satya71over 1 year ago
Meditation should help with this. After all, it&#x27;s about practicing to calm and focus the mind one thing only.
cloogshicerover 1 year ago
For me personally, the only solution was to work less.<p>I know this is probably not the answer you wanted to hear. But reducing my work hours to 30h&#x2F;week has been the single biggest improvement to quality of life that I&#x27;ve ever made. I&#x27;ve never questioned if it&#x27;s worth the money.
omscs99over 1 year ago
I’d say for me a big one is working out of office, when the clock hits 5 (and not oncall) work laptop gets closed and I don’t open it again<p>It’s really a little thing, but maintaining separation between workplace and home and trying to minimize that overlap works well for me
SeanAndersonover 1 year ago
Meditation sounds like a good solution. I suggest Ten Percent Happier. The CEO at my last company recc&#x27;ed it to me and I&#x27;ve found it to be quite good. It&#x27;s a paid subscription, though.<p>Outside of that, I engage with flow arts (specifically poi spinning) to get out of my head. The reason it works for me is because the moves require an absurd amount of bodily concentration which forces my brain to disengage. Later, as a trick becomes rote and requires less physical concentration, I find that the hours I spent practicing resulted in habituation wherein I drop out of my &quot;thinking mind&quot; whenever I pick up my props - even if the tricks I&#x27;m doing are easy enough.
barrysteveover 1 year ago
Often something in life needs doing for a good reason, and there&#x27;s not really much to logically parse.<p>But I still have automatically jumped into logically dissecting the problem and looking for edge cases and mulling over the logic of the problem. And trying to get the basic problem, to find the perfect solution. Needlessly.<p>Stepping down a gear to just doing things because there&#x27;s a reason for it has been helpful. Letting the logic and rhetoric part my mind relax &#x2F; let go &#x2F; go blank helps.<p>It feels like I&#x27;m not doing the random chore correctly (for like a split second), but it&#x27;s better to just chill on a little faith than spin mental gears pointlessly.
oneepicover 1 year ago
I didn&#x27;t see other responses like mine, so I wanted to share that &quot;why&quot; was really important for me, not just how. I was afraid of disconnecting, and I wanted a really good reason.<p>Well, recently my headaches and itches have gotten worse. I feel that it&#x27;s tied to my anxiety. I&#x27;ve had success showing myself that it&#x27;s not 100% natural to think or obsess as much as I do, and there&#x27;s a certain level of acceptance&#x2F;trust&#x2F;love that I didn&#x27;t have in my life. That is helping me dramatically.
mettamageover 1 year ago
My analyzing mode is always on. Whenever I was on Tinder, I needed to turn it off. I made a Spotify playlist with party tracks that made me feel like I had 8 beers in me. That helped, made the conversations a lot more fun to. No more logic brain but pure creative brain chatting.<p>So, yea, music can induce mood changes. I&#x27;m not necessarily saying you should create a playlist where you feel like you&#x27;re losing 20 IQ points, but experiment with music! :D
hot_grilover 1 year ago
The more I&#x27;m around other people who are social, the less I obsess over things. Church indirectly helped in that way when I had two SWE jobs.
costanzaDynastyover 1 year ago
Ive had mostly terrible jobs before I got into programming and I learned to leave work at work. At my last job(non-tech) I got so good that the second I drove out of the parking lot I forgot I had even worked. I also exercise after work and it really helps kill negative energy.
评论 #37476870 未加载
austin-cheneyover 1 year ago
I solve my toughest programming problems during my cool down walk after a long run. This is a blessing, because the time is spent regardless.
sys_64738over 1 year ago
The method I use is to always leave when you&#x27;ve solved the problem for the day. Don&#x27;t start another afterwards.
lagrange77over 1 year ago
Of course it shouldn&#x27;t get obsessive, but i let my brain do it&#x27;s thing in that context.
joseferbenover 1 year ago
Very interesting thread, thanks for asking the question. Could any spouses of SWEs chime in?
shaunxcodeover 1 year ago
Double down. Get to the point you perceive of everything in terms of pi calculus.
cryptoboy2283over 1 year ago
Kids?