Live data from Hacker News

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

news.ycombinator.com

11–20 of 55 posts

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

#11
Personally I can't code for more than 5 hours a day productively. Luckily I work from home so I'm not forced to sit in someones office and be judged not by what I accomplish but by how long I sit in my chair.

I actually get more done at home anyway since I have my perfect setup, good music and no interruptions. Anyway, count yourself lucky that you're actually very productive already.

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

#12
In the 24 or 48hr competitions (rails rumble, node ko, tc disrupt,) the most frequent winners are those that still get sleep.

I think it is unreasonable to expect > 40hrs of pure programming productivity a week -- the body/mind needs time to recover.

You should still keep up the gym, diet and smoking improvements as they will continue to benefit you as you age (we all age, dont ignore it!)

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

#13
I have been coding 14-16 hours a day for the past year for my startup. The only down time I have is to hang out with my girl friend to keep her happy. Originally it was my day job and the start-up and about 18 hours a day, but ended up quitting the day job because it was draining my energy because I did not enjoy it. I have to say it is not normal and very unhealthy and I personally can't wait to force myself to reduce my time (for which I have plans soon). That being said I don't find my productivity taking a dive and I do love doing it, it's just awkward not dedicating time to anything else.

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

#14
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…

You just outlined the exact reason that getting into freelancing worries me. You start out as one guy and will have to face some long hours no matter how well you plan. I know when push comes to shove, I can do it, but anyone capable of doing 80+ hours/wk for 3 or more weeks and stay productive is superhuman to me.

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

#15

In the 24 or 48hr competitions (rails rumble, node ko, tc disrupt,) the most frequent winners are those that still get sleep. I think it is unreasonable to expect > 40hrs of pure programming productivity a week -- the body/mind needs time to recover. You should still keep up the gym, diet and smoking improvements as they will continue to benefit you as you age (we all age, dont ignore it!)

Thanks, my lifestyle changes have definitely made me feel a ton better, especially in the mornings. Hopefully that will translate into more mental acuity over the coming months as well.

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

#17
"Are the 16 hour/day guys the exception?"

I sincerely hope so, and I question the hygiene/health of anyone who spends 16 hours a day > 1 day a week in front of a computer. I certainly have done 16 hour stretches of coding, but I don't think anyone can sustain that for more than a day or two and still be sane. (I think you turn into rms, which can be seen as good or bad).

The message that I would like to give you is that of quality over quantity.

First off, you don't have to be at a computer to be solving your coding problems, keep a notebook, keep them in your head, write down answers as they come. Relaxing you think about a problem probably doesn't count against your concentration hours.

Secondly, if you are banging your head against a problem, it is probably time to take a break or get help with it... There are diminishing returns from struggling with a problem.

I don't doubt that you can spend more than 40 hours a week coding, but that seems like a shitty quality of life. Wouldn't you rather see the sun occasionally?

Wouldn't it be better for you to just work within the 40 hours, optimizing your use of them? Maybe find a way to get stuff done at work more efficiently, so you can spend more of your quota coding your side project?

It might also help to not try so hard when you are 'concentrating'. Let me explain:

I feel like if you are trying really hard, it takes more out of you mentally than if you are approaching it from a mentality of playing. Having more fun will definitely stretch your endurance for these things.

My mantra is to 'work' as little as possible to achieve my goals. So I like to turn 'work' things into puzzles/games. 'Work' is psychologically un-fun.

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

#19
post #17

"Are the 16 hour/day guys the exception?" I sincerely hope so, and I question the hygiene/health of anyone who spends 16 hours a day > 1 day a week in front of a computer. I certainly have done 16 hour stretches of coding, but I don't think anyone can sustain that for more than a day or two and still be sane. (I think you turn into rms, which can be seen as good or bad). The message that I would like to give you is t…

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

(Also, I love Vim. I'd likely be massively frustrated with all the programming I was trying to do, if not for ViEmu + Visual Assist.)

And damn, it's fun! The only strain I feel is from lack of sleep.

Also, I think the 'quality' argument is subjective. It's true that if you're physically exhausted, you can't work. But if I'm merely pushing myself, the output of my work is of a similar quality as when I'm living a "balanced" week.

But the insidious thing is, I have a personality where if I try to "balance" myself, I wind up mentally not "getting in the zone" for any of my projects. And for me, it's a little depressing to be in that state, because I am only capable of bug fixes / minor tasks. Nothing architectural.

So, in conclusion, I am certainly not planning on keeping up this lifestyle forever --- I'm just enjoying the 80-100hr weeks while they last. It's a similar feeling to being a kid staying up all night at a friend's house. It's fun!

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

#20
I managed to code about 20 hours a week for 6 months, while also working parttime. I blogged about it - http://blog.gridspy.co.nz/2010/02/part-time-entrepreneur.htm... - Great HN reaction here: http://news.ycombinator.com/item?id=1150061

I found that trying to be a father, an employee and also a startup entrepreneur all-consuming. I really couldn't do anything else, all my time was tied up.

Also, I probably couldn't have done it at all if my fulltime job required my full talents. As it was, it was a pretty simple role requiring only lightweight UI work in C++, so it didn't drain my brain at all.

Don't beat yourself up about not sustaining a huge number of hours. The best solution is to be clever about how you use your time and to try to reduce the number of hours you work.

Post reply on HN