logoalt Hacker News

lfliosdjflast Wednesday at 9:22 PM8 repliesview on HN

Has any one successfully code with same focus after cutting sugar? Seems sugar is really important for focus. Whats your experience?


Replies

anthomtblast Wednesday at 9:59 PM

I did keto for a few months a long time ago (2010/2011). This was early in my career and long coding and debug sessions were a normal part of my day-to-day.

There was zero impact to my work focus, positive or negative, from cutting nearly all carbohydrates out for several months.

I am curious were you heard or learned that "sugar is really important for focus". Just a vibe, perhaps?

show 1 reply
united8932last Wednesday at 9:31 PM

Been coding while fasting on keto and it's absolutely amazing. Fasting is hard socially, being ketogenic puts a bit more stress on my kidneys, but for me (adhd) it's amazing.

remember your brain can run on ketones which provides a more stable energy than glucose spikes. the brain is metabolically flexible, can run on glucose, ketones or lactate

CrimsonRainlast Thursday at 9:46 AM

That's addiction. You'll need time to get out of it.

Cutting off sugar will help you have more focus, not just during coding but the whole day. However, if you were on high amount of sugar before, at initial stage, your body will scream.

For me, it takes a few weeks to get settled in. After that, I don't miss sugar at all. Can focus just fine.

331c8c71last Wednesday at 9:59 PM

If anything focus gets better without sugar and excessive carbs for me - but those work well for outdoors or workouty days I find.

show 1 reply
shimmanlast Thursday at 5:04 PM

I have never heard of anyone using sugar to "focus," if you want to focus take amphetamines or cocaine.

aldarionlast Thursday at 4:06 PM

I don't code, but I do know that not eating sugar significantly improves my focus no matter what I'm doing.

NoPicklezlast Thursday at 2:12 AM

Why are you cutting out sugar, unless you mean reduce. But you shouldn't stop eating sugar, its required, just not in excessive amounts.

show 1 reply
lowbloodsugarlast Thursday at 3:04 AM

If you're addicted to cocaine, then cocaine is really important for focus. Same for sugar. If sugar is really important for focus for you, then you're likely heading for diabetes type 2.