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.

Expecting programmers to problem solve for 8 hours is stupid

123 pointsby sakealmost 6 years ago
I recently started a day job where I&#x27;m expected to work a normal 8 hour workday. No one is holding me accountable that I stick to that so it seems the requirement is more of a formality, but that&#x27;s besides the point.<p>As I&#x27;ve experienced trying to keep up this 8 hour work, I&#x27;ve come to realize that sticking to this old assembly line convention makes absolutely no sense for our field of work. On a good day I can work even 12h+, but usually my limit is somewhere around 4 and ½ hours. And after six hours I&#x27;m just burning myself out trying to force myself to focus. At 8 hours I can feel physical pain and it will take me whole evening to recover when I get off the clock.<p>It&#x27;s silly how many companies are still sticking to this old rule. Nobody wins when employees are wasting their time being inefficient. If the 8 hours workday is actually enforced, employees will just come up with coping mechanisms against the stress the overly stretched workday is causing them and they will end up loosing motivation.<p>Conservative improvement would be working 6h * 5 + 4h on Saturday (remotely), which would make employees more efficient, mentally healthy and that&#x27;s 6 hours less work time per week.

30 comments

AnimalMuppetalmost 6 years ago
My first software manager said that the most you can get out of people is five hours of real work a day. She also said that programmers need to learn to tell when the most productive thing they can do is go look out the window.
评论 #20366725 未加载
评论 #20364269 未加载
reggiebandalmost 6 years ago
Take some time out of problem solving and put it to other uses.<p>For example:<p>- document systems<p>- write tests<p>- improve automation (build systems, helper scripts, etc.)<p>- clean your desk<p>- talk to a coworker<p>- read &#x2F; watch material online related to your work<p>- go for a quick brisk walk<p>- any activity to further a long-term career plan<p>I know that feeling of short-term daily burnout. It is often I get to 4:30pm and I feel my concentration lagging. The trick is to give yourself permission to set aside the work you are doing. You can do this by finding some other activity that is useful other than facebook&#x2F;reddit.<p>As an engineering manager I use that time to shift focus from short term (e.g. a feature I am implementing) to long term (what kind of stuff do I want the team to focus on within the next 6 months).
评论 #20365204 未加载
评论 #20366379 未加载
6gvONxR4sf7oalmost 6 years ago
There&#x27;s a funny&#x2F;weird dynamic with this. We all need to appear like we work as much as everyone else appears to. Looks like your teammate puts in 9 hours per day? Well you do too. Otherwise you&#x27;ll look like a slacker, even though both of you get five or six hours of work done. If everyone did it, it&#x27;d be fine and you&#x27;d both get hours of time back to do anything else.<p>What&#x27;s weird is that this dynamic affects workplaces too. If you are in an org that actually lets people work great flexible hours you won&#x27;t advertise it too much, for fear of attracting workers whose primary goal is to slack, or getting a reputation an org of slackers. And if you&#x27;re a job hunter who cares about this, you can&#x27;t really dig in to asking about the hours everyone is expected to work for fear of being perceived as a slacker.<p>Nobody can be open about it (orgs or teammates or applicants) and thus the problem persists.
评论 #20366740 未加载
评论 #20370599 未加载
评论 #20373170 未加载
0xd171almost 6 years ago
You&#x27;re expected to be at work for ~8 hours, not to problem solve for that long. (Hopefully, if you&#x27;re at a half-decent company). You have email and chat to manage, stand-ups, other meetings and calls, coffee breaks, lunch. Most people can set up their day in a way that they can be productive without feeling like they need to be constantly 100% concentrated.
评论 #20363781 未加载
HissingMachinealmost 6 years ago
I&#x27;m a project manager and I am very relaxed about working hours and remote work. And it&#x27;s because I have been monitoring my own programming habits for years and came to a conclusion that it is as much a creative process as it is technical execution. Depending on the complexity of the problem at hand, one hour of programming (monitored with wakatime) usually includes two to three hours of reading documentation, going through source to hunt a bug or planning a feature you are implementing. So I usually set up the tasks as milestones, usually bugs that we have to crush or features we have to implement, usually we have a pretty good pace on projects and people seem to be way more productive than other places I have worked that had a stricter culture.<p>Now this is my first time as a project manager, but I have set things up the way I would want to work, and I have had positive feedback from my team and management. So I&#x27;m pretty pleased with how things are going, YMMV depending on how everything is set up so don&#x27;t take this as an advice.
sleepysysadminalmost 6 years ago
My last job, an msp, expected 100% of our time to be billed out. You didn&#x27;t get lunches or breaks.<p>If you got your work completed quicker so that you could hit the washroom or go for lunch, you were rewarded with more work.<p>Furthermore, I was on-call 24x7 and near daily would be called for help afterhours. This wasn&#x27;t smb stuff exclusively. This was federal governments, hospitals, prisons, fortune 100s. All of which who have fees for downtime around $10,000-15,000&#x2F;hour.<p>During my performance review, I got chewed out for have &gt;40 lates. I called bullshit on this. My boss pulled up our time accounting system and turns out all except 1 were weekends. I worked at least 1 day out of &gt;40 weekends in the previous year and I was being chewed out for it... seriously.<p>Then there was workplace politics; 2 other techs had been fighting for years prior to me even being hired. I had to regularly work with 1 of the techs and when he would rant about the other tech I&#x27;d just node and ignore the whole thing.<p>For whatever reason, the other guy took it as if i was on that guy&#x27;s team and he started harassing me. I basically ignored it; took about a year before it escalated. This guy came after me with everything. He&#x27;d take shit out of my office. He&#x27;d bad mouth me to my clients. I collected a list of wtf is going on.<p>Final straw, I had configured 2x ASA5506 for a remote location in Texas. Both firewalls were accessible on the network. He told the MSP owners that my configuration of the ASAs were so bad they needed to shutdown the facility and ship these ASAs back to Canada for him to redo. Mind you, this is my client not his and this is probably in around 200th pair of ASAs I&#x27;ve configured and these were configured identical to 4 other locations which are up and running.<p>So I send long email detailing the harassment by this guy toward me.<p>The next day I was fired.<p>Point of the story, things can be worse. Pull up your socks!
评论 #20365495 未加载
评论 #20365240 未加载
prependalmost 6 years ago
There are lots of different configurations supported by lots of companies. I’ve never worked in a company, in 25 years, that expected 8 hours of literal coding. There’s meetings, admin junk, training, etc.<p>But maybe the easiest would be to start your one person contracting company with either a high hourly rate that you can sell to clients who understand your productivity. Or you can bill by job and have clients not care about hours worked. This would let you work whatever you want.<p>I think the most common config I’ve seen for programmers is to work in 8x5 jobs that only require an hour or two of literal programming. And if lucky, have flexibility within that period to maybe have a few bursts of deep work and then slack time.
patatinoalmost 6 years ago
If I would run a dev company, this is how I would do it:<p>- no open office<p>- no meetings in the morning<p>- no phones in the morning<p>- no slack&#x2F;whatever in the morning<p>Try to create a window for devs where they can do some deep work for 3-4 hours. It doesn&#x27;t have to be in the morning, whatever works the best for each developer.
mindcrashalmost 6 years ago
You have a 8 hour workday. From those 8 hours you spend approximately 4 hours primarily on job output. The other 4 hours are spent on secondary things like reading&#x2F;replying to emails, coaching juniors, taking a rest (it is imperative to do so), socializing, reading Hacker News and so on.<p>Anyone up the chain expecting you to work 8 hours 100% productively is completely unrealistic and IMO provide a good reason to find job happiness somewhere else.<p>Best regards,<p>A product architect who doesn&#x27;t treat his devs as robots
评论 #20366042 未加载
hirundoalmost 6 years ago
Think of it like a quarterback actively playing for only 20 minutes per game. The rest of the time, planning, recovering, warming up, is also part of the job. You can&#x27;t average 8 hours per day encoding and decoding, but you can spend the rest of it bulldozing distractions, learning, and otherwise optimizing your flow states.
musicalealmost 6 years ago
Office environments (and perhaps most companies) tend to optimize for the appearance of work getting done rather than actually getting work done. As a result, most of the time spent in them causes stress without creating any benefit.<p>Moreover, forcing yourself to &quot;work&quot; when you are tired or simply done for the day also tends to create negative returns.<p>If your work requires sustained concentration, a typical office environment full of people (especially supervisors) and continuous interruptions from noise and other distractions is not the place to do it.
remiloufalmost 6 years ago
Back in my days as an academic I would follow the same pattern every day: start working early from 7 till 10, take a long walk to the lab have a couple informal meetings with colleague, have lunch. Work there for a couple hours (my « available hours », run some errands or see a friend for coffee and work another couple hours. I have never been as productive as I was back then.<p>I don’t think this schedule would work for everyone but the general idea was: intense work for a short periods of time, take some time to talk with colleagues and go through meetings and then work again, with long breaks in between. That way I could manage 8 hours of productivity without burning out. And yes, sometimes I would get in flow and work for 12 hours straight without eating. But those days were more the exception than the rule. The point is I could have roughly 8 hours <i>most days</i> working this way.<p>In companies I’ve worked with I’ve always felt babysitted, as though I was unable to discipline myself when not watched all the time by managers. The truth is we don’t all work in the same way, and we are all reasonably interested in our job—-and if we’re not, sitting all day in the office is not going to change that. So why don’t we make room for everyone’s pattern while keeping some team time every day?
AlexanderNullalmost 6 years ago
One thing I do is keep a relatively small cup at my desk. I drink a lot especially when thinking hard and whenever that cup runs out that&#x27;s my signal that it&#x27;s time to take a break, grab more water, walk around a bit, maybe stare out the window for a few moments. Highly demanding mental work isn&#x27;t something you should charge through nonstop, especially when there&#x27;s a creative requirement to it like there is in problem solving, you just won&#x27;t produce good solutions without allowing your brain to wander.<p>We also fought hard at work over the course of a year or two with management to change up how we account team capacity. It&#x27;s now a max of 6h expected work per day on project work. There&#x27;s simply not enough time for working any more in addition to all the various random emails, slack notifications, restroom breaks, and general cubicle chatter that&#x27;s part of regular office work.
username90almost 6 years ago
The maths behind long workdays is pretty simple, you have as you say around 4 hours of productive hours per day, so why do companies want you to spend 8 hours in the office? Because the more free time you have the likelier it is that you will spend those productive hours at home doing hobbies! Therefore the goal of long work hours is to prevent you from having a life which could get in the way of work.<p>Or from another angle, a person who voluntarily works 45 hour weeks likely spends most of his productive hours at the office. A person who do 35 hour weeks likely spends most of his productive hours at home. A person who is forced to work 80 hour weeks will definitely spend most of his productive hours at the office since he has no time left for anything else. It might hurt his overall productivity, but it at least guarantees that the company gets his all.
cm2012almost 6 years ago
I did a poll of HN a while back and the average HNer spends about 6 hours a day doing work of any sort (including meetings, etc.) Only 25% did more than 8 hours a day, and 25% did 4 or less. Seniority had no effect on time spent working.
评论 #20363938 未加载
评论 #20364033 未加载
SergeAxalmost 6 years ago
You are right: expecting software engineers to problem solve for 8 hours a day is counterproductive. As a software engineers&#x27; manager I expect my subordinates to problem solve 24 hours a day, including weekends and holidays.<p>This is not a fugure of speech, this is how creative mind works. When software engineer is banging crap out of the keyboard - it is not a problem solving, it is writing down a solution.<p>Before writing first line of code an engineer should have the whole structure imagined as a draft and a particular module&#x2F;section - as clear and real as if we can touch it.<p>Now, working hours is a matter of comminucation. The time when the software was written by individuals is over, today&#x27;s business-valued software is written by teams. To be a team, group of people should communicate. Most effective type of communication is face to face, next best thing is videoconferencing and it is about 3 times worse in terms of information shared and remembered. It&#x27;s a pity, but it is fact. So team of software engineers should meet face to face a lot, and this is why we are working in offices, have some mandatory hours (like 11 to 17), and have so many meeting rooms here :)<p>The last, but not least question is discipline. I&#x27;ve met people who can churn out problems&#x27; solutions at a constant rate regardless place, daytime and even climate and timezone. Those are rare brilliants. Most people left to themseves would beclome less productive, it is another sad fact. Office hours and teammates is a best known work motivation to date, order of magnitude better than hefty salary, stock options and money&#x2F;stock-bound KPIs.<p>Now to you, if you don&#x27;t mind. Thru my career I&#x27;ve met about dosen of engineers who asked for more relaxed hours and&#x2F;or (part-time) remote. It never worked out as a productive boost, just more pain for me to control and motivate those lads. Most of the time they were just plain tired and&#x2F;or unhappy, but thought it was something about they commute routine or office aura. It was always symptom, not a cause.<p>I believe you are just tired and&#x2F;or unhappy too. We are living in times when being a skilled software engineer means ability to choose company, product, location and team to be bouncy sparkling ball of ideas every morning. If you are not this ball, ask yourself - why?
nao360almost 6 years ago
&gt; On a good day I can work even 12h+<p>I&#x27;d wager that your _good days_ are often preceded by a good night&#x27;s sleep, if not good eating habits and exercise. For over a decade I believed that I couldn&#x27;t muster more than about 4 hours of focused, creative productivity in any given day. I&#x27;d try to plan all of the most demanding work in the first hours of the day, knowing that after lunch I would lose most of my motivation and focus. I was overweight, malnourished, and prone to all kinds of mental disorders (depression, anxiety, anger). At some point I finally had enough, and started on a journey that has brought me to the happiest, most productive years of my life.<p>Get good sleep every single day -- everybody&#x27;s a bit different in this regard, but there&#x27;s tons of information out there on how you can achieve this.<p>Eat well -- again, everybody&#x27;s a bit different, but for me this involves a low carb, high protein diet and intermittent fasting (no breakfast, and eat lunch and dinner within a 6 hour window). No junk food, soft drinks, sweets, etc. I find the trend among scrum masters bringing snacks, treats, cakes, etc., to meetings (planning, refinement, retros, etc.,) totally counter-productive!<p>Get some exercise -- if the local gym or sports club isn&#x27;t for you, get some kettle bells, or walk or cycle to work, etc. You don&#x27;t have to run 5k every day (or ever!), but you do need some robust exercise on a regular basis, even if it&#x27;s 5 minutes with a pair of kettle bells, particularly if most of your days are spent glued to a desk.<p>I would say address these issues first (if they apply to you), and then revisit your view on whether 8 hours of problem solving is feasible on a daily basis.
danny_tacoalmost 6 years ago
I often leave early or come late to work and my employer doesn&#x27;t care as long as I get the work done. As long as I&#x27;m there for meetings where I have to be there, everything is good. Perhaps you should talk with your employer about their expectations from you so you don&#x27;t feel like you have to be there for 8 hours from M-F.
codingdavealmost 6 years ago
Different companies and teams have different cultures, so while I agree that the standard 8 hour workday isn&#x27;t ideal for coding, and personally seek out teams that allow more flexibility... I also understand why some places do it.<p>That being said, if you are working yourself to exhaustion and burnout within those 8 hours, to the point of chronic pain... that is something wrong the way you are managing you work, your time, and your stressors. Many comments already in this thread are terrific in the details of this, and how you can adjust. But this also sounds like a medical issue. I&#x27;d get yourself to a doctor, and get some bloodwork done. You may have something as simple as vitamin deficiencies (probably due to how hard you are pushing yourself), so identifying them, adjusting your diet, and taking some supplements could help you. Go take care of yourself, and work will fall into place.
rossdavidhalmost 6 years ago
I probably do literal coding only about half my work hours. Even if I&#x27;m at a place where there&#x27;s not many meetings or other bureaucratic time, there are other things like general planning, organization, documentation, working on architectural strategy, investigating potential new tools, etc.<p>What I have learned to do is to keep a list of these kinds of things, that have to be done &quot;soon&quot; but not immediately. When I get to the part of the day where my coding brain is getting weak, I switch over to that list. Sometimes for the rest of the day, but often just for half an hour or so until I am refreshed. Mostly, if you self-monitor, and have a ready list so you don&#x27;t find your brain blanks out when it&#x27;s time to think of a non-coding task that needs doing, you can balance coding and non-coding as needed throughout the day.
dangrossmanalmost 6 years ago
&gt; loosing motivation<p>Did some textbook publisher take &quot;losing&quot; out of all their spelling books 15 years ago? I see it misspelled more often than spelled correctly these days.
评论 #20371837 未加载
评论 #20371753 未加载
neuroticfishalmost 6 years ago
&gt; 6h * 5 + 4h on Saturday (remotely)<p>No thanks. I&#x27;ll take my 8h * 5 and two entire days off. I agree that expecting 8 hours of productivity a day is silly but I think it&#x27;s even sillier to expect me to have only one contiguous 24 hour period away from work per week and not experience burnout. Ideally the employer should set product quality standards and let us determine how to apply our weekly productivity in order to meet schedule.
boyadjianalmost 6 years ago
I totally agree. In my job, we work 37h30 a week, and have supplementary holidays. So it makes a day lasting 8h30, including one hour pause at midday. For me, concentrating during 7h30 is impossible, usually, after 6h of work, I am completely saturated. Same thing for me, takes the whole evening to cool down before sleep. For me, a programmer should work 6h30 a day, that would be a good starting point.
vpEfljFLalmost 6 years ago
We have 8h workdays and it seems ok for general public, especially for large companies where you can do only meetings all day without contributing anything despite your butt in a seat.<p>Nothing pushing govs to lower the working time, so deal with it. For me writing code more than 4-5h in a day is considered as a success today but when I have meetings it becomes a hard goal to achieve.
pcunitealmost 6 years ago
Boreout Syndrom<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boreout" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boreout</a>
ineedasernamealmost 6 years ago
I don&#x27;t think I&#x27;ve ever heard this type of complaint before. In my case, and I&#x27;d wager a significant chunk of this community, doesn&#x27;t have too much of a problem putting in an 8 hour day. Sure, distractions arise sometimes, sometimes it&#x27;s harder to focus, but overall it seems like you are describing your own limitations, not those of a majority.
评论 #20363458 未加载
评论 #20363334 未加载
CawCawCawalmost 6 years ago
Is that why programmers are also obligated to write emails and sit in meetings?
w_t_paynealmost 6 years ago
8 hours only?
QuickToBanalmost 6 years ago
If you want to work only 34 hours, expect to proportionately get only 85% of your salary. And definitely don&#x27;t expect others to work Saturdays. Don&#x27;t contact your coworkers over the weekends either.
评论 #20373230 未加载
BurningFrogalmost 6 years ago
Coding shouldn&#x27;t require extreme focus.<p>If it does, it&#x27;s probably because your code base is an unstructured mess that can&#x27;t be worked on without superhuman effort.<p>Many programmers have never spent time in a well factored code base and don&#x27;t know how to write one, so this might just sound strange to them.
评论 #20364013 未加载