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: Does coding give you brain fog?

71 pointsby shaydocalmost 8 years ago
Do you ever suffer from brain fog after a day of intense thinking&#x2F;coding ?<p>Some days after intense working I leave the office spaced out, to the point I wouldn&#x27;t drive. Thankfully I hop on the train.<p>I also find the whole prolonged screen exposure and posture just leaves me with a headache and neck ache.<p>I really notice how much better I feel after maybe 3 days off work..

43 comments

banticalmost 8 years ago
Not exactly brain fog but I often find myself in extreme left-brained mode after a challenging day of coding. If I meet friends after work I am a horrible conversationalist for up to an hour while my brain slowly (and reluctantly) stops actively churning on coding problems.<p>Related to the right-to-left thinking mode changes, sometimes the words that I am using at become eerily meaningless or unfamiliar. I&#x27;ve spent a few moments asking myself &quot;is that really the way &#x27;else&#x27; is spelled?&quot;. I recently learned this phenomenon is called semantic satiation [1].<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Semantic_satiation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Semantic_satiation</a>
评论 #15019853 未加载
评论 #15019565 未加载
评论 #15021530 未加载
评论 #15023846 未加载
评论 #15020126 未加载
malux85almost 8 years ago
I used to get this - it turned out that I was not breathing enough, which caused my blood pressure to go up. I would get so focused on a problem my breathing would slowly become more shallow.<p>Now I have a water bottle on my desk and I slowly sip it all day, it forces me to get up every 1-2 hours to use the bathroom and fill the bottle back up -- and I deliberately use the bathroom 1 floor down to force me to go up and down the stairs
评论 #15019426 未加载
评论 #15019463 未加载
评论 #15019593 未加载
justacatalmost 8 years ago
I&#x27;ve had a tendency of entering prolonged periods of focus throughout my life, and at this point I can feel my brain almost optimize to the task at hand, there is a type of shift.<p>For example, I played and performed music seriously for a period of time (no singing), and it was pointed out by a close friend that any performance that lasted more than an hour and my verbal center would basically crash. It would take at least 30 minutes or even hours before my brain would be able to start talking like a normal person again. Prior to this point in time I had purchased a pocket dictionary which I carried around, seemingly to combat this issue.<p>At present, when I have been working on something particularly engaging at work my wife notices because my ability to communicate does suffer.<p>It is interesting that you noted 3 days, just because I recently heard a researcher talking about how getting away for 3 days can have a cognitive benefit: <a href="https:&#x2F;&#x2F;www.rei.com&#x2F;blog&#x2F;camp&#x2F;the-nature-fix-the-three-day-effect" rel="nofollow">https:&#x2F;&#x2F;www.rei.com&#x2F;blog&#x2F;camp&#x2F;the-nature-fix-the-three-day-e...</a><p>As was mentioned, getting checked out by a doctor does sound like a prudent step.
grandalfalmost 8 years ago
I get a bit awkward socially after a focused stretch of coding. Some days I&#x27;ll go 4-6 hours only speaking to one person (a barista) briefly to order some coffee.<p>The next conversation I have after the coding stretch usually finds me struggling to make my mouth say the thoughts in my head, and then once it does, the sentence structure I use includes more nested clauses than usual.<p>But even after a 12 hour day of coding I rarely feel fatigued when it comes to learning something new about a technical area I&#x27;m studying, though admittedly I don&#x27;t always spend my spare time working on those things.<p>I generally get very focused and periodically hours will go by and I won&#x27;t realize what time it is, only to realize that it&#x27;s hours later than I had thought. This is a double-edged sword. The flow state is amazing, but sometimes I wonder what happened to the day, even though it was a pleasant day.<p>I&#x27;m about half introvert, half extravert, but for me the most fatiguing thing is being in meetings that seem to last too long relative to their yield. I end up drained and need to recharge for a bit afterwords alone before I&#x27;m ready to do anything.
er1c_almost 8 years ago
I&#x27;ve had the spaced out feeling after work as a recurring problem for over a decade. Most days I am OK enough, but others the only thing I want to do is go home and stare at a wall as all cognitive abilities are exhausted.<p>I run 10 miles a week and bike long distances, make all of my own meals, and have been working with various doctors for years. Nothing seems to help &#x27;fix&#x27; the issue altogether.
评论 #15019719 未加载
评论 #15020050 未加载
chewzalmost 8 years ago
You should check calcium, vitamine D. and parathyroid hormone levels and consult a physician. Brain fog is typical for elevated levels of calcium. I had a thyroid cancer which affected parathyroid glands (rare) and had a brain fog for like a couple of years before being properly diagnosed. It is nasty because it affects your emotional and intellectual abilities but it is difficult to self-observe.
cjensenalmost 8 years ago
Please get checked out by a doctor. Anytime you have really weird symptoms, it&#x27;s best to be sure it isn&#x27;t something serious.<p>Short answer: No, I&#x27;ve never had anything like that.<p>After concentrating for an extended period, I&#x27;m slightly out of it when switching to talking to someone. But it clears up quickly and has never been anything so bad that &quot;I wouldn&#x27;t drive.&quot;
allhailkattalmost 8 years ago
I do, but I also have fibromyalgia, which makes me an atrocious point of comparison. But that does mean I&#x27;ve gotten a lot of experience working around physical and ergonomics engineering.<p>Intense mental work can drop your blood sugar and oxygen content in your blood, as mentioned by others. Start checking your health and engineer health back in for better coding.<p>Walking to another floor&#x27;s bathroom, stepping away from your desk to walk around the building, getting a sit-stand desk, regularly stretching... there&#x27;s a bunch. Get a tracker, and start experimenting. The same thing for nutrition.<p>If you haven&#x27;t, work on deep breathing exercises and consider getting a pulse tracker so you can find a pattern. This is any other data pattern, the effects are just very close to home. If you feel like you should be coding, consider if your life was a resource management game and at what point you would expend resources to get better productivity from your base unit (aka. you).<p>Good luck!
hacker_9almost 8 years ago
I get this if I spend too much time programming. You just need to get up and take breaks, for example after every task you complete. Go do stretching or read a book, let your mind unwind, then get back to it after 20 mins. Not all offices allow for this so if yours doesn&#x27;t consider changing job, for your own health.
drhurdlealmost 8 years ago
A lot of people here are saying take breaks and go for walks. I&#x27;ve felt what you described and something that I have just recently started doing that has helped 1000x over is meditation.<p>Check out the Calm app[1]. Its helped for me because I had no idea where to start. I have no affiliation with them and am sure there are alternatives out there, this just happened to be the first I had tried. I&#x27;ve just started using it the past few weeks and use it at least a couple of times during the work day, and I try and take a walk at least once a day during work as well. Its really helped with everything you listed above.<p>[1] <a href="https:&#x2F;&#x2F;www.calm.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.calm.com&#x2F;</a>
pmarreckalmost 8 years ago
You need to set reminders to take a break once an hour, walk around, stare off into the distance for 5 minutes. This article is from 2012 but mentioned 5 of them: <a href="http:&#x2F;&#x2F;www.techrepublic.com&#x2F;blog&#x2F;five-apps&#x2F;five-free-apps-to-help-remind-you-to-take-a-break&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.techrepublic.com&#x2F;blog&#x2F;five-apps&#x2F;five-free-apps-to...</a><p>I also noticed this was a side benefit of having a good test suite- if your test is valid, thorough, and passing, then you don&#x27;t have to remember as much mental-model (because it&#x27;s encoded in the suite), which would normally discourage you from getting up at all
评论 #15019862 未加载
评论 #15020113 未加载
magic_beansalmost 8 years ago
Coding just burns me out. By the time I get home, I can&#x27;t bear to even look at my laptop. I have a very hard time doing coding side projects because I&#x27;m just to burnt out too code outside of work.
agnivadealmost 8 years ago
Its all about having a work-life balance. I code in the morning, then work-out in the evening.<p>The workouts keep me healthy and makes my brain active during coding.<p>And writing code creates the mental concentration which has built up my mind-muscle connection.<p>Both go hand-in-hand really. Never do too much of anything. Too much of writing code drops the code quality. And too much of physical exercise will not allow for muscle recovery. Just apply common sense and do what feels right to you.<p>And yes, buy a good keyboard. A really good one. It will help you years later.
robodalealmost 8 years ago
I&#x27;m under a tight&#x2F;looming development deadline during the day and remodeling the lower level of my house at night. I find after prolonged mental strain during the day, I find it hard to do basic math with fractions to do simple cuts of wood (5-3&#x2F;8 minus 2-1&#x2F;4)...uhhh...
emergedalmost 8 years ago
Could be that you over eat or under eat while working. Or are snacking on something you have a food allergy to. Could be that you&#x27;re not getting enough exercise. Could be an environmental factor like mold. I&#x27;ve had all of these issues at one time or another resulting in brain fog.
kyriakosalmost 8 years ago
I usually get this after a stressful day but not to the extend of what you are describing, it lasts for ten minutes or so until I change environment. Do you consume a lot of caffeine while working? Maybe you should check that. Taking breaks every half an hour is always a good thing, never be stuck on the office chair for too long, it causes problems even if there&#x27;s no underlying health problem. You don&#x27;t need to run a marathon either as far as exercise is concerned,if you have the chance get down and do 15 - 20 push ups a couple of times a day, it&#x27;s amazing how much difference it makes. Taking a walk also helps clear your mind, I feel really relaxed after walking my dog for 30 mins.
emmanuel_1234almost 8 years ago
I started having that during my PhD, and I got into a mild alcoholic habit because of that. I was so brain-tired at the end of the day that I felt the need to &quot;reset&quot; it with a couple beers. Mind you it worked great, but I definitely recommend against it.<p>I find physical activity (walking, biking, going to the gym) to be the best, with the added benefit of the &quot;Eureka&quot; moments you get when you&#x27;re NOT at your desk. I now try to go for a walk for at least an hour if I start getting that. It took me some time to find a job&#x2F;boss who understands that.<p>So yeah, it happens to me every time I concentrate too hard for too long, especially when coding &#x2F; working on logical problems.
corfordalmost 8 years ago
Could just be simple brain exhaustion from prolonged concentration (I occasionally feel something similar, usually after back to back heavy coding days and I&#x27;m running low on sleep).<p>Like others are saying, a few things that might help: stay hydrated (water, not coffee&#x2F;soda etc.), get a good night&#x27;s sleep ahead of intensive coding days, don&#x27;t eat crap food at your desk and don&#x27;t stay in the &quot;zone&quot; for 6+ hours without getting off your chair at least once and doing something different for 30-45 mins (ideally involving fresh air, outside of the building).
shaydocalmost 8 years ago
So much genuine amazing feedback, thanks so much..<p>I have been doing this job 20 years now and I think this feeling is more prevalent now. The combination of family, commute, and sitting at a desk coding is frankly tiring.<p>I often get up and walk around, and drink water, etc.. I cycle to work often, used to do gym sessions at lunchtime And that definitely helps..<p>But sometimes when you are thinking intensely you just zone out...<p>I used a little poetic license regarding &quot;I wouldn&#x27;t drive&quot; just to get my point across.
jmhainalmost 8 years ago
I experience something very similar. It turned out to be at least in part from eye strain induced headaches (&quot;computer vision syndrome&quot;). I started paying more attention to ocular health, including following the recommendation of a comment here [0] and lowering screen brightness. It does seem to be helping.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12582810" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12582810</a>
hoshalmost 8 years ago
Sometimes.<p>If I am marathoning, though, I use a pomodoro timer and meditate or do something similar to tai chi in between coding sessions. If it isn&#x27;t that intense, I tend to self-regulate in microdoses using techniques from meditation and an art like tai chi.<p>I only require multiple days of recovery when I burn out, often resulting from sustained interpersonal conflicts. I have noticed that has been improving since applying techniques from Crucial Conversations.
pmurTalmost 8 years ago
On the body aches - standing desk that can lower to sitting height. I change back and forth throughout the day. Also keep a bokken (wooden sword) to swing and walk for periodic breaks - wife calls it my &quot;thinking stick&quot;.<p>Regarding getting out of the fog - drinking is the only thing I&#x27;ve found to be reliable, but seldom do so during the week
vitomdalmost 8 years ago
My main problem was eye fatigue. I use Flux (justgetflux.com&#x2F;) set at 4300K even during the day, and it helped a lot.
ErikAugustalmost 8 years ago
My first couple years as a professional developer were amazing - 7-12 hours a day of coding to keep up. Every single day I left the office totally spent mentally.<p>I would often dream about coding, or solving a problem that I was stuck on.<p>I did not however, get headaches or neck aches. In fact, I found being spent mentally to be somewhat of a pleasurable state!
harrygeezalmost 8 years ago
You&#x27;re straining your brain over extended periods, of course it happens. Your brain is a living part of you and it too needs to rest. I get that semi-often partly exacerbated by bad sleeping habits (it&#x27;s not good obviously) and I what I find helpful is to take breaks and drink more water. Sounds obvious but yea.
ozovehealmost 8 years ago
Yes. I&#x27;m sprawling on a bench now after hours of coding, I should be on my way home. The top of my head feels like pepper was poured on it. I can&#x27;t really endure a conversation at the moment. I believe it&#x27;s a combination of sleep deprivation and hours of intense mental exercise. Listening to music helps
jkenneyalmost 8 years ago
I have only rarely have felt this from programming (at work or not).<p>But as a competitive chess player, I do usually experience it at the end of (especially) weekend tournaments, where there is generally 3 consecutive days of 8-10 hours of intense concentration. The fog is gone after a good sleep and day of rest.
anotherevanalmost 8 years ago
I would definitely look at the ergonomics of your work environment. Do you work on a laptop all day? I don&#x27;t know how people can do that, it is terrible for your neck and back. Something like this could be causing (or contributing) to your fatigue as much or more than the intense thinking.
brett-zaalmost 8 years ago
Yes, exactly this! Sometimes on my drive home I think it&#x27;s not such a good idea to be behind the wheel.<p>It&#x27;s usually a combination of long days of coding and stress that causes my brain fog. The same factors cause me to regularly wake up at 3a.m. with my mind too busy to go back to sleep.
voltooidalmost 8 years ago
I have workrave installed on my computer. It reminds me to rest my eyes, take long and short breaks throughout the day. I installed this on my computer after a few days of being terribly tired at the end of the day. Now I feel better and fresher even during the day at work.
Agentlienalmost 8 years ago
I experience these symptoms from work days during prolonged periods of high stress. I don&#x27;t usually get it from programming during less stressful times and I&#x27;ve had just the same issues during a month when I somehow ended up with a bunch of non-programming tasks.
freekhalmost 8 years ago
Oh yeah! My friend used to tease me every day after work when we worked together. &quot;How&#x27;s it hanging up there in the code fog&quot; he would always say when I was grasping for words :) I never really noticed though: so no headaches or anything like that...
bjournealmost 8 years ago
No, rather the opposite. Coding makes my mind clearer. If you get a headache and neck ache, then that is most likely due to poor ergonomic setup. Things like better chair and sitting right should help. Or perhaps you need terminal glasses.
Kinnardalmost 8 years ago
Do you take brakes and walk around? Do you exercise (I mean RUN) while not programming?
评论 #15019553 未加载
评论 #15019571 未加载
donquichottealmost 8 years ago
Have you tried cutting caffeine? I&#x27;ve had similar symptoms and cut coffee two weeks ago after drinking &gt; 5 cups&#x2F;day for years. Not sure if it&#x27;s placebo but it looks like my brain fog is gone.
Fire-Dragon-DoLover 7 years ago
I don&#x27;t feel brain fog, but I have hard time playing tactical videogames on intense work days. In those cases, I play a very reflex based game and it feels like doing a relaxing run after hard training
RUG3Yalmost 8 years ago
After a day of intense coding, I am completely hosed when I get home. I find programming to be very exhausting and demanding.<p>If I&#x27;m just doing easy front-end stuff like css, I don&#x27;t feel this effect.
carapacealmost 8 years ago
Check your light, seating &amp; posture, chronic muscle tensions, and most of all <i>diet</i>. Thinking burns calories, your brain gets something like a fifth of all the oxygen you take in...
pasbesoinalmost 8 years ago
Look at the act of coding itself. But also look at your overall work environment. It could be the stress of focusing in the face of distractions. It could be allergies. Or bad lighting.
jacquesmalmost 8 years ago
Possibly eye trouble, bad air in the place where you work or a latent health issue.<p>I used to get incredible headaches after long bouts of coding, it took me a long time before I realized I needed glasses.
评论 #15019634 未加载
manicdeealmost 8 years ago
I have used the Pomodoro Technique to help me here. After 25 minutes work get up and walk for 5 minutes.<p>Adjust duration and ratios to suit your own environment.
y-haminatoralmost 8 years ago
I always get brain fog while at work or school, and it always dissipates when I go home. I haven&#x27;t found a direct cause yet.
whataretensorsalmost 8 years ago
No, but it could be that you are stretching your skills(good!). Exercise to make sure it&#x27;s not a physical thing, and be sure to take regular time off to recover.<p>If you are working on challenging stuff all day, it&#x27;s probably a really good thing.