Live data from Hacker News

Ask HN: How Many Hours Do You Code in a Day?

news.ycombinator.com

11–20 of 56 posts

Re: Ask HN: How Many Hours Do You Code in a Day?

#11

i work full time as a developer so... 2ish?

This sounds more familiar to me. xD 8 hour day, in a place with a nice or relaxed working culture that turns into 6 hours. Minus lunch break, 5. Minus meetings, 4. Minus helping others, 3. Minus whatever procrastination during the day, in practice 2 hours on actual code.

I could see that going up to 5 depending on the working environment. But people answering 7+ hours seems bonkers to me, that's more than a working day!

Re: Ask HN: How Many Hours Do You Code in a Day?

#13
That varies a lot. In non-productive weeks I hardly look at the code I should work on, there are customer problems to investigate, documentation to produce, meetings to attend, chat messages to answer.

On a productive day at the home office coding can be over 8 hours (plus 1 to 2 hours following company chat).

Re: Ask HN: How Many Hours Do You Code in a Day?

#14
If I push myself to get as much done as possible in one day, maybe 4 or 5 hours. After a few days like this I'm exhausted.

If I follow the natural rhythm of my energy though the day, about 3-4 hours in the morning, followed by a several hours long break, then another 3 hours in the late afternoon/early evening. So about 6-8 hours total, and I can sustainable do it for many days in a row.

The issue, of course, is that I have a life, people want to schedule meetings with me, or I want to go for dinner with my family or friends. As a result it's hard to coordinate my work so that I'm following my natural energy cycle.

Re: Ask HN: How Many Hours Do You Code in a Day?

#18

i work full time as a developer so... 2ish?

This sounds more familiar to me. xD 8 hour day, in a place with a nice or relaxed working culture that turns into 6 hours. Minus lunch break, 5. Minus meetings, 4. Minus helping others, 3. Minus whatever procrastination during the day, in practice 2 hours on actual code. I could see that going up to 5 depending on the working environment. But people answering 7+ hours seems bonkers to me, that's more than a working d…

I worked 8 hour days in tech support but that doesn’t involve much thinking.

I’m extremely sceptical of people who say they can code for that amount of time.

Re: Ask HN: How Many Hours Do You Code in a Day?

#19
It depends how you measure the time i guess. I would say from 4 hours to 6 hours on an average workday (thats what wakatime says at least).

But is writing code, stopping for reading docs / thinking and continue writing code counted as 1 big unit of coding, or 2 small?

I dont code that much outside of my work anymore, buy i could go for 17+ hours when I was younger.

Re: Ask HN: How Many Hours Do You Code in a Day?

#20
The answer can (seemingly?) be found on a VSCode extension called Code Time. It keeps track of how much you've been "coding" and "actively coding".

"Your code time is the total time you have spent in your editor today. Your active code time is the time you spend actively writing and editing code in your editor or IDE".

They know as well as anybody the answer to the question on a statistical level, and can answer it personally for you too.

Their data shows most programmers code less than 1 hour a day, for a grand total of 4 hours 21 minutes a week: https://www.software.com/reports/code-time-report

Post reply on HN