TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

29 pointsby netmau5over 14 years ago
Greetings HN. I have a problem, at least I think I do. I want to code more because I'm really passionate about creating things. That has meant many different things throughout my life, but it has meant writing software since I discovered my first BBS. I have a full-time day job and, while I enjoy it, I want to create something on the side. I've been working on a side-project since early August but I feel like it's developing extremely slowly.<p>I can code about 40 hours a week. And I mean really code, not just being at work: heads-down, super-productive hacking. All told, I spend about 32-34 hours a week at work coding so I usually end up spending about 10 hours a week on my side-project. This comes out to around 6-8 hours coding and 2-4 hours designing, researching, etc. Those numbers change quite a bit depending on overtime so I typically get in about 25 hours a month on my side-project. The thing is that I want more, but I simply cannot bring myself to code more.<p>It's somewhat amorphous, but I know that sometime every week I'll hit a limit. While I can keep pushing on, my productivity takes a dive. If I persist, after a week or two of overdrive, my overall performance starts to dive. I thought something was wrong with me so I took several steps to try to improve through life-hacking: I began going to a gym 3 times a week, dramatically improved my diet, and have almost entirely kicked the smoking habit (down to 2 a day from a sadly higher number). Nothing seems to work. The fatigue from ultra-focused coding just leaves my mind incapable after 40 hours of further deep concentration.<p>I typically spend the rest of my free time learning new things, playing games, or being with my girlfriend. I definitely enjoy these things and like to have some balance, but I feel like I'm missing that hardcore edge to really hunker down and produce a quality side-project once in a while. I feel like the hacker version of a guy who needs steroids to take it to the next level. Is this normal? Are the 16 hour/day guys the exception? Is it really that naive to try a side-project and keep the day job? Am I demanding an unreasonable amount from myself?<p>Thanks in advance for any feedback you guys have.

28 comments

bdover 14 years ago
People will tell you things ...<p>This is a topic that:<p>a) people <i>really</i> like to brag about,<p>b) it's hard to separate "hanging around" hours from really productive hours,<p>c) even if you can distinguish those, it's a major pain to accurately track them (do not trust what anybody says just from remembering).<p>Do not worry to much about raw hours numbers. Focus more on quality of these hours.<p>In my experience, the difference in productivity / results achieved between "good" and "bad" hours can be staggering. Well rested me can easily outcode several tired overworked stressed mes :).<p>Forcing yourself heroically to work more when you already can't can be <i>very</i> counterproductive (game industry notorious for permanent crunch times sometimes does self-reflection [1][2]).<p>Working many forced hours can make sense when you have some external situation where additional benefits of getting something done by deadline outweigh loss of productivity. But even there, you are only borrowing it from your future self.<p>Yes, I had situations where hunkered down and produced magnificent amount of results working crazy hours every day, but at the end I got literally sick and was unable to do any intellectual work for quite some time afterwards.<p>[1] <a href="http://archives.igda.org/articles/erobinson_crunch.php" rel="nofollow">http://archives.igda.org/articles/erobinson_crunch.php</a><p>[2] <a href="http://www.lostgarden.com/2008/09/rules-of-productivity-presentation.html" rel="nofollow">http://www.lostgarden.com/2008/09/rules-of-productivity-pres...</a>
ohyesover 14 years ago
"Are the 16 hour/day guys the exception?"<p>I sincerely hope so, and I question the hygiene/health of anyone who spends 16 hours a day &#62; 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).<p>The message that I would like to give you is that of quality over quantity.<p>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.<p>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.<p>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?<p>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?<p>It might also help to not try so hard when you are 'concentrating'. Let me explain:<p>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.<p>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.
评论 #1841962 未加载
darkxanthosover 14 years ago
I think I'm roughly on par with you. I spend 40 give or take at work and then come home and bang away on a side project. My girlfriend luckily has some crochet projects usually so all day Sunday I can work on my side project (6-8 hours) plus about 2 hours a night another 4 nights out of the week. So say maybe 15 hours a week on my side project not counting other research and such I do for it (researching hosting plans, new gems to make life easier, etc).<p>Given that there are only 24 hours in a day, pulling a 16 hour day frequently means you're not getting much sleep nor much of anything else ;)<p>Worry less about what other people can do. It's an ego-oriented goal and it can end up causing you to feel defeated as well as lose track of your real purpose. Instead focus on whether or not you feel like you could do more, and whether or not it's worth it.<p>You've got plenty of company no matter what you decide. :)
dasil003over 14 years ago
First, I commend your self awareness. That right there is the biggest battle for me honestly. You should pay attention to your mind and body, and make sure you are letting yourself recharge. I'm reminded of a recent article on here about how Germans have the same productivity as Americans with fewer weekly hours and a lot more vacation. The American culture values putting in the hours more than it does productivity, and it's dreadfully easy to fall into the trap.<p>As to the answer to your question, I think it varies a great deal, but I don't think you'll ever get an honest answer based on any kind of data from silicon valley, statistical or otherwise. The problem is that productivity is too amorphous, and there's really no hope of getting an honest appraisal from actual engineers because they're just as likely to fooling themselves as to provide factual data. I know I've had some amazing 100 hour weeks where mountains were moved, but it's really hard to be sure that I wouldn't have gotten twice as much done in two 30 hour weeks...<p>Also apropos, I've currently been on a death march for the past three months. At this point I'm still pulling 80 hour weeks, but I'm so worn down now that I'm sure I'm not getting anything more done than I would in a normal 40-hour week. It's sort of a make or break moment for the company I've spent the last 3 years building, so it's worth it this time, but it's also the sort of experience that highlights the dangers of too much work. My body mind and body are down far beyond what I could achieve on a personal project, or some artificial scenario like you are given in college. It's definitely not a lifestyle that I plan to continue, and I would caution anyone against living this way. It's better not to burn yourself out, and always keep something in reserve for when you really need it.
_b8r0over 14 years ago
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).<p>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.<p>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.<p>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.<p>How's your sleep? I find that's the biggest factor in my day.
评论 #1842809 未加载
jason_stiddover 14 years ago
Is it about your side-project? You really should only be doing a side-project for your enjoyment and the challenge. However, if you stress about your productivity you might lose sight of the reason you started a side-project. I am the person who can concentrate 16 hours a day, or even days on end without sleep or breaks (in fact, i'm well known for it). It doesn't mean my projects get done faster, the real result has been making those around, like my family, feel neglected. I say enjoy your time with your girlfriend, focus your productivity at work where it matters, and just enjoy your projects. --- There is probably a good argument about the mental health of those, like myself, who can concentrate for days on end, months at a time. Actually, I think its great that you can relax after 10 hours a week on your project. I can never shut my mind down long enough stop working on my projects, or even sleep.
评论 #1842890 未加载
gridspyover 14 years ago
I managed to code about 20 hours a week for 6 months, while also working parttime. I blogged about it - <a href="http://blog.gridspy.co.nz/2010/02/part-time-entrepreneur.html" rel="nofollow">http://blog.gridspy.co.nz/2010/02/part-time-entrepreneur.htm...</a> - Great HN reaction here: <a href="http://news.ycombinator.com/item?id=1150061" rel="nofollow">http://news.ycombinator.com/item?id=1150061</a><p>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.<p>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.<p>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.
klsover 14 years ago
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 is a treadmill but one thing I have learned and the piece of advice I can give you is that once it becomes habit, it is actually easy to put in these kind of hours regularly if it is what you want to do. I now find that while I work long hours when I do work, I also tend to schedule longer amounts of time off to travel and recharge, it works for me, but I would like to have enough head room to get back to doing my own stuff as well.
评论 #1842174 未加载
评论 #1841887 未加载
johnthedebsover 14 years ago
Don't worry, you're normal.<p>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.<p>Also check this out: <a href="http://dl.dropbox.com/u/242985/rules_of_productivity.pdf" rel="nofollow">http://dl.dropbox.com/u/242985/rules_of_productivity.pdf</a><p>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.<p>My advice is to keep pushing yourself, but don't sweat it if you don't improve over night.
mfukarover 14 years ago
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.<p>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.<p>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. :-)
jedwhiteover 14 years ago
Have a look at the Mylyn plug-in for eclipse and TaskTop Pro. Even if you don't use eclipse as your IDE, there is a standalone version and it connects to your bug-tracker / gmail and other task repositories, and let's not only very easily track your active time on tasks/tickets, but has some very cool tools for staying focused and organized.<p>And the reports really do help understand where your time goes.<p>They also help you see how your productivity is declining through the week, and the patterns that match when you can really burn through stuff.
jayphelpsover 14 years ago
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.<p>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.<p>(obviously, I eat, shower, and do take short breaks which usually means Wikipedia, blogs, and such)<p>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.<p>It's so hard not to binge when there's always something to learn!<p>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.
aaronblohowiakover 14 years ago
In the 24 or 48hr competitions (rails rumble, node ko, tc disrupt,) the most frequent winners are those that still get sleep.<p>I think it is unreasonable to expect &#62; 40hrs of pure programming productivity a week -- the body/mind needs time to recover.<p>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!)
评论 #1841893 未加载
kilianover 14 years ago
I find that while my 'dayjob' programming saps my willpower, the same activity for my sideprojects refills it right up.<p>I firmly believe that you need downtime though. Between my dayjob and my sideprojects I always take an hour or so to play, watch television, read or anything else that doesnt take much brainpower.
评论 #1842833 未加载
sundar22inover 14 years ago
My two cents: * We need a Work-Life balance and it is easier said than it is done. * Periodical break and relaxation is essential. * You dont need to be at computer always to solve problems and design. How about a whiteboard/notebook?
评论 #1842026 未加载
Vishnevskiyover 14 years ago
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.
liamotootleover 14 years ago
Is it possible the side projects are not interesting enough? If they feel like work, rather than fun, it may be hard to keep plugging away at them after a long day of coding.
评论 #1841826 未加载
TamDenholmover 14 years ago
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.<p>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.
hellweaver666over 14 years ago
I'd kill for 40 hours a week to work on my project, but between the day job and family commitments (4 month old son!), I'm lucky if I can get 10 hours in!<p>Luckily, we're moving house next month and I'll finally have my own space where I can go, sit at a desk and code - even if it's in short bursts. Trying to work on the sofa while my wife watches TV just doesn't work for me.
jtchangover 14 years ago
Sometimes it confuses me when people say they code this huge number of hours per week.<p>To me a large portion of coding (over 75%) is just sitting down and thinking about the problem. Most of coding these days is about researching libraries, designing, playing around rather than typing.<p>Try to be more effective in these bursts. Use tools that help you get ideas to code faster.
vegaiover 14 years ago
Are you relatively young? Don't burn yourself out.<p>If I can manage 10 hours per week, I consider the week highly successful.
dpavlenkovover 14 years ago
I find learning new programming languages stimulating. Or re-learning old ones.
评论 #1841848 未加载
评论 #1842266 未加载
p01nd3xt3rover 14 years ago
I code 12 hours a day (3 4h sessions). But I dont have a traditional schedule because dont sleep. I only nap. If I did sleep there is no way I could do it.
gosuriover 14 years ago
I tend to spend ~40 hours coding and rest designing/discussions and run to clear my mind. It just wouldn't work if I code all the time.
peteypaoover 14 years ago
I'm doing around 8 hours + side project. I'm still standing, fortunately!
knownover 14 years ago
Can a surgeon do surgery for more than 40 hours/wk?
alnayyirover 14 years ago
Eh. I'm capable of it, but not at a sustained rate. I exceed that kind of rate in response to external pressures.<p>I'm most productive when I fiddle my thumbs and have bizarre bursts of genius or when I plug at it at a pretty normal number of hours per week.<p>I've been exceeding that on a regular basis lately mostly because I have a full-time job + side projects. It's not sustainable and I don't want to keep doing it, so I'm going to try to wrap up a few things pretty soon.
Devilboyover 14 years ago
I can't even do 40 anymore. When I was in my twenties I did about 4 years of 60 hours a week but those days are over.