As a counterpoint, I worked 7 days a week for the last 2 years (tail end of my PhD) and although I don't recommend it to anyone (my health and well-being suffered) I have maintained high productivity the entire way through. I continued to have "aha shower moments". And if you think I'm lying, I'm exaggerating how much I work, I'll just say, start to finish my PhD took exactly 3 years and 2 months (first year was lighter because it was mostly coursework).
I recently graduated and started as a senior in industry and I plan to keep up the pace for the next 1-2 years in order to reach principal.
Now imagine how much better it would have been if at those points you were refreshed.
Humor aside -
The value of being mentally clear is becoming more apparent as I age.
There were wayyyy to many days I was brute forcing things through persistence.
These were tasks that I could do reflexively, that I had to force my tired brain to think about. With an added side of castigation as I wondered why I was being so slow.
At some point I looked at the time I was spending and remembered “work smart”. Then proceeded to kick myself, take a break, eat, sleep and start a new day.
Productivity and thinking has been up since.
Have to say The worst impacted is memory. Its not the same as when your mind is simply lifting up information from the deepest recesses you forgot you had.
There's no need to imagine it - I'm not inhuman, I get tired just like everyone else and I've been well-rested for most of my life.
> Have to say The worst impacted is memory.
Not everyone is the same. My memory doesn't suffer when I'm tired. My fine motor skills do - I've noticed I have a hard time controlling my ring fingers (during typing) after about 10 hours of work.
Also I suspect age will play a part.
Mental clarity in software has extreme leverage, probably among the biggest of any human endeavor. Your effectiveness as a programmer is largely a function of how well you can model the software in your mind. Often seeing immediately how to do things correctly vs bumbling forward can be 4 hours of work vs 2 weeks of work. Actually inputting the code is not the thing that takes time. You could write 50,000 lines of code in a day if typing was the only bottleneck.
This is also in the context of a low-distraction environment where there are zero interruptions. If you're working in a busy office, staying late is usually a productivity boost because you finally get some quiet time to concentrate. Which, again, is good for clarity and hence productivity.
I work on compilers and I'm pretty sure that counts as software.
> Often seeing immediately how to do things correctly vs bumbling forward can be 4 hours of work vs 2 weeks of work. Actually inputting the code is not the thing that takes time.
This presumes one only works on one workstream at a time. I have many distinct workstreams going at the same time (typically 3-4). When I'm blocked on one because of some ambiguity/uncertainty/ignorance I switch to another stream until I decide/find a solution for the first.
I slip into this sometimes too, but I feel it's a procrastination pattern to avoid thinking about something difficult, and context switching doesn't really move progress on the original hard problem. It's something I typically try to avoid.
Recently I had to decide how to rebuild a fairly large component of our compiler (several passes, artifact emission, etc). It took me about a week for the idea (for how to best do it) to occur to me. I spent that time working on our runtime instead. Then once I had the design/architecture, I worked for 2 weeks straight to implement. And during that 2 weeks I figured out a path forward on something I was blocked on in the runtime.
I'm not sure about that:
60wpm ÷ 6 words per LOC = 10 LOC per minute
60 mins × 8 hours × 10 LOC = 4800 LOC per day
But I was just checking the math for fun, not trying to disprove your main point. You could argue that if human thought was not needed to write code, you wouldn't really need a keyboard at all and thus the amount of code you could input would be virtually unlimited.
I do a lot of consulting, and as a result I am often (honestly, almost always) work substantially more than 'full time'
I have more aha moments in the shower when I'm working intense hours, not less. My theory on this is that more exposure to the problem space gives the subconscious mind more to chew on.
I genuinely have no regrets about working a lot as I've found the personal and professional growth to have been very satisfying. I've launched far past most people my age in terms of skill and experience by simply putting in more hours than they have.
Regarding health, it should be noted I don't drink or smoke at all and never did. And my naturally eating habits include zero junk food. I haven't felt any negative health effects from my work/life balance, but I am fairly confident that's largely due to those healthy habits.
Personally, my best working experiences were working twelve hours a day with substantial breaks for meals and exercise. Critically, there was still enough time for a full night’s sleep. I was massively productive and in the best shape of my life.
There isn’t time for anything else though. I have only been able to achieve that level of focus a few times in my career — all of them before starting a family. Now it’s all about efficiency, squeezing the most out of the precious hours I can focus on something.
Yup I can nod to this one. I know the relevant codebases back-to-front (from staring at them for 12 hours a day) so it's fairly easy to visualize implementations exactly and where they'll go and what parts they'll touch.
Solo dev is somewhat unique in that you have none of that.
Rolling out of bed, having a cup of coffee, working 15 hours straight without leaving the chair once is legit something that happens if you don't watch out. If for no other reason than kidney health, that's no good.
> I plan to keep up the pace for the next 1-2 years in order to reach principal.
At what cost? You even admit this is damaging to your health and well-being... wtf
In which industry do you go from graduate to principal in 1-2 years?
A workplace that incentivises this actually sounds quite toxic.
The big thoughts come when you can relax a bit and zoom out. That's what you'd expect from a principal title holder, instead of the willingness to permanent crunch mode.
Good ideas are born in your free time when you put the daily work away and are able to zoom out. Returning Monday after a (long) weekend with a pair of new glasses can be profoundly productive.