1. "Microbreaks" from work - grabbing a snack, browsing random things, checking the news/stocks/how far below $4000 BTC fell, etc. This is mainly harmful because it keeps you from doing work fast. The, arguably, worse part of it is that you get nothing done in a long time and then feel like you "worked all day" for nothing. So you waste time doing something that isn't pleasurable, but you get far reduced benefit, making it seems like the productive task wasn't worthwhile at all. The excuse is that it breaks you out of being stuck in a rut - a lot of the time while coding, I will stare at some problem endlessly, when I should have stepped back and changed my approach. Herein lies the conflict between "deep work" and "stepping away to get perspective" for me. It seems both have merit, and it takes experience to know when to do which. With that said, switching context constantly does NOT give your mind that break it needs, because the mind becomes engaged with something else, rather than continuing to work on the problem.
2. Sleep 7+ (preferrably 8) hours. At this point it's well known that sleep is essential to memorization, concentration, testosterone production, and athletic recovery. "Working hard" by avoiding sleep undercuts your efficiency and quickly starts to have negative effects.
3. Eating sugar. Rots teeth, makes you fat, spikes blood pressure and increases the likelihood of heart disease (https://www.health.harvard.edu/blog/eating-too-much-added-su...). All for no nutritional value. The twist here is that "it makes you feel good" and "gives you energy". The "makes you feel good" part is definitely a habit that can be broken. The "gives you energy" part. Well, that's something that I actually think happens. If I drink a KickStart, I can stay awake through sprint planning, which is quite a feat. I haven't found the blood sugar spike & drop to be true in my experience, which makes this a difficult habit to fully break for me.
> "In 1995, a meta analysis of the 23 most reliable studies was published(...). Sugar simply had no discernible effect on the children's behaviour in these studies."
If you erase that notion it becomes pretty obvious that sugar does little (if something at all) to keep you 'on', at least compared to caffeine (or, you know, harder stuff).
[1] https://www.theguardian.com/lifeandstyle/wordofmouth/2014/fe...
Whenever you have to make a choice and there are an “easy” and a “hard” options, you should choose the hard option. It’s always the right one.
Why? If the easy option was also the right one, you wouldn’t even be thinking about it. The hard option is your conscience/instinct telling you to look beyond the obvious, easy answer.
> If the easy option was also the right one, you wouldn’t even be thinking about it.
Ironically, significant cultural pressure to glorify grit and choosing the hard option often means that the easy option looks automatically bad, in a "too good to be true" kind of way, and you may have to go back and convince yourself that it's OK to take the easy option. This is compounded by the fact that availability of easier options may often be very random and "unfair".
Getting back to your example, there’s no “but” attached to choosing an existing engine, so you probably wouldn’t have a nagging thought pushing you to look at building your own.
So I guess what I’m really saying is “don’t cut corners”. You know you’re about to cut one when the little angel pops up on your shoulder and whispers “are you sure about this?”
Sleep 6+ hours a night.
Focus / pay attention, Don’t get distracted/distract the team.
Control / eliminate substance use (caffeine, alcohol, smoking, not-doctor-prescribed adderall etc)