Slashdot Mirror


Do Long Work Hours Affect Code Quality?

tooTired asks: "At my company the owner is heavily implying that the development staff needs to start working longer hours and weekends to shorten the time-frames on our current projects. The exact quote is 'These 8 hour days have to stop, we need to be working 15 hours a day and weekends, balls to the wall.' We are heavily under-staffed even with my multiple attempts to show the owner that we need more resources. My general feeling is that long hours is generally a symptom of poor project management, and not something to be sought after. I wanted to ask the Slashdot community their opinions on how working long hours during the week and weekends affects the quality of the code they produce, and the overall success of the project." A large reason why many in this industry find themselves working long hours and weekends is that management makes unreasonable expectations and deadlines. Are there ways of communicating to management that long hours to rush a project to completion is not the way to complete a successful project? Update: 08/30 23:11 GMT by C :Grammatical errors in title, corrected. Sorry about that.

22 of 822 comments (clear)

  1. Agreed by SirSlud · · Score: 5, Interesting

    Humans are not machines. You simply do not up the hours that they are 'on', and it works.

    Nevermind code quality - what about burnout, resentment towards management, and seeing domain knowledge go out the door when coders get sick of working 15 hour days and leave for another company?

    15 hours? He's not serious, is he?

    --
    "Old man yells at systemd"
    1. Re:Agreed by Albanach · · Score: 5, Interesting
      Indeed, in Europe if they had you working 15 hour days, you could go home at 11am on the Thursday and not return to work until the Monday.

      Why? Because the European Union protected its workers by introducing the working time directive which emans the maximum hours you can be contracted to work is 48 per week - you can work longer if you wish and agree, but no employer can force you too, and if you decide not to there's not a thing they can do. Even if later they decided not to promote you on that basis you could take action against them.

      Usually I'd be cautious about such intervention, but certainly here I have to agree that it's to everyone's disadvantage being forced to work these crazy hours - I've done it myself and veryone loses - employer, employee and families.

  2. Just quit. by autopr0n · · Score: 5, Informative

    Don't burn yourself out for this wanker. 8 hours a day is a totally reasonable limit for a job

    Sure, sometimes coders spend a lot more time then that on their job, but that's because they enjoy it, because they want to spend that time working on code for their job.

    If your boss is demanding you work 15 hours a day, quit.

    Will it affect code quality? I don't really know. In the short term I doubt it, actually. Will it affect your quality of life? Absolutely. Will it affect employee satisfaction? Probably, and down the line that will affect code quality. If you don't like your job, you're code will definitely suck.

    --
    autopr0n is like, down and stuff.
  3. Prediction: you will get fired by 1010011010 · · Score: 5, Insightful


    Executives don't like reality. They are all about wish fulfillment. When your project(s) are not completed by their deadlines, you will be fired. You will be the one who has to pay, because you were the one repeatedly pointing out that you needed more resources, given the requirements and deadlines. You contradicted your executive's worldview. In any competition between reality and an executive's world-view, the executive wins, in the short term. Reality always wins in the long term.

    --
    Napster-to-go says "Fill and refill your compatible MP3 player", which is a lie. It's not MP3. It's WMA with DRM.
    1. Re:Prediction: you will get fired by DarkEdgeX · · Score: 4, Informative

      Insightful doesn't even begin to describe your post-- I'm living proof of what happens when management expects more than can be realistically be given. A team of 3 developers were tasked with creating an app in 3 months; complete and ready to roll out (bug checked and the whole works, by the same 3 developers). I told them it wasn't possible and was told it WOULD happen and we'd work extra hours to get it done.

      They were so certain of this that I gave up debating the topic, and when month 3 rolled around, lo and behold, NO SHIPPABLE PRODUCT. 2 of the 3 developers were asked to resign with severance pay. I will NEVER accept that kind of shit from management again-- next time it'll be "I work 8 hours a day, and if you don't like it-- too bad!".

      --
      All I know about Bush is I had a good job when Clinton was president.
  4. Good Resource by philovivero · · Score: 5, Informative
    Most of the arguments you'll see in this discussion have their start in Extreme Programming.

    Here's a good reference: Forty Hour Week on c2.com, which seems to be the best web authority for Extreme Programming discussions and patterns.

    Give it a gander.

  5. Get a new job. . . by AlaskanUnderachiever · · Score: 5, Insightful
    I hate to say it but

    GET OUT WHILE YOU STILL CAN!!!

    I mean good lord man, you're telling me every symptom of every business that I've seen go under locally. The whole "balls to the walls" syndrome is often more of a "we're cutting budgets that we really shouldn't" syndrome. I fully expect that you'll find that the same managers that are willing to have YOU (not them) put in 15 hour days are also the ones willing to say "sure we can do X+Y at the budget for just X" to his higher ups just to look better.

    --
    Find out about my new childrens book: SS Death Camp Criminal Batallion Go To Monte Carlo For The Massacre
  6. Spend The Time Wisely by nick_davison · · Score: 5, Insightful
    While, short term, it can work, it sounds as if the owner thinks this is the way to simply work from now on, regardless. That being the case, he really is demonstrating massive failings as a workforce manager. Even if you guys ship the next product or two early, and keep the company afloat for a few more months, in time the moral effect, the exhaustion and all the rest will kick in and he'll be getting worse, not better, productivity. If he's really making those kinds of shortsighted decisions, and he's the owner, the company is going to sink one way or another anyway - it just might eek out a few more months at the expense of a bunch of burnt out programmers.

    My advice would be to use those seven extra hours in front of a PC to tidy up your resume and get it out there. You are going to be looking for a job soon enough, you might as well get the headstart.

    Ask yourself, how many dotcom tales of people agreeing to work without pay for a while; work long hours; all the rest of it, you've heard. Now, how many of those companies actually survived by doing that? Next to none?

    1. Re:Spend The Time Wisely by gwernol · · Score: 5, Interesting

      Ask yourself, how many dotcom tales of people agreeing to work without pay for a while; work long hours; all the rest of it, you've heard. Now, how many of those companies actually survived by doing that? Next to none?

      Of the dotcoms, practically none, but then none of the dotcoms that didn't work that waysurvived either. Conversely, look at the older Silicon Valley companies that did make it. How many of those were born from huge efforts by their staff? Apple. Cisco. Palm. Intel. HP. Sun. The list goes on; all companies that were and/or still are legendary for the long hours they expected of their employees.

      This doesn't prove that long hours are a good thing, but there are at least counter-examples to the claim that this approach never works out.

      --
      Sailing over the event horizon
    2. Re:Spend The Time Wisely by Stephen+Samuel · · Score: 4, Insightful
      Apple, CIsco, Palm, etc, worked their employees long hours, but it was long pampered hours. -- and most of those employees had stock options which meant that they shared in the profits that came from those long hours.

      This guy looks like he's walking into a sweatshop environment.. Long hours, little recognition, bad project planning.....

      It's the bad project planning that really gets to me. It's the expecting the employees to be slaves and happy about it. It's the sinking ship, and you better find a raft now feeling to this whole scenario that has me wanting to scream.

      • Get you resume out there NOW!
      Either everybody burns out before the project's finished, or they get fired after it's finished, or they're going to expect you to do it again with the next project.

      In either case, you'll be short a job, a life, or both.

      --
      Free Software: Like love, it grows best when given away.
  7. Get out while you can by EvilTwinSkippy · · Score: 5, Insightful
    Every project that goes down that path ends with the development team being laid off.

    Don't walk away from this situation, run.

    --
    "Learning is not compulsory... neither is survival."
    --Dr.W.Edwards Deming
  8. Who cares? by countach · · Score: 5, Insightful

    Who cares if working 15 hour days "works"? Sending kids down the coal mines "works" if your goal is to get coal, but you wouldn't be dumb enough to do it would you? Tell management to get stuffed.

  9. Get a life. by Bongo · · Score: 5, Insightful

    I wanted to ask the Slashdot community their opinions on how working long hours during the week and weekends affects the quality of the code they produce, and the overall success of the project.

    Forget about code quality. Forget success. Your life is too short.

    There's nothing wrong with having a modest carreer, and enjoying your work. But just be straight about one thing: when you are 60, you will in all likelyhood look back and see it as a waste.

    People who are happily married live longer. Having a relationship takes as much time as a full time job .

    You cannot have a relationship with your partner on 20 minutes a day of discussing the bills, the chores, or over a sandwich. It's a full time commitment. It takes spending quality time together, and not just quality, but quantity also.

    Wanna have children? You think they're going to turn out great if you're never there to be there for them? You want them to feel loved, and nourished, and mentored? Then you have to be there. Not at work, not on business trips, not at the mall. But there, with them.

    You want your parents to feel loved by their children (ie. you) when they grow old, and you're all they've got? Then you have to spend time with them.

    Time is all we have. And all we really have, that really counts, is each other.

    Geeks are probably the last people to get this, but if you really knew that a truck was going to hit you tomorrow, you would find that your real desire would be to spend the time with those who are close to you. Your job, money, and gizmos are meaningless by comparison.

    Work, and prosper. Don't be a slave. Have balance. Be sweet to each other. Don't let some stupid and misguided manager tell you that you have to kill yourself to "succeed". Success is measured in happiness, not paycheck or accomplishments.

    If you have the talent to work on class projects, then fine. If you don't, then just let it go. You can still be happy. Truly happy. Just open your eyes and see that life is more than a resume. You have the capacity to love and you can learn to use it to create happiness.

    Be true to yourself.

  10. Next Policy To Be Implemented by ryanisflyboy · · Score: 4, Funny

    "We've had you guys slaving away 15 hours a day and the amount of time squashing bugs has increased 200%. You're just not working hard enough. As of today we will require all programmers to move into the office so that you can work without wasting valuable time commuting. Cots will not be allowed inside the cubes so you will need to bring your own sleeping bags and pillows. You will be allowed 5 hours of sleep every 15 hours only if your code is 99% bug free. Visiting slashdot is off limits, and any programmer attempting to do so will be forced to write documentation for 36 hours straight. Those of you who are married will need to sign the divorce papers by next Tuesday to retain employment with the company. That is all."

  11. Re:I am not owned by a company. by evilpenguin · · Score: 4, Insightful

    If you worked in programming or engineering in the 1980's, you are conditioned to fear for your job. There was a long drought in these fields in the 1980's because massive downsizing by the "big, stable" companies threw thousands of competent professionals on the market at one time. If you are younger than this, you are used to a job market so hot that you can just walk into another job. With the economic slowdown of the last two years or so (the dot com bust, followed by the post 9/11 uncertainty) I'm not sure what the market is like. Clearly, if employers are feeling willing to demand this, they must think the market is tighter than it has been.

    If I were in a more cynical mood, I would suggest that you contact a lawyer and see if "balls to the wall" was evidence of a sexually hostile workplace.

    Personally, I think software development management is of generally poor quality. This is due to a combination of management ignorance, poor engineering practice, the intangible nature of the product (its much easier to explain sensibly why designing, tooling up for, and manufacturing a widget takes a long time), and underestimation by the rank and file developer. If I had the magic bullet for this problem, I would not still be a mortgage-holding software developer, I would be a very highly paid consultant and regular pundit quoted in the trade rags.

    I'd walk out the door too, if I knew I could.

    Tip for the youngsters: Buy less house than you want. Have six months salary in the bank at all times. Then you can storm out in high dudgeon like antis0c suggests...

  12. 2 opinions: Steve McConnell and Philip Greenspun by Lumpish+Scholar · · Score: 5, Interesting

    Chapter (cached) from Steve McConnell's book, Rapid Development

    "Chapter 43: Voluntary Overtime: Too much overtime and schedule pressure can damage a development schedule, but a little overtime can increase the amount of work accomplished each week and improve motivation. An extra four to eight hours a week increases output by 10 to 20 percent or more. A light-handed request to work a little overtime emphasizes that a project is important. Developers, like other people, want to feel important, and they work harder when they do."

    "Use a developer-pull approach rather than a leader-push approach.... Gerald Weinberg points out that one of the best known results of motivation research is that increasing the driving force first increases performance to a maximum, and then drives it to zero (Weinberg 1971). He says that the rapid fall-off in performance is especially observable in complex tasks like software development: 'Pressing the programmer for rapid elimination of a bug may turn out to be the worst possible strategy-but it is by far the most common.'"

    "Don't use overtime to try to bring a project under control.... Ask for an amount of overtime that you can actually get.... Beware of too much overtime, regardless of the reason."

    Slashdot discussion of [Philip] "Greenspun on Managing Software Engineers"

    The original is lost, but I squirrelled away some choice quotes:

    "From a business point of view, long hours by programmers are a key to profitability. A programmer probably needs to spend 25 hours per week getting coordinated with other programmers and comprehending the structures of the systems being extended. Thus a programmer who works 55 hours per week is twice as productive as one who works 40 hours per week.... A product is going to get out the door much faster if it is built by 4 people working 70-hour weeks (180 productive programmer-hours per week, after subtracting for 25 hours of coordination and structure comprehension time) than if by 12 people working 40-hour weeks (the same net of 180 hours per week)...."

    "If you see one of your best people walking out the door at 6:00 pm, try to think why you haven't challenged that person with an interesting project. If you see one of your average programmers walking out the door at 6:00 pm, recognize that this person is not developing into a good programmer...."

    Greenspun said the following in the Slashdot discussion:

    "Most of the people at ArsDigita are young. They have no families. They have no personal reputation. Find me a 35-year-old who has accomplished a lot IN ANY FIELD, who has changed the world in some positive way, and who has never worked long hours. The articles I put on my various Web sites are not intended to help people who just want to live a quiet comfortable life (I'm not an expert on this). They are intended to help young people turn into Linus Torvalds or Richard Stallman or Dan Bricklin and Bob Frankston (Visicalc)."

    "At ArsDigita we do tend to get fairly young people who are very bright. They want to do something that will impress their classmates from MIT or UCLA or Caltech or wherever. The key to successful management is to provide an inspiring goal that these guys and gals can buy into and then a working environment that lets them achieve the goal. It does result in some long hours but [at ArsDigita, at Greenspun's insistence] they have 5 weeks/year to recover. If they get sick of it they can always join a slacker company and work 40 hours/week."

    "Let me say that I did not intend "Managing Software Engineers" to be the last word on the subject.... I don't want to be remembered for advocating a long work week. There is a lot more to the article and I certainly wouldn't advocate long hours to anyone who didn't love his or her job and wasn't learning every day."

    (The banner ad for this page says, "Find a better job, NOW!" I tend to agree.)

    --
    Stupid job ads, weird spam, occasional insight at
  13. Re:Yup by Lemmy+Caution · · Score: 5, Informative
    8 hours was defined as a work day for a reason- it's the point of diminishing returns.

    No, eight hours was defined as a work day in the US because of the efforts of the labor movement, beginning the middle of the 19th century and, after a great deal of struggle, culminating in FDR's passage of the National Industrial Recovery Act, which was then struck down by the SCOTUS, and then partially replaced by the Wagner Act. The eight-hour work-day came at the expense of workers who were beatened, imprisoned, and killed trying to win it.

  14. Re:Hmm... by sphealey · · Score: 5, Interesting
    The nuclear power industry has done extensive studies on this subject. Tradition in the industry (partially the electric utility industry; partially coming from ex-Navy guys) was to work long shifts - 24 and 36 hour work days were not uncommon.

    The conclusion of the studies was that people become increasingly ineffective after 10 hours per day, and very ineffective after 12 hours per day. BUT - they don't realize it. If they are "motivated" they think they are doing fine at hour 16 or hour 20. Objective testing shows that they aren't.

    And similarly, anyone can work one or two 16 or even 24 hour days. But after a week of 16s, or ever 7 straight days of 12s, performance again drops significantly.

    But hey, since your project won't hurt anyone else if it melts down, go ahead and work those hours!

    sPh

  15. And added compensation? by Matey-O · · Score: 4, Insightful

    that $80,000 a year job at 40 hours a week is $40 bucks an hour. That sounds pretty good, right?

    Work _80_ hours a week and you're only making _$20_ an hour. You're getting robbed if you're really worth $40 per.

    --
    "Draco dormiens nunquam titillandus."
  16. Hows this? by emitseum · · Score: 5, Insightful

    I was working at company...we put in the long hours, some all nighters. My boss used to work 3 days in a row with no sleep. Now he is dead. Heart Attack. He was 38. He looked at least 50. Sort of puts things in perspective.

  17. Another Prediction: you will get fired ANYWAY by evocate · · Score: 4, Insightful

    Why does the owner need the development staff to work 15 hour days and weekends? I bet it's because the business plan or market position sucks and the owner is a stubborn brick who cannot accept his failures and shortcomings. He "needs" you to do the impossible because if you don't then his failure at business planning will be on display for all to see. Of course, he won't see that his stupid plan failed. He will see that his development staff failed him, and he will fire them in disgust. Do yourself a huge favor and find something better to do.

  18. Surprised no one has mentioned "Death March" by Samrobb · · Score: 4, Informative

    Death March: The Complete Software Developer's Guide to Surviving 'Mission Impossible' Projects by Ed Yourdon.

    Buy, borrow, or spend a few minutes in a bookstore reading the first 2-3 chapters, where Yourdon describes the four different type of death march projects, the prersonalities and politics surrounding them, and what your options are.

    What you'll read there will likely be the same sort of advice you're getting here. Yourdon's presentation is a bit clearer, though, and he raises a lot of good points about how to make a decision with regards to whether or not you'll buy into a death march project. The middle section of the book details how to survive on such a project if you do, indeed, decide you're going to take it on.

    At the end of the book is "Death March as a Way of Life." The long and the short of it is that these type of projects are increasingly common. If the project fails, then then it's your fault - you didn't work hard enough; the next batch of folks will no doubt be harder workers than you were. If you succeed, and ship on time, you'll just show management that death march projects work. Either way, you'll be in a job where every project requires increasingly superhuman efforts.

    Better to decide if you want to deal with that now, instead of trying to do so after a few years of insane workloads have destroyed your marriage, health, and/or mental faculties.

    --
    "Great men are not always wise: neither do the aged understand judgement." Job 32:9