HACKER Q&A
📣 Akcium

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.


  👤 crispyambulance Accepted Answer ✓
> Are there any persons who can work, say, 8+ hours? I mean, really work, not be at office.

Being at the office, doing office things IS WORK.

Where does the idea come that you're only "working" when you're coding?

If you're filling out a TPS report, you're WORKING. If you're sitting in mind-numbing status update meeting with a 1000 yard stare on your face, you're WORKING. If you're researching something on the internet to solve a problem for you or someone else, you're WORKING. If you're watching an HR-mandated online learning presentation about IT security consisting of Kevin Mitnick clips droning endlessly, you're WORKING. If you're thinking about work, you're WORKING.


👤 lordnacho
The way I think of it, there are two sessions a day of doing difficult coding work, before and after lunch. Maybe 3 hours each.

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.


👤 flerchin
Peter Gibbons : Well, I generally come in at least fifteen minutes late, ah, I use the side door - that way Lumbergh can't see me, heh heh - and, uh, after that I just sorta space out for about an hour.

Bob Porter : Da-uh? Space out?

Peter Gibbons : Yeah, I just stare at my desk; but it looks like I'm working. I do that for probably another hour after lunch, too. I'd say in a given week I probably only do about fifteen minutes of real, actual, work.


👤 peterkelly
I don't think that the number of hours per day/week is particularly important. It's important to distinguish between efficiency and effectiveness.

There's been times where I've spent weeks or even months going down a path that has ultimately proven fruitless, including spending really long hours on it. That certainly counts as work, but if it results in no meaningful value being produced, then what's the point?

There's been other times when I've gone on holiday and come back refreshed and incredibly motivated, having realised the solution to a problem that I'd been struggling with because I gave my subconscious mind time to do its thing without interruption. Does spending time at the beach, exploring ancient towns in Italy, or even just taking a shower count as work? Most people would say no, but that's when I've had some of my best ideas.

Sometimes in a meeting I'll be having a discussion with a colleague and we'll come up with a solution for something we've been trying do that requires zero changes to the our codebase, something we refer to as a "no-code" solution. Those can shave off weeks of time. Technically, that meeting counted as two hours of work; is that less productive than spending a ton of time implementing a feature that turned out to be unnecessary because there was a way to avoid the need for it?

As far as when I actually sitting at my desk focusing on work, I value reading and thinking much more than implementation. Coding is the easy part; once the solution is clear, getting it into the computer is fairly straightforward, albeit quite tedious. I've spent lots of time coding the wrong thing, which with a bit more thought and research could have been avoided. I consider that time mostly wasted, except perhaps for the learning experience.

Judge your productivity by what you achieve, not how long it takes you to do it.

Edit: A thought experiment I'd like to add. Imagine you give two people the same task and ask them to complete it in one week. One person works on it four hours a day, the other six. They both get it done on time, at the same level of quality. The first person was actually _more_ productive than the second.


👤 TuringNYC
There are a lot of comments about interruptions, and a couple about interesting work. I'll add two more dimensions: Agency and Rewards.

I've worked intense 10-12hour workdays in the past for long periods of time (waves of 3mo), but they all had at least three of four things in common: Agency, Interesting, Interruption, Reward.

Agency is important to me -- am I bought into what I'm doing and understand the importance+urgency and get to direct the work -- or is someone up the chain jamming some feature down to check a box for their own personal reasons w/o good reason. This encompasses Respect -- where everyone understands the rationale and why some urgent deadline is present and people are not told to go on unknown journeys "just because" or "you dont understand"

Another is Reward. When working at a hedge fund, sometimes, things were not interesting but there was a clear reward I was psychologically aligned with the reward. Same when I was Founder/CTO -- there was a clear reward (not always monetary.)

I think when you hear 2hrs/3hrs/etc per day, often it is the fault of the organization for:

- Not having good business cases

- Thinking Engineers don't care about reasons for doing things

- Not providing distraction free blocks

- Not sufficiently sharing rewards with the company


👤 lwigo
True actual coding? 2-3 hours on average, and usually at night when all others are offline (8pm-1am window). All the other BS like emailing, meetings, assisting with manual testing, responding to support related Slacks, fire fighting, setting up DB queries or visualizations, checking a result of some scheduled job (these last two being business asks / annoyances and don't happen daily but you get it), etc, results in 5-8 hours BS, 2-3 hours code.

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.


👤 frereubu
In general it's around 4 hours at most, although occassionally I can manage double that if I work in the morning, take the afternoon off, then work into the night from about 10pm - 2am.

One of my most productive weeks ever was when I accompanied my wife on a work trip from London, UK, to Savannah, Georgia, which is 5 hours behind. Even though I was looking after my young daughter I go a huge amount done because my work day was:

First thing: Answer emails from the UK morning.

Morning: General admin.

Lunchtime: Answer emails from the UK afternoon.

Afternoon: A beautiful stretch of uninterrupted coding time while my daughter amused herself bum-shuffling around the room.

Even though I'm pretty good about closing my email client while working, just the knowledge that emails weren't piling up while I was coding gave me real peace of mind.

I think a huge amount of the stress of coding work is knowing in the back of your mind that there's a huge amount of crap piling up in the background that you're going to have to deal with afterwards. It reminds me of that Walter Benjamin piece about Paul Klee's painting Angelus Novus:

"This is how one pictures the angel of history. His face is turned toward the past. Where we perceive a chain of events, he sees one single catastrophe which keeps piling wreckage upon wreckage and hurls it in front of his feet. The angel would like to stay, awaken the dead, and make whole what has been smashed. But a storm is blowing from Paradise; it has got caught in his wings with such violence that the angel can no longer close them. The storm irresistibly propels him into the future to which his back is turned, while the pile of debris before him grows skyward. This storm is what we call progress."


👤 uselessemployee
Since WFH started I don't have to pretend to be working anymore. I get maybe 1 hour at most per day and even that is not always. The rest of time I read books, walk outside, play games, do my own stuff.

I honestly believe my position and my team entirely could be fired and nothing would change for company's bottom line, perhaps it would even improve. It does hurt a bit because a number of employees were laid off recently, while they were actually useful.

I am "working" as a developer in one of bigger tech companies here in EU.


👤 dx87
If it's a hobby project I'm actually interested in, I can work all day every day. But if it's something I'm forced to do at work, 3-4 hours is the most I can do in a single stretch. If I can take a ~1 hour break after that and go to the gym or something, I can do another 3-4 hours. That's why WFH has been great for me; I can take a break as needed, and don't get bored to tears after a few hours in a cubicle farm.

👤 simonw
I love this tweet by Shopify CEO Tobi Lutke:

"For creative work, you can't cheat. My believe is that there are 5 creative hours in everyone's day. All I ask of people at Shopify is that 4 of those are channeled into the company."

https://twitter.com/tobi/status/1210242188870930433


👤 HeyLaughingBoy
Four hours per day is normal. I used to work for an organization that used PSP/TSP

https://resources.sei.cmu.edu/library/asset-view.cfm?assetid...

https://resources.sei.cmu.edu/library/asset-view.cfm?assetid...

As a participant in that methodology, the SEI gives you access to data gathered over thousands of software development teams. One of the findings is that the average time per day spent across all development processes (from getting requirements to testing) was about 2-4 hours.

That number is surprising only to people who don't accurately and religiously track their time. Guesses are useless. We found that it took about a year for everyone to really get good at time tracking and to reinforce others ("hey, George. I was looking for you before and I noticed you weren't at your desk, but you timer was still running") to get better. After doing that, we found that our time fell into that range. The Test team was at the higher end with 6-8 hours when executing test cases for days on end and newcomers were around 4-6 which we attributed to them having fewer distractions. Experienced/senior engineers were usually around 2-4 hours/day.

So, all in all, I'm not at all surprised by your results.


👤 PragmaticPulp
Try using an app like RescueTime or QBserve to automate time tracking.

I’ve been time tracking for years. It’s normal to see about 4-5 hours of productive work in an 8 hour workday. It’s difficult to log more than 5 hours of screen-on time due to meetings, conversations, phone calls, bathroom breaks, lunch, and so on.

> 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.

I’ve learned that it’s more important to track time spent in time wasters like YouTube or HN than it is to track productive time. The time wasters can really add up if you’re not careful. Taking breaks and relaxing is fine, but losing multiple hours in the middle of every workday to YouTube is a problem. It’s easy to lose an entire workday each week to wasted time online if you’re not careful. Only 96 minutes per day adds up to an entire lost day each week.

In a non-office environment (freelance consulting) I frequently put in 5-10 productive hours per day. It doesn’t come easy at first, but with training anyone can ramp up to similar levels. The key is to realize that it’s an acquired and trained skill, not some innate limitation of our genetics or neurochemistry. Claims that people can only focus for N hours per day should be viewed like claims that people can’t run faster than 8 minute miles. You can change your focus habits if you’re motivated to do so and willing to put in the work.


👤 qz2
Realistically about an hour a day of truly productive work.

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.


👤 nickjj
For me it really depends on what I'm working on.

If it's something I really enjoy doing then going 8+ hours isn't a problem and I'll even feel energized afterwards and catch myself saying stuff like "I know but you need to stop, let's resume tomorrow".

When I'm able to financially afford to spend blocks of time such as working on creating programming related video courses, I've done that type of schedule for 3 months straight multiple times in a row. Basically work like that for 3 months, ship a new course, take a 2 week break and repeat. The only reason I even took those breaks was to reflect on what I learned and figure out how to do things better for the next one.

But when I'm not able to afford doing that and I need to mix in contract work, especially contract work that I feel doesn't help me in the long run because it's doing things I wouldn't necessarily do in my own projects, that shit drains me like nothing else. Just working on stuff like that for 2 hours destroys me for the rest of the day.

That and personally I find that I'm not optimized for juggling many different things at a time. I work best when I can block out large amounts of time and just plow through 1 task instead of chopping up smaller amounts of time to do things in parallel. I think it's because if I don't finish something all I do is compulsively think about it until it's solved, so trying to do that with many concurrent projects leaves me in a constant state of feeling like nothing is ever going to be done which drains me overall.


👤 texasbigdata
12 years of logging data and the answer is give or take what you said. Every hour past 7pm is exponentially worse productivity wise (aka 7 to 8 vs 9 to 10 vs 12 to 1 is night and day). There’s also a catch up factor above which subsequent periods are impaired.

Basically if @20/30 hours per week it’s 70% ish productive at 60+ it’s max 50% which tells you a ton about the marginal productivity of those incremental hours.

There’s also time of week variation, time of day variation, the aforementioned burnout recovery spillover occasionally and a bit of sequencing at play.


👤 Juliate
Being at the office is work.

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.


👤 puranjay
I've diligently tracked my actual time worked every day. That's time spent on productive tasks directly tied to my projects, not time spent in meetings, commute, and other wasted desk time.

I usually manage 5-6 hours of productive time each day. 7 hours on a good day. 8 hours if the problem is interesting enough.

I used to feel inadequate when I would hear stories of founders and geniuses working 16 hours/day. But now I'm convinced that outside of prodigies, specific mindless tasks, and "outside help" (like amphetamines), it's impossible to get more than 8-10 hours of real work done in a day over an extended period.


👤 reedf1
I can work all day, but I have vast diminishing returns after hours 4 or 5. Especially if the work is intellectually complex or tiresome in any way. Oftentimes I overextend myself out of necessity - but usually work becomes exponentially stressful or futile at that point.

👤 qntty
Depends on what I'm working on. If I'm working on something that I made from scratch and totally understand, and it's something that I'm skilled at, I can go for 11 hours. If I'm doing something totally new and trying to understand code that someone else wrote, I struggle to be productive for 2 hours.

👤 crypt1d
Honestly I find your whole question rather puzzling. I mean, I get what you are asking. But the way you are asking seems as if your time is only valuable when you do 'real work' - which in this case I suppose is development work. In the same way you wonder about 'real life' but your life is as real as it gets. It is, of course, quite ordinary to not spend your whole day coding, but working on other stuff as well.

The value you bring to the table is not _just_ in the lines of code you write, or in the hours you spend in front of an IDE. The time spent chatting with colleagues about products, writing that documentation you've been putting off for months (because it not 'real work'), or even reading HN to stay in touch with the latest and greatest in tech, all amount to the value one brings to the company.


👤 crusso
Are there any persons who can work, say, 8+ hours? I mean, really work, not be at office.

Yes. Some people can, some people can't. Some people can, but they don't really need to in order to do the job that they get paid for. Some people struggle for 9 hours a day trying to do the job that someone else can do in 2.

Mental performance varies tremendously from person to person, as does athletic performance. Can someone run 4 miles in 20 minutes without stopping? Sure. Some people can keep up that pace for a marathon (26 miles).

I wouldn't worry so much about what other people are doing. Just focus on your own performance and improve it (or don't) based upon how you feel about your productivity and its impact on your life. If enhancing it is your goal, you've taken the first step of measuring it and understanding what influences it. You could cut out distractions and see how that works for you.

For me, improving my performance has always meant synching up my work with what interests me. Sometimes that can mean changing what I'm working on - when I have that flexibility. Sometimes I have to jump-start my interest in a more boring problem by trying to mentally frame it in a way that I framed other problems that have interested me in my life.


👤 mch82
Related to this topic, I recently listened to “Compete to Create” (https://www.amazon.com/Compete-Create-Approach-Leading-Authe...). It struck me how much time professional athletes spend on preparation and recovery relative to engineers. Even more striking, this is considered by head coaches to be a key responsibility of employees doing the work.

> An average NFL broadcast lasts well over three hours, yet it delivers a total of only 18 minutes of football action. (https://fivethirtyeight.com/features/how-much-football-is-ev...)

It’s interesting how professional sports evaluates & compensates employee performance separate from employee time at the office. I wonder if professional engineering might learn anything from this?


👤 yummypaint
Coding is very feast and famine for me. Im a experimental physicist in a fairly small group so Im almost always developing solo. Sometimes there's a gap of a week or so without coding if things are happening in the lab. On average i probably work 40 hours/week, but only about half of that is spent of highly demanding tasks. I spread work pretty evenly across the full week.

However, when accelerator time is less than a month away or some other major hard deadline approaches, it can kick up to around 14 hours/day where 90% of that time is highly taxing. That can be enjoyable under the right circumstances, but it isn't sustainable long term. Pushing more than a month straight with 12+ hour workdays usually leads to burnout which can subsequently cost a few full weeks of lost time. So in the end, it averages back to around 40.

I like having variations in workload. i think it would become a grind to do exactly 9-5 m-f.

Junior faculty work more, but they are generally pretty miserable as a result.


👤 typenil
I use wakatime.com for tracking IDE time. Generally I spend between 4 and 7 hours in an IDE.

My best days, I can hit 9-10 hours IDE time - but generally when I hit that, it's because I've spent the evening working on my own stuff.

It's incredibly difficult (and undesirable) to hit that number working entirely on my main job. Diminishing returns come in fast. Switching contexts to a project I'm personally interested in is critical.

I think the better approach to being productive is to aim for ~4 hours of IDE time, maximizing deep work as much as possible.

I use codestats.net for tracking code volume (measured in "XP"), dividing it by the IDE time in a spreadsheet to get the hourly code volume each day.

XP/hour a very noisy signal* , but not useless. For me, it usually varies between 400 and 2000 XP/hour - a very rough proxy for deep work when averaged out over long periods. I'm always trying to improve on the mean.

*e.g. debugging time yields a far lower XP/hour than greenfield development.


👤 amin
I work two to three days a week. I'm currently working a physically demanding, manual labor job. I prefer this to an office job. This keeps my brainpower available to focus on my own curious pursuits in my free time (which is 4 to 5 days a week). I invest most of my income, and keep some on my bank to pay bills.

My previous jobs have thought me two things

- I dislike 40hr work weeks

- I dislike sitting in an office, under fluorescent light, being surrounded by poeople. No offense to anyone who can do it (I envy you).


👤 imafish
This is why I hate logging time spent on individual tasks.

"Oh, so you only had 2 hours of productive time last Monday - what did you do wrong?"


👤 rocgf
I can work for 8+ hours (close to 14h), but there are a lot of caveats and the output is noticeably worse. Also, I can do it for a week or two, but after a while it takes a toll.

The number of times I spent hours on an issue in the evening only to find the solution after 30s in the morning is embarrassing.

So honestly, it's just common sense. As much as everybody fetishises long hours and 100h weeks, I don't think that's really achievable for most people.


👤 lnsru
Before burnout I did these 8+ hours for real trying to improve software and hardware stack. It is at technical level from 90s. I wanted to have continuous integration, gigabit internet interface instead of multiple serial ports, fast DDR analog to digital converters instead of 400 kHz I2C. I coded, did project plans, calculated how quicker system will be after changes. Nobody wanted this. “Not a business case!” - I was told regularly. Then I was gone for 3 months. I came back to life and do not work more than 2 hours daily. This ancient stack recently failed very very badly, but I don’t care anymore. However, I work on my own idea for at least 4 hours daily. With longer break in the middle I can be productive for 8 hours a day.

👤 francis-io
If it's hard, mentally taxing work then likely around 4 hours total a day.

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.


👤 isoprophlex
3-4 hours of actual work: R&D, algo development, solution design. Max.

6 hours of writing and debugging SQL, simple linux systems maintenance, writing emails or powerpoints.

8 hours/day is just impossible for me.


👤 pjdkoch
On ok+ days, 6h (in two 3h sessions). Sustainably. Not just writing code, but also walking around and thinking, researching, rubber ducking, etc. I can maybe squeeze a third session, but it's 1.5h and pretty crappy.

If I'm super zoned in in a meaty problem where I could work alone (or with one person max), I can obsess about it and invest all my waking time minus some 4 hours (1h lunch, 1h dinner, 2h unwinding). This is a straining effort that requires deliberation and appropriate care (either the work is galvanizing you enough, or you're gonna need downtime after this).

This seems to be on the higher side of the bell curve, from what I've talked with other folks, but certainly not at the top. I know a person that can do 10 hours, pretty much consistently, peppered with cigarette and meal breaks. One person, in all my life. Trying to emulate them will probably be very damaging for most people. Seen multiple people having breakdowns trying to do that.

You might not be on the high side but I recommend you:

- Don't feel bad about what you can do today. Just admit it candidly to yourself.

- If you want to, train this skill, pretty much like you'd train anything else with your body. I bet it's going to be a lot like weightlifting: slow, sloggy, and needing some restraint to not push yourself into injuries.


👤 potta_coffee
I'm at my computer for 8 hours. I can't be productive anywhere close to that amount of time, and it's been that way forever. Once in a while I'll have a spike of 1 - 7 days where I can sit and bang out code 12 hours a day. This is usually the culmination of some long period of rumination that grows into an understanding of some large task that I finally just sit and knock out. After that, I'm weary and I have to rest (for 3 months).

👤 tzs
I used to often get in 8+ hours of coding a day, but that was 30-35 years ago. I don't know why I don't now, because so many things that might affect this are different in my work now.

1. I was of course 30-35 years younger back then.

2. Online for me then was via a dial-up modem, generally either to services like CompuServe or to an ISP that provided Usenet and email. The web was at most just barely getting started and if I even knew it existed (which I probably didn't) I don't think there were any browsers yet for Mac or PC.

Now there is an always on internet connection while working, making it much easier to get distracted.

3. Cell phones were not yet common.

4. Projects didn't involve nearly as many different things. Most of what I coded then fell into one of these bins: disk drivers, firmware for SCSI host adapters, BIOS code, little real time operating systems for embedded systems, the SDK and reference drivers for NCR's SCSI chips, and some network stuff.

Note that for most of these, you just needed some datasheets, some specs, maybe a book or two, compiler/linker documentation, and you were good to go. You could wrap your head around all the technology involved in the project. Actually, I could do more than just wrap my head around it all--I could become an expert in all technology related to the project.

Now, projects usually involve a bunch of other systems and use many third party libraries or services, and it is much harder to keep this all in my head. And those libraries and services are being actively developed, so you have to keep up with that. It is much less likely that I'll be an expert on everything related to the project.

5. Back then I knew exactly what I had to do when I started coding. When we were going to bid on a contract, I'd write a technical spec proposing exactly what we were going to deliver. Some of these technical specs were 100 pages (maybe even 200 on occasion).

If we got the contract, that spec is what we implemented.

Nowadays, design and coding are more iterative. Someone gets a general idea of what they want, and needs to see a version of that implemented to see if it is really what they want. They see that it isn't quite what they want, so it gets changed. It's all more vague and hand wavy.


👤 casi
I also found I could code for about 4 hours, so after that I like to reply to messages and read and sketch out ideas for how to approach bugs on paper, just get off the screen. And after a while of that I’ll go for a walk or something and maybe circle back around to the code if I thought of something.

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.


👤 eigenket
I can pretty easily work 8-10 hours in a day, and have done somewhat frequently in the run-up to important deadlines. I try not to because it absolutely kills my productivity for the next couple of days, so its almost always counterproductive.

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.


👤 longnguyen
I used to pretty work long hours (worked 2 jobs - back when I had first kid and was still under mortgage). Now I spend more time with my kids and try to work as little as I can (optimize "productivity pulse", while minimize total time on computer)

This is my data of 2018 and 2019 respectively:

- https://www.dropbox.com/s/s8881zv58wzve33/2018.png?dl=0

- https://www.dropbox.com/s/55v7g4cn7ol0ix2/2019.png?dl=0

Some personal observations:

- On average, I achieve 75% productivity pulse

- There are some crazy days where I worked over 15 hrs, with maybe 10 ~ 11hrs being productive (read: code)

- Since I was moonlighting, I was most productive on the morning (9am - noon) and after 10pm (kids went to sleep)

- I don't meditate much, but working out really really help!


👤 twox2
If you want to find out how little work you actually do, you can do this experiment:

Set an alarm to go off every 15-30 mins.

When it goes off write down what you are doing at that moment.

Do this for 1 or 2 days.


👤 eyelidlessness
It’s pretty commonly stated that most people can’t productively perform cognitive work for more than ~6 hours per day (of +- some delta depending on the person). Sure, you may be able to sprint a little longer from time to time. But sustained performance eventually suffers and most people will tend to be less productive (per hour at first, eventually overall as burnout sinks in) when working longer hours for a long stretch.

I’ve had three or four extended periods of overwork in my career, several months of 60-100 hour weeks, and it’s caused me severe mental health distress.

It’s really a shame that burnout culture is so common in the tech industry. In so many ways we’re very privileged, but this culture is a very high cost for workers who can be pressured by it.


👤 anotheryou
For those saying lass than 8h, how do you handle the office?

At home I can happily churn away while in the flow and watch a bit of twitch when recharging, but at the office I force myself to stare at work and once the energy is drained the productive part of the day is basically over.


👤 cferr
I work maybe two hours a day. They're very productive, but I cannot be productive constantly for more than that due to having to wait on other people in order to get stuff done, and, of course, the inevitable burnout which will occur if I exceed that.

👤 alkonaut
When I'm motivated I can easily do 8, 9, 10 hours of productive work in a day. That's usually the case when you are early in a big task, churning out code with rapid results showing up. Closer to the end, it's the opposite with perhhaps 1,2,3 hours of effective work in a 7-8 hour day. On average It's going to be somewhere in between.

This is how I want it to be though. Obviouslt I enjoy my work most the days when I'm in the zone producing a lot. But I also don't want any expectation of my productivity to require that. I'm in a position where I can do 2-3h of effective work per day and exceed the expectations I have on me. I like that.


👤 throwawaaaaay17
I am on Slack ready to answer questions for 14 hours a day.

I attend meetings/review PRs/toss ideas around on Slack for 4-5 hours.

Productive work - varies wildly. Some days, when I'm resting after an insane week it's 0 or close to it. Other days it's 8+ hours when it's mad crunch time. A regular day is about 3-4 hours of productive work. My employer is very happy with me, keeps promoting me/giving me raises. I've found that my contributions are generally less measured in LOCs, and more in finding business problems, designing technical solutions for them, and communicating them to non-technical stakeholders.


👤 spollo
I'm in management. While the job description always says spend a significant amount of time coding, I tend to eschew that if I can get away with it. I'm only writing code if I need to get in the trenches or things are in a such a good place that I have big blocks of free time.

My workday is 10-4:30. Of that I'm probably doing 3-4 hours of productive work a day (code review, architecture, planning, 1-1s, meetings). I don't have any useless meetings, but the real killer is the 30-60 minutes between meetings where you don't have enough time to do anything productive.

Unicorn startup in Canada.


👤 bauc
For me it varies a lot, I think it's very easy to think you are working when you are not. But also easy to work and not realise it.

I think a lot about Joel Spolsky's post [1] on the subject. It depends on what you are doing but I think in software development you need to look at effectiveness rather than time spent.

[1] https://www.joelonsoftware.com/2002/01/06/fire-and-motion/


👤 awillen
Now that I've started my own business and am mostly flexible on working hours, I've found that I can work a lot more by leaning into my productive times.

I'm usually at my most productive from about 7am-10am. Then I eat breakfast and relax for an hour, and afterwards I can get a couple of hours of work in before lunch (though this is usually less focused time used for more menial work).

I'm useless from lunch until about 3pm - I've always known this; at the office I would just have a huge cup of coffee and try to focus. I take a break and play videogames or read during that time, then I pick it back up for a couple of hours of focused work from 3pm-5pm.

I cook and eat dinner, and then if I have shipments to pack (I'm still very early and shipping physical product myself), I put those together after dinner. I leave that until the end of the day because it's mindless but has to be done before the morning, so it's a good way to force me to do work regardless of how I'm feeling about it.

So I'd say about 5 hours of focused work (I can get in more if I'm super excited/in the zone on something) and another 3ish of more menial stuff.


👤 Sainth
I worked several years as a feelance audio engineer. When I started out I remember beeing concerned that I didn't have enough productive working hours. I found it hard to have more than 5 hours productive work done during an 8 hour work day. Also, since I was invoicing for the hours worked I felt that I should be far more efficient. After discussing this with other freelancers I found this to be quite common. Now, many years later, I consider 6 productive hours to be a really good day, and I will invoice it as 8 hours.

Today I manage a team of developers, and my experience is that the quality of the output is much better if they are focused and well rested, and that the amount of hours worked does not directly translate to better work. So if someone on the team is tired because of their kids not sleeping or something similar, I actually tell them sleep a few more hours. It seems counterintuitive, but I find it to work better for everyone on the team.


👤 tschwimmer
As someone who has gathered this metric at several major software companies, you're doing well. I'm sure there are individuals that have higher "efficiency" but in aggregate all employees are much less productive.

Tons of people are saying "oh all that other non-coding stuf stuff is productivity too" but I think they're missing the broader context. Sure, Software engineers can write emails and status updates, but it's definitely not the most productive use of their time. We could also have engineers serve food at the cafe and empty out the garbage cans, but we don't because others can do that. It turns out many of the "work" things that are socially accepted can also be done by others. The one non-code thing I'm in favor of engineers doing is talking to customers and doing research. Most of that should be done by a PM, but for added context it's always useful to get some firsthand experience too.


👤 Tade0
After almost a decade I'm still unable to answer this question properly and I think it's related to the fact that this is creative work, so it can't be meaningfully described this way.

Anyway, a certain Christopher de Cinque hit the nail on the head on this matter in an interview:

http://mousertime.blogspot.com/2010/07/closure-in-moscow-int...

FTA:

How does Closure in Moscow normally write a song?

We don't write any songs ourselves so to speak. They are beamed to our conscious minds from the higher dimensional realms of our subconscious. Like a text message from god: "hey guyz, thought u might lyk this song idea. Luv God lol x". When I try to wrote lyrics it doesn't work... But the ones that come out like a bolt from the blue, autonomously, that's the good stuff.


👤 MrDresden
Depending on energy levels, amount of meetings and other factors I swing between 4 hours a day up to 8 of active coding. During times of severe pressure I have had a few 12 hour days (edit: This is not healthy nor sustainable for long).

This is all active code input. Tracked using Wakatime. No affiliation, just really like the service.


👤 _b8r0
I try to aim for 4-6 hours of real work a day but a lot depends on what you call work. If you mean stuff I get paid for, my workload is variable. If you mean doing productive stuff, I probably do around 8-12 hours a day.

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.


👤 rupi
It depends on how you define work and also who is deciding what you work on. I am working on my own startup as a solo founder. Any time, I am not with my family, working out or eating/sleeping, I am 'working' - about 10-12 hours per day.

But not all of that time is difficult (deep) work. I code, I design, I talk to users, I read, I do research, I take notes, I think, I plan. Other than coding, none of those feel like 'work'. Coding feels like work because it is both math difficult and bodybuilding difficult - (not my words, I read them somewhere).

I enjoy the autonomy and seeing the impact of my decisions firsthand. I doubt I would have the same hours or energy if I was working where someone else was deciding what I would work on or if I was far removed from the results of the work.


👤 julianlam
Having a 1 year old and minimal daycare has taught me that I never fully appreciated the time I had prior to having a child.

I now work fewer hours, but by necessity, those hours are planned out in advance with no time wasted. Whereas before I could throw myself at a project and bash my head against code for uninterrupted hours, I now must think through problems at a different time, and work on the solution as soon as I sit down.

It is still an adjustment, as I cannot go from 0 to 100 the moment I sit down, but it's allowed me to maintain ~80% productivity with half the time.

As crypt1d says, your work is more than the minutes with the IDE open. Everything else may not be programming, but it is work, including those small bouts of decompression during work


👤 ianmf
Not a programmer, but I divide my day in something like: First hour: Morning greetings, follow up from previous workday, getting my area organized for whatever I have for the day, check HN and news. Next 3-4 hours before lunch: Tackle the most difficult problem or whatever task I really don't want to do but must. The goal is to have the task initial steps completed (planning/thinking) so I can work on it throughout the week. Next 3 hours: Continue working on the tedious task above or whatever work needs to be completed. Last 1-3 hours: Finishing up tasks that can be completed before day's end.

For personal projects, I dedicate as much time as needed as long as it doesn't hinder my family or fitness time.


👤 softwaredoug
I can work 8+ hours up to a few weeks in certain intense situations where:

(A) I feel like I’m making good progress

(B) I like the work

(C) the work has a meaningful (not BS) near term deadline or milestone to achieve that I care about

(D) few personal obligations prevent me from working as much as I can

Cases I’ve faced this include:

- writing chapters of a book

- solving a really interesting and foundational problem for my team

- creating a much needed open source tool I really believe needs to exist

- real customers that really rely on my software need a fix / support

After working intensely, I will switch to a few weeks of low effort work, and not be as productive, and being a slacker for a while. My mind needs to recharge...

Generally I do pretty poor with a consistent 40 hrs, and instead oscillate between high and low energy times.


👤 commonturtle
I can do at most 4 hours of high intensity focused work in a day. But usually administrative work at my job takes up so much time (interviews, meetings, standups, etc.), that I don't have to worry about that limit anyway.

👤 euske
> Are there any persons who can work, say, 8+ hours? I mean, really work, not be at office.

The only time I worked continuously for 8 straight hours is when I participated a game jam (Ludum Dare). I did it several times in my life, but boy, is that exhausting. After finishing the good 48 hours, you don't even want to think anything computer related. All I wanted were flowers and baths and some yummys! A 72-hour jam was even more extreme and I actually ran out the steam in the middle. I've never run a real marathon or some sort, but I wonder if the experience is similar to those.


👤 georgex7
With no external distractions (meetings, etc.), I have the ability to consistently do 6-8 hours of focused coding per day. Under a deadline or at a hackathon, I could hit 8-10, but that would lead to burnout and the last few sessions would be unproductive.

At work, this is never the case. Between meetings, running into frustrating build errors, etc. I've found that most days I do one deep work session of two hours. On good days, I get in another one for a total of 3.5-4 hours.

PS I made a website (trywinston.com) to track deep work hours. Would love to get feedback from the HN community on it.


👤 jamesmehaffey
If I really get into a flow I will forget to eat and my dog becomes annoyed with me. That’s when I get irritated by stupid phone calls and turn off all of my messaging alerts. I used to do that sort of thing well over fifteen or sixteen hours at a time, but I have tried to curb those types of long sessions recently. I do not think the work improves just because you put in longer hours and perhaps needs even more cleaning up afterwards. so now I tend to think it is just as important to step away from things for a while and do something completely different.

👤 alistairSH
That doesn't sound unusual.

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.


👤 serjester
For quite a while I've used Daily which asks what you're working on every 15 minutes. I average a little under of 4 hours of deep work a day. On an absolutely fantastic day I might be able to hit 7 hours.

Keep in mind I consider myself fairly motivated and I still have days where my deep work total is an hour or two.

["https://apps.apple.com/us/app/daily-easy-time-tracking/id686..."]


👤 joeberon
I'm a phd student in physics, I'd say about 3 or 4 hours a day

👤 jjk166
I'm a beast from approximately 3pm to 5pm. I might get about an hour's worth of real work done during the rest of the day. They need a warm body during standard business hours, but honestly if I worked from 2pm to 7pm I'd probably be twice as productive as I currently am working 8am to 5pm, but alas saying "70% of of the time I'm not doing anything useful" isn't a great way to convince the higher ups that they should hire an additional person to do the busy work.

👤 piinbinary
It depends on exactly what you count as 'work', but if I count all the things I do for the sake of work that tie me to the computer (so counting e.g. the team's informal chat half-hour), then about 9 hours.

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!)


👤 asjldkfin
This: https://github.com/ActivityWatch/activitywatch

I find my "estimation" and my "reality" are always pretty far off.

You need to track this to get an accurate assessment.

This is the best tool for productivity tracking I've found; it's free, open sourced and privacy focused.

It also exposes the APIs, so you can build your own dashboard for the metrics you care about; which was EXTREMELY useful in my case.


👤 mbrodersen
If you spend all your time coding, then I would expect your code to be pretty bad, the wrong solution, and ultimately a waste of time. Software Development is about thinking first, coding second, learning third. The worst developers I have ever worked with were coding all day long. The best seemed to not code much however they would think hard about how to minimise the work/coding needed and then implement it in a few hours, saving months of work.

👤 mkl95
I work for at least 9 hours from Monday to Friday, including a non optional 1 hour break at lunchtime (which wildly differs among coworkers in the same timezone, creating 2-hour communication blackouts). Out of those 9 hours, I code for 2 to 4 hours on a productive day. I spend the rest of my workday in meetings, reading tech literature, and browsing codebases.

When I'm working on a personal project, I can do actual coding for more than 5 hours a day. The difference is huge.


👤 st1x7
You can go even deeper with this idea. How much of your time coding is actually coding? Surely, you're not typing all the time. If you take 10 minutes to think over a concept and explore some options before writing a block of code, how do you know if that was an appropriate amount of time or if 9 of those minutes were wasted or whether you should have taken much longer than you did? Personally, I have no way of quantifying any of this.

👤 gorgoiler
It’s not an answer to your question but in terms of technical work I do nothing of use whatsoever after lunch. When I was a SWE I compensated by not showing up to work until lunchtime. I get up early.

Accepting this was liberating.

(I attend work for 51.5 hours a week as a high school CS teacher. I do a fair amount of coding. Some of it, to their delight, live! More than a first tier manager at a tech company can jam in, although my responsibilities are similar.)


👤 petercooper
A lot but it varies a lot day to day. Some days only a few productive hours, others 12+. I have the privilege of being the founder, though, which means I mostly work on what I want to, which is a totally different ball game to being issued work by a boss or whatever. Counter to many, my most productive coding occurs on the longer days as I can keep the entire task 'loaded' into my head and that's a big timesink.

👤 worik
I aim for six hours a day, broken by lunch. Includes time spent in conversation, planing. I can do more in a emergency, but it is very draining and I am not paid enough.

I do my own thing after dinner, to varying degrees

I work from home. If I were in a office it would be eight hours, for the same productivity.

I work four days a week, but that is because I am paid a monthly rate and the hourly rate would drop too low at 30 hours a week! I would rather work five days.


👤 paedubucher
After ~15 years in IT, I found a position where I can work with very few interruptions. I always thought that I'm unable to focus for the whole working day because of the many interruptions. However, I figured out that 4-5 hours of highly focused programming is the most I can do for work. But I'm also able to do private work before/after that, but for work-related projects, I'm done much earlier.

👤 carlhjerpe
Anyone interested in knowing what they're doing should check out ActivityWatch, it spies on everything you do and present the data in nice graphs.

👤 ve55
I've been approaching my record recently of 8-14 per day, but short-term burnout comes and goes, and I'm only doing it since I'm working for myself. There are definitely limits, but it varies from person to person. If I actually read dense things and program for many hours straight (8+), I often end up so exhausted I need to rest in bed for an hour or so before I can continue doing things.

👤 some_furry
That depends entirely on how many meetings I have that day.

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.


👤 cs-szazz
For me it really depends on the project. When I joined my current company we were much much smaller (6 engineers total), and there was a lot of new stuff to be built. I could easily work 8+ hours in a day, of actual coding.

Now, 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).


👤 blaisio
I do the same thing with the timer app. I've only worked more than 8 hours when there was a tight deadline. I was surprised by how exhausted I felt on those days. On a normal productive day I get 6 hours, on a day where I feel shitty I get 4 hours. I was actually surprised by the amount of work I get done with only 4 hours of focus per day - no complaints from my boss or anyone else

👤 dheera
About 8. I can't imagine doing more than that. There are only so many hours in a day, and the rest are taken by: - 7 hours of sleep - 2 hours of dealing with food (cooking+eating+cleaning) - 1 hour of exercise - 1 hour of miscellaneous house chores (organization, cleaning floor and furniture, dealing with plants, etc.) - 3-4 hours of personal project / learning time

👤 chrisBob
Do you mean this year? When I am sharing a home office with my wife an 6-year-old who is doing online Kindergarten?

I get a solid, uninterrupted hour of programming for 6-7am, and then I am at work for another 8 hours, but I don't think I could claim more than 4 billable hours most days.

When I was in the office the ratio was a little better, but shorter days probably resulted in similar output.


👤 chrisbennet
When I worked, I tried to get in 5 billable hours a day. That's all I had the mental energy for. I'd work a little longer than that but anything over 5 hours was gravy.

I know everyone says to bill by the day but I billed by the minute. If a friend called me, I would stop the clock to talk to him. Billing that way I never felt guilty taking a walk or talking to a friend.


👤 Insanity
I'm using the "forest" (http://forestapp.cc/) app to track how much 'deep work' I can do. No affiliation but a huge fan of it.

It's been quite eye-opening how much work I can actually do in a day. In a good day it's about 4 hours. Usually less though.


👤 crazypython
Slightly on a tangent, but I use Timing to automatically track my time.

On GNU/Linux, there is ActivityWatch. RescueTime works cross-platform.


👤 daolf
Productive work: probably 4-5 hours

All work related task (email / slack / reading the news / paperwork / ...): 8 hours

Time at my desk: 11 hours


👤 hallqv
Is this for real? Not being able do your main task, whether it be coding or something else, for more than 4 hours a day is a very strong signal you need to do something you are more passionate about in my opinion.

Startup founder here, I can easily code 12-13 effective hours a day when that is the top priority for the company.


👤 tuyguntn
before pandemic maybe 5 hours/day and 3+ hours were for casual discussions after lunch and some thinking/walking time to refresh.

while in pandemic, with lots of distractions here and there at home with kids, maybe 2 hours/day or less for coding, other part is trying to imitate productive person by answering slack messages and staying online.

My only excuse is, company hired me and in contract stated that work should be performed in an office provided by company, if you are not providing office, I am sorry, but you should cope with my distractions at home and get whatever I produce, my kids are more important to me then your automate everything for useless corporate politics game. I can't say to my kids "shut up I am working", "I am not at home", "imagine I am not here", "please shut the door" and so on.


👤 6510
I vaguely remember some IBM study (maybe someone has the link?) on code reviews that concluded 45 min is the average sweet spot afterwhich bugs start slipping though. It also mentioned how long one should stay away from the screen to get back to top performance. (Simple things one can do 20 hours per day ofc)

👤 TwiNNatioN
Work: 6-16 hours a day. Depends how interesting what I'm working on is.

Personal projects: as long as necessary


👤 lazyjones
1-2 maximum and that's just investing and looking for opportunities. I don't see any interesting problems that I could solve with my IT background and that'd be worth sacrificing a significant part of my remaining life time for.

👤 Chyzwar
4-7 depends on meetings schedule. I would still code during less important meetings.

For me problem is doing high impact work. Product often priotize wrong thing or I spend my time fixing internal frameworks designed by astronaunt architects.


👤 lr4444lr
I'd say, accounting for all of the wasted time, and weekend hours, it's probably at least 50/week. Maybe 60. (Dev work at a startup - I am an early employee with a lot of equity.)

👤 ornornor
For me it totally depends on the job. Most days and employers are just a slog and so I can work as little as two hours a day in these conditions.

But for more interesting employers and problems, I can do 6–7h.


👤 cauliflower99
Scrum master here. I work at least 9-5.30pm each day, but 5.30pm would be an early sign-off. Usually it's at least 6pm.

Depending on the day, I could easily work flat out for 7-8 hrs during my day. Meetings, code debugging, code writing, co-ordinating with the team, answering bug queries, writing backlog stories and documenting processes are some of the things I do each day.

My personal backlog list is probably about 100 items long, and always growing. So there are always things to do, but this is the nature of the SM role.

Deep work happens when I am most relaxed and have a task that is somewhat creative. This could be developing a new process or idea, writing some small code improvement, or thinking about how to improve my team.


👤 laptop-man
Per my work billing quota I have to work 62.5% of my time towards billable items... even if we have no billable to work on lol rest of the time goes to fun projects, yt, walks, etc

👤 rcgorton
Most recent job was 60+/week. Probably closer to 80. A stealth startup. And yes, I did get burned out: total COVID isolation + hours + steep learning curve. (got let go)

👤 samwestdev
Work max 2-3 hours and then it's reddit / hn all the way

👤 cpach
I work six hours per day (and get paid for as much).

A must for me since I have three kids, all under seven.

During these hours I try to focus as much as I can. (I’m not a programmer though.)


👤 slipwalker
does only coding time counts ? how about all the chores ( validating pull requests, meetings, slack/emails, writing/reading documentation, validating deploys in production, warrooms, hand holding the junior members, etc... ) ? i usually clock 45-70 hours/week, daily it varies from 8 to 18 hours a day.

actually productive work, i reckon it's around 4-5 hours a day.


👤 iamoverworked
VPE of a startup here. I work 10 to 15 hours a day.

👤 Akcium
After reading few comments I just want to say that you guys are the best community ever.

This is really so interesting to learn from others experience!


👤 jbirer
12 hours a day when I am freelancing, afterwards chilling for one or two months.

8 hours a day when I am doing long-term contracts.


👤 hda111
1-2 out of 10 office hours are actual coding. In the remaining time I do random stuff like reading HN comments.

👤 tluyben2
More than 8 hours generally, but I work on different projects which I switch between.

👤 fuzzfactor
Whatever it takes, our labs are open 24 hours.

I don't like to keep a client waiting.


👤 joshwoodcock
With pomodoro, I can get 8-14 hours of work done in a day. This is the app I use to stay focused and take short breaks between coding sessions: https://tomato-timer.com/#

👤 Sleepful
Sometimes I code 0 hours per day, on a very productive day I code 6 yours MAX (no meetings all day). 4 hours of straight coding is plenty productive, you are unlikely to focus highly for longer than that, this is fact. Work remote, office hours come from the industrial revolution, as well as capitalism to make people more likely to spend their money on their very few free time.

A good book on this is Deep Work by Cal Newport. It is humanly impossible to achieve high focus for 8 hours....daily....

I don't understand why everyone in this thread is such a sucker for corporate that instead of answering the question on the post, they go off tangents about how "they can still work even if they can't focus that much anymore". It's stupid, it's evidence of mediocre and wasteful corporate politics. A waste of energy for everyone and everything.


👤 Jamie9912
Probably 5 hours

👤 DoreenMichele
I'm not a programmer and this was some years ago at a corporate job, but it's potentially a useful data point given your actual question.

I processed accident claims and I needed to hit a weekly quota that came out to 60 counted tasks per day (this did not directly correlate to "claims completed"). There was inevitably anywhere from one to two hours worth of tasks that had to be done but didn't directly count towards quota, like phone calls to try to get a missing piece of information to try to avoid writing a letter to try to get it off your desk in minutes instead of weeks.

So I typically spent my first two hours handling those tasks, which had to be done but "didn't count," and then had six hours left to meet a quota of 60 counted tasks per day. Sometimes that first two hours resulted in zero counted tasks completed and sometimes it got me a few counted tasks completed, like four or five.

I generally went to the bathroom every hour on the hour. I had two fifteen minute breaks. Those two things together ate up roughly an hour of those remaining six hours.

So now you have five hours in which to meet quota for the day.

Team meetings, coworkers dropping by to ask questions and assorted other nonsense typically also ate away at the remaining time for accomplishing anything.

We aren't quite down to the Office Space quote of "I only do about ten minutes of real work a week" but this was a high pressure environment that they had trouble finding qualified people for. In my class of about 20 students for training for this entry level job, there were only five or six actual new hires and one of them couldn't hack it and washed out. The others were internal promotions, returning employees (one military wife was back in town, having moved away for a while when they were stationed elsewhere, and they were thrilled to see her) and transfers from other departments.

One of my coworkers on my team set a goal of getting a job at this Fortune 500 company and it took her like five years to get in. Another had a background in EMS and also set a goal of getting a job -- any job -- at this company.

I'm telling you all that to try to give some context because this is the only full-time paid job I have ever had. I was a homemaker for a lot of years and I've done freelance work since.

My understanding is this was "the best of the best of the best" at a highly competitive, award-winning company and a good day for me was about 4.5 hours of uninterrupted work with serious concentration.

I now do freelance work (and my own projects). If I spend part of the day "piddling productively" and at least four hours focused on really getting shit done, I'm extremely happy. I know from experience that's actually pretty kick ass.


👤 magusd
I code for 8+ hours regularly, but that means I'm on the computer for 10-12+ hours.

TLDR: coding != learning, coding for 4h = easy, learning for 4h = hard, take care of your body, delegate what you can, automate the rest, save your attention

By coding I mean: reading errors logs, stack overflow, and the actual code/test/debug loop.

I've got two jobs and a small side project, so here are my directives: - minimize meetings and do quick syncs once a day, ask for priorities and responsibilities, make your own tasks, ignore the rest (all hands, HR bullshit, random groups, etc) - get down to business, keep your main goals in mind, think of a solution, research the docs/snippets/common solutions and then jump to the code. - have more then one context, I'm a sr devops, a sr data engineer and got a side project. Sometimes one job gets boring, and I'm excited about the other. I rarely get bored at both jobs at the same time. So I'm always motivated and never afraid of getting fired. - This is the most important: stay healthy, walk, drink water, eat well. This will give you energy, repair some of your posture flaws and prevent your body from breaking down from such heavy workload. - delegate mundane tasks: 2 incomes means, I don't cook, wash, clean, nothing. - automate everything, make filters for your inbox, use a calendar to remind you of stuff, - Attention+focus = gold, don't spend it on shit. silence notifications, uninstall social media, put you phone on do not disturb, silence all channels on slack, create alerts for keywords in slack for stuff you actually need to know. e.g: jenkins, your_name, project names

My time is spent as:

Mon-Fri - exercise: 1hour - job1: 4-6hours - job2: 4-6hours - sleep: 5-7hours - food, drink, hygiene, general body maintenance: 2h Sat-Sun: - exercise: 1hour - sleep: 8-10hours - pick up some slack from the week, study something I need for work, work on one of my sideprojects: 2-3hours - relax, fun, games: whatever is left

job1-job2: I start at 9:00 and I usually work until 22:00. That means I'm always on slack/teams and I do overlap the two jobs.

I make regular 10min breaks every 50-100min, and I stop for lunch (eat, power nap, back at it).

exercise: walking is fine, go to a gym if you can, don't overdo it so you can do it tomorrow.

sleep: I don't get sleep deprived but I do get tired by Friday, which makes the weekend so much more enjoyable

You can be productive all day, just like you can be a long distance runner, start small and keep progressing. In you first days of running/programming/* you are mostly learning a bunch os stuff and figuring out the profession, yourself and your strengths and weaknesses. So it takes more energy because most of it is spent on learning about your trade and about you.

Know thyself. I like programming, I like math, I like learning, I like hard stuff. I'm not a design guy, I don't do UI, and I won't be a project manager. So I place myself in jobs/tasks/places I can maximize my output with minimal effort.

Doing a full day of devops is easy to me, but I'd cry after 2h coding a react app. Devops I know, so it's more time outputting solutions and less time inputting knowledge. React, I've got to basically learn every step of the way, so it's 10 times more exhausting.

So, True, you can't be productive all day. But you can 100% go way above 4hours coding.


👤 tubularhells
I want to get maximum return for minimal work. I don't work during meetings, for example. My camera is off and I'm painting miniatures. I can pay attention to speech and do that, but coding uses a similar part of the brain than speech, so I cannot pay attention to both.

People complain about red tape and useless corporation time wasters, and I get you, it's draining. But you can learn to use those hours for your own stuff. Vacuuming the house while the all staff meeting is going on in your ears, or hell, you are attending but not listening. Just have a friend in the company who can brief you.

This all changes when you are an expensive contractor, where you can bill 8 hours when the job only took 4. Still, you have to be attentive and present so that you represent value. Clients pay for the illusion of professionalism, but you do the same work their devs do, just with fewer meetings and for 3 times the wage.

Anyway, what do I mean by all this? You should ask yourself what you want. I comfy seat at a corp with a 9-5 that is really just 2-5 hours of effort, or more money for more effort and more agency by being able to say no to meetings and work when you want to work. That works is called consulting. They have their pros and cons.


👤 azatris
You can easily do routine work for 8+ hours daily. The sort of work that can potentially be automated one day. What you call "coding" is routine enough in my book.

But if you're doing something novel and solving hard problems, I think 4-5 hours would be a maximum for sure.