Ask HN: Do you use food as a performance enhancing drug when coding?
Towards the end of the week, usually on Thursday (we work Sunday - Thurs), I am unable to focus and progress - my body and my brain just don't want to work and write any more code. I feel that I should be resting instead, but I need to work.
So I use food as a performance enhancing drug. I gobble up chicken wings, veggies, chocolate, peanut butter sandwiches, milk, fruit, Sprite Zero - lots of it - and all of a sudden I can work again.
Does anyone else feel this or go through something similar? Do you think it's healthy? Is there any alternative? It definitely screws up my diet.
48 comments
[ 2.9 ms ] story [ 171 ms ] threadNo. A "Friday" feeling is often shared in workplaces, and unofficially accepted. You don't say if you WFH or if your work week is shared with your colleagues. You may just need to cut yourself some slack.
I wouldn't be surprised if you had a pretty hard crash on Saturday.
To answer the question: yeah I used to do similar, but I found more joy in pacing myself appropriately and treating my working time as a lot less intense than I used to.
Try exercise. May or may not work, but a quick high intensity exercise only for few minutes gives me usually energy for the next few hours. Run stairs, do pushups and squats or whatever.
Do consult with a medic and try tracking bodyweight. Only yesterday I saw one of the 'smart' scales that allows you to do all sorts of calculations and monitoring.
A behavioral psychologist might be of help for the anxiety too!
Getting pulse racing for a few minutes is the easiest things ever and does not require anything else.
It does not need skill, monitoring, strategy, motivation or external consultation.
Just few minutes likely suffice for a ridiculous amount of bang-per-buck benefit.
I agree that an organized exercise regimen has improved my wellbeing as well but that's a whole different discussion IMO ;)
> I feel that I should be resting instead, but I need to work
XY problem it seems
Feeling tired after a workweek is very common, and the real problem is that you're simply tired.
Eating lots of food may seem like a solution, but at best it's only a temporary fix and at worst it makes the problem much worse.
The real solution is in my personal experience a combination of better sleep, more exercise and most of all a better work-life balance. Work less, and live more.
Maybe when your motivation for work dries up you have learned to replace the good feeling chemicals by binging a new reward: food. Especially true if you have been neglecting (starving) your body, not exercising.
I think you could easily find this habit devastating to your long term health. When you have this urge maybe it’s long time you took a break. Good luck!
Personally, I try to keep a very balanced diet, with more substantial foods and nutrients (is less carbs) so I don't think I've had this problem.
I do snack though, with cashew nuts or fruits in between mealtimes. Helps give an energy boost.
https://news.ycombinator.com/item?id=37472032
https://news.ycombinator.com/item?id=37471200
https://news.ycombinator.com/item?id=37471173
If you keep this up, we're going to have to ban you. We've had to warn you before:
https://news.ycombinator.com/item?id=35940481 (May 2023)
https://news.ycombinator.com/item?id=32121722 (July 2022)
https://news.ycombinator.com/item?id=31418768 (May 2022)
https://news.ycombinator.com/item?id=31418760 (May 2022)
I don't want to ban you! So if you'd please review https://news.ycombinator.com/newsguidelines.html and stick to the rules from now on, we'd appreciate it.
Reality is, the way I work, it's just not realistic to work 8 hours a day or 5 days a week.
Only when I reduced to 35 hours i felt I have productive time next to work. And today I maybe work 4-8 weeks a year at 60 hours and the rest closer to 10 hours a week.
I am not sure how other people cope with that, but 40 hour weeks are crazy time consuming in my book.
First of all, you are getting a brain chemical boost from the eating, but it’s probably the least effective way to nudge your brain into a different state. You are eating a lot of high sugar and high carb foods so that’s going to make you crash within a few hours (or minutes).
Some better things to try: -A nap -Meditative resting, music, knitting, folding laundry ect. -Tea -Short high intensity exercise -Go outside
My own hack is that I pop on a VR headset and play beat saber. It’s a break, exercise, music, reward and escape all in 5 minutes. If I am really stressed, I play thrill of the fight and punch my problems in the face.
As the years go by you will wish you worked less and took better care of yourself.
Any new diet you try will have a two week or more adjustment period while your body adapts. This is normal, stay disciplined and measure results, then adjust.
This summer I changed to a meal schedule that's one medium-ish sized meal every three hours with veggies, meat, and carbs (usually rice, I just love rice), and after an initial adjustment period of a couple weeks, my energy levels became much more stable, especially in the afternoons.
After this adjusting to the above, I added coffee once at breakfast and once after lunch each day, which helps, but not in some amazing way. It's just a little extra energy boost in the mornings and afternoon.
Food isn't a "performance enhancing drug", it's food, you eat it because you need to. You seem to have a weird relationship or perception of food if you call binging on a day to be "performance enhancing".
It absolutely is, athletes need to have specific diets to maximize their performance for example. And food can certainly raise motivation (or destroy it) depending on how it's used.
Both the quantity and quality of food matters. Specific foods also boost brain function, carbs help power through exercize, protein helps build muscle, other food substances help with sleep and mood, and so on.
'Food is just food' is not even wrong.
>You seem to have a weird relationship or perception of food if you call binging on a day to be "performance enhancing".
Doesn't sound weird at all, just unhealthy.
Food is food. Drugs are drugs. That's not to say that a poor diet won't result in suboptimal results, but let's not conflate the two.
Nobody said food is a drug in the strict sense. It's the "performance enhancing" part which is the focus, as opposed to something you merely "eat it because you need to" as it it's choice, composition, and amount doesn't have major effects on performance on many levels.
Well, eating what you enjoy even it's fast food or snacks is OK if you generally eat healthy otherwise (not giving in ever is more like self-punishment). But the "lots of it" part is not. And the craving might leak to other days ("screwing up your diet" way more) in the end.
>Is there any alternative? It definitely screws up my diet.
Motivation and craving like that might be related to serotonine/dopamine as others suggested. So could try exercize, and also might want to look in creaping burnout and/or depression, and either cut down some work on those days, or check for anti-depressants.
Also ADD might be an issue (using food as motivation and trouble regulating a healthy diet are common traits).
1. drowsiness around and after lunch time which sounds related to your problems even if mine where just from lunch and onwards and every day of the week
2. a feeling of being jittery (not worried about anything particular but a strong feeling that I should do something, so strong that I have a hard time doing anything). Often related to coffee consumption.
-----------------------
As for solutions and attempted solutions, here is what I got:
1. (Discovered by chance:) if I skip breakfast I don't get drowsy after lunch. Why? No idea. But it has worked for maybe 8 years or so so it is not just that it feels novel.
Please be careful with this. I am not at doctor or a food expert. This might not be for everyone. There might be good reasons for why everyone tells us to eat breakfast to stay focused during the day, but with my brain, my guts, my work, my habits and my body it is completely the other way around.
Be espescially careful you consider this or consider mentioning it to someone else if you or they have a history with eating disorders. I have recently supported someone through a bout of mild anorexia and it was really scary.
Personally I am somewhere around 180cm and weighs well above 80kg so for me the reduced food intake is a pure bonus.
2. For the jittery feeling I have tried a lot of things:
- replace coffee with energy drinks: works but is expensive and you lose the social aspect of drinking coffee together. But it also means that for me it doesn't seem to be only the caffeine that makes me jittery but the whole composition of the coffeee.
- eat things from my childhood, hoping my brain or guts would make me feel better: didn't work for me
- eat fat or protein rich foods: works for milder cases. Now I just drink half a liter of full fat milk as a meal replacement
- skip chewing gum: works. This one is annoying. Chewing gum has helped me keep my teeth clean after lunch but at one point I realized it seriously wrecks my digestion.
- physical activity: not a food but I think it is worth mentioning still. Hard monotonous exercise (spinning bike in my case) seems to work. On a related note, drowsiness can sometimes be cured by beating the living crap out of a punching bag "for all it tried to do against my family" or something.
- sometimes just disconnecting works: again unrelated to food: I just stop whatever I can't do anyway because of the jittery feeling and read a passage from the Bible or something. Find something that works for you.
If you want to, you could try a small, but protein heavy/carb light breakfast. That can help boost your metabolism.
So small breakfasts doesn't work, it often merely triggers my hunger even if it is just egg and bacon.
So my solution is just to skip it all together. If food isn't on the agenda my body totally accepts that.
- Increasing protein and vegetables.
- Decreasing chocolate and other sugary snacks.
- Exercising on a regular basis.
- having more sugar and more calories intake in general (beyond minimum required by your body) is correlated with having less life span and having more chances of developing severe health issues
- there are no longterm health or lifestyle fixes (mental health included) that are based on eating habits only (the diet can be only a part of the process, and often not even the major one). Despite what pharma and marketers want you to believe
- usually your eating adapts to your lifestyle, behavior and even values, and not the opposite
Fruit and veggies are good for this. Sprite Zero may be useless or negative. Be wary of white bread, instant noodles, pasta, potato, chocolate, sweets, any fast sugar (surprisingly sugar itself may be okay).
Isomaltulose was invented to be a good form of this but it's similar in impact to fruits.