Live data from Hacker News

Ask HN: Can you code more than 40 hours/wk?

news.ycombinator.com

31–40 of 55 posts

Re: Ask HN: Can you code more than 40 hours/wk?

#31
I think it depends on the project. I've spent the odd weekend starting on Friday night and finishing on Sunday morning (although that doesn't happen now with a wife).

Years back I started writing multi-format shellcode, which required me to learn 4 different OS and 3 different chip architectures to the point where I could get assembly running across all of them. That was an insane project that started out as get shellcode that worked on Linux and Freebsd/x86 and just ran and ran as I found more things to add in and tweak. Then I'd sleep through the whole of sunday and turn up for work on monday.

On the other hand I've worked on projects in my work time that are so mind numbingly dull that I've spent 4-6 hours a day actual programming, come home and collapsed in a heap.

It sounds to me like you're going past your wall and it's not flexible. You need to qualify and stick to your limits. The gym, diet and smoking side of things is a good idea, but not enough.

How's your sleep? I find that's the biggest factor in my day.

Re: Ask HN: Can you code more than 40 hours/wk?

#33
Don't worry, you're normal.

I've wondered the same thing a LOT. What I've discovered is that you can only push yourself so much (although it's more than many people believe), and that there are limits on how long you can spend focusing on one (type of) thing.

Also check this out: http://dl.dropbox.com/u/242985/rules_of_productivity.pdf

It's called "Laws of Producitivity: 8 Productivity Experiments You Don't Need to Repeat" and it's exactly what it says it is. Very interesting; I forget where I originally discovered it.

My advice is to keep pushing yourself, but don't sweat it if you don't improve over night.

Re: Ask HN: Can you code more than 40 hours/wk?

#34
I usually code around 5 hours at work. About an hour is spent getting coffee/lunch or just stretching, another hour at scrums or the occassional meeting, another couple in discussions around desks.

At home, when I'm actually working on a project (ie. not work related) it usually goes from 2 hours to 4 or 5, if it's a weekend I might spend a whole evening on it, otherwise I save my nights for relaxing, playing a game, going out etc.

All in all, it's probably more than 40 hours a week; around 55, I'd say. I'm kind of trying to reduce it though, maybe hit the gym 3-4 times a week again, or just find a hobby. :-)

Re: Ask HN: Can you code more than 40 hours/wk?

#36
post #10

I have been slammed with work for the last 6 mo, picked up two other guys and am still slammed. I literally code 12-16 hours a day and have a side project that has just been languishing on the back burner for months. It is definitely not a case of want to but I have too, I pulled a 116hr week one week of literally non-stop code. I freelance and not pulling those hours means that I loose the contracts that I have. It…

A couple of years ago I made the mistake of committing to too many projects. (I'd just started free-lancing and put a few feelers out and they all came in at the same time! Typical!)

Think I was pulling 16 hours a day consistently for two or three months. Managed to meet all deadlines, but in hindsight I think I made a couple of poor design decisions - and I didn't question some of the things clients asked for (just cracked on and did them without offering much input).

Now I make a conscious effort to say no (which I don't like to do, but must) when I don't think I have the spare capacity.

Only problem with freelancing is how difficult it is to find time for your side-projects. Am also trying to sort out enough head room to be able to focus on my own stuff. Good luck with it!

Re: Ask HN: Can you code more than 40 hours/wk?

#37
post #28
post #19

Earlier quoted context omitted.

Interesting! May I throw in my two cents? For me personally, and because I am 22, and because I truly enjoy my job (game engine programmer), I tend to put in way more hours than I need to. Way more hours. On the order of 80-100hrs/wk. Of coding. (Which is to say, 80-100hrs/wk of actual thinking + typing . Not "time spent getting ready to program" or "time spent psyching myself up to begin working on the problem" etc.…

out of curiosity, how do you count 80-100 hours a week? Do you keep timesheets? 100 hours is 14 hours a day, every day.

Nah, no tracking. But maybe I should, that would be interesting.

The reason I make those claims is because I don't do much else at the moment except "work" (which for me equals fun). I don't play any video games anymore except the one I work on, and even then it's usually only once a week. I don't use facebook. Etc. Hacker News is my outlet, typically before bed (like now).

Think of it this way... there are 168 hours in a week. A "proper" amount of sleep is 8 hours a day, which is 1/3 of a day. So 168 * (2/3) = 112 waking hours. Throw in the fact that I often have trouble sleeping, or go without sleep, and... well, you get the idea.

I'm not claiming that I typically work 100 hours. This week in particular has been unique. I'm just saying, for me personally, when I'm passionate about a thing, I wind up way, way more productive by obsessing over it and pushing myself than if I try to "balance" myself.

Also, when I'm in "hardcore work" mode, I can only focus on exactly one project. There is little or no room for any other projects, such as side projects. Even doing an unrelated small bugfix has the potential to completely destroy my enthusiasm / flow.

There are downsides, of course... one example that springs to mind is: my right wrist has been hurting me. Badly, actually. I've been ignoring it, but that's stupid obviously. I think it's possibly because of the shape of my mouse. (I've heard that I should get a "splint" to prevent horizontal / vertical wrist movement.)

Also I need to take care to ensure good nutrition, which I've been slacking on. Also, Vitamin D pills + B12 pills.

Re: Ask HN: Can you code more than 40 hours/wk?

#38
post #28
post #19

Earlier quoted context omitted.

Interesting! May I throw in my two cents? For me personally, and because I am 22, and because I truly enjoy my job (game engine programmer), I tend to put in way more hours than I need to. Way more hours. On the order of 80-100hrs/wk. Of coding. (Which is to say, 80-100hrs/wk of actual thinking + typing . Not "time spent getting ready to program" or "time spent psyching myself up to begin working on the problem" etc.…

out of curiosity, how do you count 80-100 hours a week? Do you keep timesheets? 100 hours is 14 hours a day, every day.

I don't pull 100 these days, but I have a chronometer and I time my work sessions, usually aiming for 12 hour days at super busy times, which is about max sustainable for me

Re: Ask HN: Can you code more than 40 hours/wk?

#39
I seem to binge code often. Usually that means I'll go for 2-4 months with 2-3 hours of sleep, coding until the sun comes up. Now, I'm not super-human. It takes a toll certainly. During these binges I'll crash for a good 8 hrs every week or so to catch up.

I feel surprisingly okay during these periods, but it doesn't last forever. Eventually my day time performance starts to slow and then I go back to a normal routine where I still code almost non-stop except I sleep for 4-7 hrs depending. It isn't out of necessity, it's out of enjoyment, which is probably why I can get away with it.

(obviously, I eat, shower, and do take short breaks which usually means Wikipedia, blogs, and such)

This isn't for everyone. I'm sure its very unhealthy and I have no doubt I won't be able to continue this pattern when I'm older, but it's gotten me some incredibly productive work done. It's so much easier to stay focused FOR ME if I work on something in one sitting then to break it up. Some people are more productive sleeping 8hrs a day...but I'm not one of them. It's hard to sleep that long for me and I end up feeling like I slept all day.

It's so hard not to binge when there's always something to learn!

Lastly, like most on here I grew up from a very early age sitting at my computer. Thankfully for me that means I rarely get tired of it.

Post reply on HN