Ask HN: How many hours per day do you work?
I'm trying to log my time via timer app (manually switching it on when I code). Plus I use an app which checks what apps I use every minute.
It turns out that:
- I barely can code for more than 4 hours per day
- I have max. 60% of "productive" time, which means that 60% of time apps like IDE are open. The rest goes to random stuff, like messaging/youtube etc.
So I'm curious. I know that there are tons of articles saying that you can't be productive all the day.
But what's in real life?
Are there any persons who can work, say, 8+ hours? I mean, really work, not be at office.
185 comments
[ 3.3 ms ] story [ 239 ms ] threadNow, I probably get closer to 5-6. Though that may be impacted as well by the pandemic, where work from home is finally catching up with my productivity (been work from home since March).
All work related task (email / slack / reading the news / paperwork / ...): 8 hours
Time at my desk: 11 hours
But if you're doing something novel and solving hard problems, I think 4-5 hours would be a maximum for sure.
The funny thing is I also can't really do menial, brain dead work for long either. It seems to drain a different "tank" but its much smaller.
But I was up against a number of realities: 1) My project was not in fact moving forward at a sufficient rate. Work is not static, but decays if you leave it sit there, so the progress rate has to exceed the decay rate. And it wasn't. 2) I was paying through the nose in opportunity cost. 3) I wasn't happy with myself, and in fact was kind of depressed.
A stress of grad school is that you have to be self managing, and I still don't have a good formula for overcoming this problem. But I survived and eventually finished. My advisor leaving the university put a fire under my ass, because I had to finish before the lab got demolished.
But this is the other thing to know: The risk level is extreme in terms of something bad happening that sets you back or kills your project altogether.
One thing I found was that some kinds of work were easier to get into "flow" than others. Coding was easy. So I actually let coding occur in what I might actually call spare time. Interruptions weren't as much of a problem in grad school. The boring stuff was the hardest -- grinding on a supplier to get me a price quote and then grinding on the purchasing department to send out a purchase order. That's where my procrastination really kicked in.
So, enough of the scolding. If you're doing the right thing to get through, then ignore this message. You probably know better than anybody. Best of luck!
Although I have had really bad periods of procrastination throughout my PhD, but in general I work in short sharp bursts rather than sustained periods. You mention flow, it's hard to get into the flow when you are deriving new equations or approaches to things!
This is all active code input. Tracked using Wakatime. No affiliation, just really like the service.
I don’t mind this at all, 8 hours of screen time is a killer and no doubt led to my bad eyesight and wonky posture staring at screens when I was younger.
fyi, "staring at screens" being bad for your eyes is a myth.
from: https://www.health.harvard.edu/healthbeat/safeguarding-your-...
>Myth: Staring at a computer screen all day is bad for the eyes.
>Fact: Although using a computer will not harm your eyes, staring at a computer screen all day will contribute to eyestrain or tired eyes.
Being around, being available to inquiries, questions, support, anything, is work.
Even taking a coffee break and a nap in between two active coding sessions is work - if only because those two sessions are related in purpose, and because your mind still processes your work during the "break".
Even unproductive, lousy days when nothing gets accomplished are work; if only because it sometimes is only your mind reflecting on an issue that you will, it seems, "code in a matter of 2 hours", while in reality, it tooks the two previous days to get/discuss/put things in perspective to allow for these 2 hours to cristallize the solution.
Your productivity is in your context and output. Not in the exact quantity you put in.
The taylorist factory view just does not function at all with design/creative work.
On GNU/Linux, there is ActivityWatch. RescueTime works cross-platform.
Sure that one day is good but if you add up the work done on (say) the next two days the total is usually less than what you'd get if I worked normally for three days.
6 hours of writing and debugging SQL, simple linux systems maintenance, writing emails or powerpoints.
8 hours/day is just impossible for me.
Thanks for the down votes though.
I guess what drives it all is that the work is meaningful, am I correct?
I have a specific schedule that I balance with caffeine pills, antacids, and advil.
I've also developed quite a few habits and strategies that help me keep pace.
Here's my virtual fist bump in solidarity.
If you interrupt one of those blocks, you can't do "difficult coding work", but you can communicate with people, document your code, and organize. The easy work can take up a lot longer, it's just not part of the block, and interrupting the block means you don't have that block.
Organizing means simple stuff like moving pieces around to where it makes sense to have them, simplifying well understood issues, and automating parts of the build.
By difficult work, I mainly mean exploratory coding work, where you write new code, see if it compiles, and whether it does what you expected. Or you are debugging something that's broken and following various hypotheses about what might be wrong.
Once you've either written the new piece or discovered the bug, you can spend time doing "organizing", where you know the answer, but you just need to spend the time moving stuff around.
I'd be lucky to have a block each day.
Personal projects: as long as necessary
If you count just mentally intensive work (writing/reviewing code, writing/reviewing designs, making plans), then it's hard to do more than 4-5 hours per day (in terms of how long I can focus - days usually don't have that much free time for "real" work!)
No meetings? I can squeeze in a solid 5-6 hours of productive time.
Any meetings? I'll be lucky to squeeze in 2 hours.
I do a lot of writing, which means a lot of reading. Some of that writing I publish, a lot is not.
I develop my skills, not always in ways that are directly related to tasks I do for money, but they generally end up contributing to my income.
I also don't really have a weekend. If work needs doing, it gets done and I take the time when I don't have work. I worked 3 days in a row about 12 hours a day on a hardware project I'm shipping, building hardware, testing software, writing a manual, imaging cards. I'll do more of that this afternoon but I'm not working a large amount of hours today due to unrelated outages.
The rest is eaten up with unproductive zoom meetings (I'm on one now as I post this), dealing with development tooling falling over and waiting for things.
Terrible efficiency.
Protect your time, block out your calendar, and fix the root causes that create the unproductive meetings.
BRB, fixing the org chart. /s
Hobby projects I can work on for 10-12 hours straight and still feel like I could go longer, but after a three day sprint of this, I have to take at least a day off to regroup my thoughts and make sure I'm not too far away from the original intention / goal, or over-engineering.
Back in my coding days, I could get into the zone for 4-5 hour chunks of time, but only if uninterrupted, which was rare. I'd say a typical day had 2x 2.5-3 hour blocks of productive coding, the rest of the 8-10 hour work day was meetings/conversations/etc plus an hour or two of not-work (internet, walking outside, etc).
This varied quite a bit over time, based on team and project. Greenfield projects, usually done in a group with lots of peer-programming and fast iteration were quite different than solo maintenance of legacy codebases.