News for hackers. Stuff that matters.
Re:Ask HN: Are most of us developers lying about how much wo... by i_dont_know_ on Thursday December 16, 2021 @01:04PM (#29581475)
I think there's also something to be said for passive processing.

Sometimes I'll know I need to write some code or some function and I'll just think about it in the back of my head while doing other things, sometimes for a whole day or two. Then I'll sit down and write it in like 20-30 minutes. Did I work 20-30 minutes, or have I been working for a day or two? I would say a day or two, and the 20-30 minutes was the time needed to produce the deliverable of that work.

Re:Ask HN: Are most of us developers lying about how much wo... by what_is_orcas on Thursday December 16, 2021 @01:18PM (#29581692)
> Did I work 20-30 minutes, or have I been working for a day or two? I would say a day or two, and the 20-30 minutes was the time needed to produce the deliverable of that work.

I would say that I do this too. There's a lot of stuff I can more or less do on autopilot and stuff that requires actual attention and finesse, for lack of a better word. I feel like management thinks that I'm good at my job for all of the autopilot stuff that I can crank out, and that makes up for the time I spend implementing one of the more interesting bits.

I think one of the ways that remote work changes this is that I can do other things while I think through a tricky problem; I can do dishes or walk my dog or something instead of trying to look busy in a room with 6-12 other people who are furiously typing because that's how the manager and project manager understand that work gets done.

Re:Ask HN: Are most of us developers lying about how much wo... by derekp7 on Thursday December 16, 2021 @10:58PM (#29587545)
The way I explained it to my boss, is to give him a list of numbers to add up in his head and come up with a total. He looked at the list for a couple minutes, then gave me the answer (I framed the whole thing as a riddle). I then looked at him and said it looked like he wasn't working on the problem for the last couple minutes. He replied that he was thinking during that time. My reply back is "That is what I have to do the majority of the time on my projects, is think about it then spend a relatively short amount of time spitting out the answer. The problem is I also have to look busy while I'm doing it". He then saw the light.
Re:Ask HN: Are most of us developers lying about how much wo... by i2shar on Friday December 17, 2021 @04:02AM (#29589656)
If you have to explain that to your boss, you are working for the wrong person. We are in a creative field, he shouldn't have to be explained this.
Re:Ask HN: Are most of us developers lying about how much wo... by necovek on Friday December 17, 2021 @04:42AM (#29589963)
As long as they are willing to learn, I think that's fine.

I like to make parallels with sports: when I am on the court, I am so much dumber about what's going on. Suddenly, when I am on the sidelines, I can see patterns, strengths and weaknesses for each team and so forth. It's not that I was dumb while on the court, it's just that your brain is in a different mode of operation (focusing on your own performance in this particular case).

Re:Ask HN: Are most of us developers lying about how much wo... by bogeholm on Friday December 17, 2021 @08:57AM (#29592144)
Sounds like you asked “how would Jesus explain this to my boss” and got an answer
Re:Ask HN: Are most of us developers lying about how much wo... by galoisscobi on Saturday December 18, 2021 @09:59AM (#29604917)
This is great! Wish our senior director would understand this. The man loves the idea of butts in seats for long hours and can’t wait to have us back in the distraction riddled office.
Re:Ask HN: Are most of us developers lying about how much wo... by Freak_NL on Thursday December 16, 2021 @01:58PM (#29582275)
Or just go and have a shower in the afternoon. It's the best remedy to an afternoon dip I know and one of the major benefits of working from home. It's a great place to solve problems before getting down to coding.

Doing the dishes is indeed a good one too.

Re:Ask HN: Are most of us developers lying about how much wo... by giantrobot on Thursday December 16, 2021 @03:19PM (#29583337)
Doing the dishes or other chores doesn't work for me at all but showers are great. When I was at Apple one of the few unalloyed good aspects of the spaceship campus were every section had showers available.

I'd take a brisk walk around the spaceship and then hit a shower. It was a great way for me to avoid an afternoon slump and let me do a lot of background processing in relative peace.

Re:Ask HN: Are most of us developers lying about how much wo... by dixie_land on Thursday December 16, 2021 @09:06PM (#29586862)
I root caused so many hard to debug issues in the shower! Including some obscure bug in Darwin kernel implemented in assembly. Not that I take my laptop to the shower but exactly like the parent thread mentioned, the problem is still background processing in your head.
Re:Ask HN: Are most of us developers lying about how much wo... by some_chap on Friday December 17, 2021 @04:09AM (#29589715)
Sounds like we should ban you from the shower, then.

(Amusing to see “root caused” == “diagnosed” and != “caused”.)

Re:Ask HN: Are most of us developers lying about how much wo... by bogeholm on Friday December 17, 2021 @09:00AM (#29592198)
As a non-native English speaker, on of my favorite things about English is that you can (ab)use just about any noun as a verb and make it sound natural
Re:Ask HN: Are most of us developers lying about how much wo... by ckaygusu on Thursday December 16, 2021 @01:19PM (#29581700)
https://en.m.wikipedia.org/wiki/Henri_Poincar%C3%A9

> He never spent a long time on a problem since he believed that the subconscious would continue working on the problem while he consciously worked on another problem.

This is definitely a thing. Intellectual labor just isn't physical labor.

Re:Ask HN: Are most of us developers lying about how much wo... by bandyaboot on Thursday December 16, 2021 @08:58PM (#29586823)
I can’t even count the number of times that I’ve had to give up on a problem after banging away at it for an afternoon only to solve it in 20 mins the next morning. Almost never fails.
Re:Ask HN: Are most of us developers lying about how much wo... by zachthewf on Thursday December 16, 2021 @10:42PM (#29587434)
Taking a break and going for a run sometimes does this for me as well.
Re:Ask HN: Are most of us developers lying about how much wo... by loup-vaillant on Friday December 17, 2021 @04:11AM (#29589725)
However, banging away at a problem for an afternoon is often needed for the solution to magically pop into our head next morning. The break helps, but so does the work itself.
Re:Ask HN: Are most of us developers lying about how much wo... by jonwinstanley on Friday December 17, 2021 @07:16AM (#29591171)
Yes. Often need to rule out a series of initial ideas first.
Re:Ask HN: Are most of us developers lying about how much wo... by cutemonster on Friday December 17, 2021 @05:11PM (#29598986)
Yes, and that can really feel like getting nothing done :-)

Or just spending time reading about the topic

Re:Ask HN: Are most of us developers lying about how much wo... by oceanghost on Thursday December 16, 2021 @01:46PM (#29582115)
Most of the best ideas I've had in my career were in the shower before work.

The problem is making that a regular occurrence.

Re:Ask HN: Are most of us developers lying about how much wo... by gampleman on Thursday December 16, 2021 @03:01PM (#29583140)
I use to think that they should pay me 1/4 of my hourly rate at work because I could get quite distracted and work quite ineffectually, 3/4 for each hour slept as that is where most of the processing happened, and a 10x bonus for the morning shower where all the hard problems of work would be solved in instantaneous heureka moments.
Re:Ask HN: Are most of us developers lying about how much wo... by dunefox on Thursday December 16, 2021 @02:19PM (#29582543)
> The problem is making that a regular occurrence.

Ideally you shower every two days or so.

Re:Ask HN: Are most of us developers lying about how much wo... by arcastroe on Friday December 17, 2021 @01:53AM (#29588806)
Reminds me of a phrase (joke?) I heard in Spanish.

> "I shower once a month, whether I even need it or not"

joke being that one clearly needs it after a month.

Re:Ask HN: Are most of us developers lying about how much wo... by fernandotakai on Thursday December 16, 2021 @08:38PM (#29586662)
i shower twice a day -- between gym, walking my dog, living (south america is HOT), it's either shower once a day, or you start feeling like shit.,
Re:Ask HN: Are most of us developers lying about how much wo... by oceanghost on Saturday December 18, 2021 @02:32AM (#29602563)
I suppose I walked into that one.
Re:Ask HN: Are most of us developers lying about how much wo... by fernandotakai on Thursday December 16, 2021 @01:54PM (#29582210)
ha! my wife once asked why i was speaking english while showering.

i told her that 1. i can only think in english when thinking about work and 2. saying stuff out loud helps me organize my thoughts and this is specially easy while showering because i don't really have to concentrate.

Re:Ask HN: Are most of us developers lying about how much wo... by meigwilym on Friday December 17, 2021 @04:38AM (#29589926)
Interesting! What is your first language? Do you speak any others? Was learning English a natural part of growing up, or was it formally taught to you?
Re:Ask HN: Are most of us developers lying about how much wo... by viceroyalbean on Friday December 17, 2021 @09:35AM (#29592688)
I do the exact same thing, though my internal monologue is like 95% English (not a native speaker). I talk to myself out loud when thinking, but my wife thinks it's weird so I only do it when alone.
Re:Ask HN: Are most of us developers lying about how much wo... by bncy on Friday December 17, 2021 @07:11AM (#29591126)
Same here, I do that even when coding, helps me with processing stuff in real time.
Re:Ask HN: Are most of us developers lying about how much wo... by a9h74j on Thursday December 16, 2021 @08:42PM (#29586693)
The new WFS trend -- Work From Shower.
Re:Ask HN: Are most of us developers lying about how much wo... by konfusinomicon on Friday December 17, 2021 @08:28AM (#29591787)
could make for some awkward zoom meetings
Re:Ask HN: Are most of us developers lying about how much wo... by vl on Thursday December 16, 2021 @09:22PM (#29586946)
There is even a story in one of the productivity books about how one of the most productive employees requested shower to be installed in his office since he was most productive in the shower.
Re:Ask HN: Are most of us developers lying about how much wo... by RonaldOlzheim on Monday December 20, 2021 @10:12AM (#29625753)
But which book? Could confirm my method.
Re:Ask HN: Are most of us developers lying about how much wo... by dx034 on Friday December 17, 2021 @05:21AM (#29590247)
That's why I like going for a run or cycling at lunch time. It always helps me to process ideas. And doing it after work means I'll get that great idea in the evening when I don't want to work for the company anymore. I believe doing sports at lunch time helps the company at least as much as it helps me.
Re:Ask HN: Are most of us developers lying about how much wo... by hindsightbias on Thursday December 16, 2021 @10:55PM (#29587532)
Steve Jobs had a theory that hot water on the blood vessels in the back of the neck increased blood flow to the brain.
Re:Ask HN: Are most of us developers lying about how much wo... by dx034 on Friday December 17, 2021 @05:22AM (#29590256)
Not saying that this is wrong, but he also had some dangerous theories on how to treat cancer. Just because he was good at many things doesn't mean we should see him as an expert in medicine or biology.
Re:Ask HN: Are most of us developers lying about how much wo... by jraby3 on Friday December 17, 2021 @04:57AM (#29590061)
Walking also increases blood flow to the brain and is amazing for problem solving (in case you don’t have access to a shower while at work).
Re:Ask HN: Are most of us developers lying about how much wo... by Imagenuity on Friday December 17, 2021 @01:04AM (#29588461)
Interesting. Tried to search for a source for that theory, but couldn't find anything.
Re:Ask HN: Are most of us developers lying about how much wo... by hindsightbias on Friday December 17, 2021 @11:43AM (#29594612)
He personally related that to a group of us after a NextWorld keynote when someone asked him where he got a particular idea.
Re:Ask HN: Are most of us developers lying about how much wo... by sq_ on Thursday December 16, 2021 @01:50PM (#29582169)
For me it's often in the shower after work. Which is a pain because then I've gotta remember them until I get out and then find a way to remember them until the next day.
Re:Ask HN: Are most of us developers lying about how much wo... by fshbbdssbbgdd on Thursday December 16, 2021 @09:50PM (#29587096)
I got a good tip for this once: throw the shampoo bottle out of the shower onto the floor. It’s ideal for remembering when you need to buy more shampoo, but if the shampoo isn’t empty, it will remind you that there’s something you need reminding of.
Re:Ask HN: Are most of us developers lying about how much wo... by xapata on Thursday December 16, 2021 @02:32PM (#29582705)
A speech to text device in the bathroom helps. Sometimes I worry I'll forget by the time I'm done showering.
Re:Ask HN: Are most of us developers lying about how much wo... by dorgo on Thursday December 16, 2021 @02:32PM (#29582713)
sometimes I wake up and know the solution.
Re:Ask HN: Are most of us developers lying about how much wo... by greenhatman on Friday December 17, 2021 @05:42AM (#29590432)
But it only happens after spending a lot of time on a problem. You can also swap showering for walking.
Re:Ask HN: Are most of us developers lying about how much wo... by jonchurch_ on Thursday December 16, 2021 @04:43PM (#29584370)
Interestingly, that point is listed in the wiki article under his "shortcomings". (According to Édouard Toulouse, his contemporary and a psychologist who wrote a book about Poincaré)
Re:Ask HN: Are most of us developers lying about how much wo... by mattowen_uk on Thursday December 16, 2021 @02:07PM (#29582387)
Adding my voice to this one. I think a lot of work 'normal people' i.e. the PMs the non-technical management, the sales people etc. really don't get how we techies work. Because they have to do 'active' work all day long to keep on top, they think everyone is like that, where in reality we are really efficient in short bursts. I can ponder a deliverable for days and then just churn it out over a few hours, only taking breaks for coffee intake/discharge. The normals keep asking me 'how far have you got with X' during the whole period, and they don't seem like it when I say 'I'm thinking about it, but I've not done anything yet'.
Re:Ask HN: Are most of us developers lying about how much wo... by vkk8 on Thursday December 16, 2021 @04:08PM (#29583941)
And, ironically, much of the work that the "normies" do is something tech guys could to hundred times faster. It's stuff like manually copy-pasting numbers from a crappy proprietary software A to a crappy proprietary software B or entering numbers from some system to Excel while it could be done by just directly pulling the numbers from the database the system uses.

Seriously, modern work is all about knowing what to do and how to do it rather than putting in a large number of hours executing a straightforward task.

Re:Ask HN: Are most of us developers lying about how much wo... by exikyut on Thursday December 16, 2021 @11:19PM (#29587699)
Hmmmmm, this is actually kind of interesting - perhaps that "continuous grind through criminally unoptimized UI" type of work is what actually constructs the "this is how you use a computer" mindset that these people have - because it's all they know.

Developers are always about optimization and automation and tweaking and refinement, and their tools reflect this constant pursuit of efficiency that constantly transcends and questions how a job is expressed (UI, mental modeling) and completed.

No other industry - ironically including technical management roles (maybe even especially so?) - seems to have this sort of focus.

I even hesitantly wonder if the biggest similarity I've ever seen is with accessibility type setups with screen readers and whatnot. (Ha, that says a lot about the fundamental impedance mismatch of developer tooling!)

Re:Ask HN: Are most of us developers lying about how much wo... by Matumio on Friday December 17, 2021 @03:34AM (#29589487)
Or maybe if you have to painstakingly copy those finance numbers and hour reports, you will be thinking about them more. You look busy enough to qualify as working, giving you time to actually think.

All the time tracking tools I've ever used (at software companies!) had a bad UI. Sometimes we even have to track the same hours into two different tools. Can't we automate time-tracking away? My explanation is that this is the result of cultural evolution. Companies that make people think twice about their time and spendings are more successful. People will copy whatever successful companies are doing.

Re:Ask HN: Are most of us developers lying about how much wo... by exikyut on Saturday December 18, 2021 @08:31AM (#29604349)
> You look busy enough to qualify as working, giving you time to actually think.

This is so messed up - and yet so interesting as a direct result of that.

I've only ever considered the idea of "looking busy" in the sense of whether or not someone is trying to optimize for shirking actual mental engagement.

I never thought of how doing that can actually make room to think. But that's so logically obvious once you mush the two ideas together!

I say this is messed up because I can totally see this being both necessary and helpful in certain situations. Wow.

Re:Ask HN: Are most of us developers lying about how much wo... by necovek on Friday December 17, 2021 @04:56AM (#29590057)
I can never do tedious work quickly. As soon as I notice work that should be automated, I start cursing at the developer of the tool I am using for not offering an easy interface for me to plug into and just automate it, instead of having to rewrite the whole thing from scratch if I want to have it automated (and that's usually too time consuming, so I don't do it). So I'd be constantly unhappy doing it, which is a recipe for avoiding it, ergo being slow at it.

That's why I am a huge fan of free software (and I've spent years on it too).

Re:Ask HN: Are most of us developers lying about how much wo... by RonaldOlzheim on Tuesday December 21, 2021 @03:50AM (#29635390)
Hello Necovek, I would like to connect with you on linkedin because I also understand and see this problem

This link shows a touchline between using api and not using api https://www.swyx.io/api-economy/

But how can we build some tool for telling product managers that they should fix there automating proces?

Re:Ask HN: Are most of us developers lying about how much wo... by swyx on Tuesday December 21, 2021 @10:44PM (#29645395)
thanks for the rec!
Re:Ask HN: Are most of us developers lying about how much wo... by 3a2d29 on Thursday December 16, 2021 @10:06PM (#29587195)
As someone who switched majors and became programmer, I experienced a great example of this when I first started programming.

Starting out, if I spent a whole day thinking over a problem or writing code that I ultimately had to scrap, I would tell people I got nothing done that day and it was a waste.

Now if I do that, I see if as the necessary troubleshooting that all must go through to solve the problem.

Re:Ask HN: Are most of us developers lying about how much wo... by dsego on Friday December 17, 2021 @05:22AM (#29590258)
Thinking over a problem is valid work. The feedback is usually to timebox it or get someone 1:1 to help out if it feels like wasting time. Maybe something wasn't well defined or planned, otherwise it's no updates, no blockers.
Re:Ask HN: Are most of us developers lying about how much wo... by odonnellryan on Thursday December 16, 2021 @08:20PM (#29586498)
The normals?

Come on guys. Plenty of software devs are actually working during the day.

What are you guys doing if you're not working? Reading articles? Playing Halo?

Re:Ask HN: Are most of us developers lying about how much wo... by viceroyalbean on Thursday December 16, 2021 @09:46PM (#29587072)
I didn't interpret the comment to be about not working, but rather about the non-linear nature of programming work. If you have 100 documents to process then you are halfway through after 50 and it will presumably take a similar amount of time as the first 50 did.

When writing code you might have written 10 lines of code in the past week, but the next day you write 200 because you've been thinking about the structure of the solution. In this way you might be working even if you're going on a walk or doing the dishes.

This isn't unique to programming, of course.

Re:Ask HN: Are most of us developers lying about how much wo... by abootstrapper on Thursday December 16, 2021 @10:39PM (#29587402)
If you really have a breakthrough you rewrite that 200 lines of code from last week to 10.
Re:Ask HN: Are most of us developers lying about how much wo... by rramadass on Thursday December 16, 2021 @10:21PM (#29587283)
>about the non-linear nature of programming work

You hit the nail right on the head.

This is the main thing that non-programmers (i.e. Management) need to understand about "Programmers" and the key to "Manage" them effectively.

Re:Ask HN: Are most of us developers lying about how much wo... by mihaigalos on Friday December 17, 2021 @02:48AM (#29589144)
Steve Jobs had an opinion on this with which I agree:

> The greatest people are self-managing -- they don't need to be managed. Once they know what to do, they'll go figure out how to do it. What they need is a common vision. And that's what leadership is: having a vision; being able to articulate that so the people around you can understand it; and getting a consensus on a common vision.

Re:Ask HN: Are most of us developers lying about how much wo... by rramadass on Friday December 17, 2021 @03:35AM (#29589490)
Good quote.

Related quote from Scott McNealy : "Agree and commit, Disagree and commit, or get out of the way."

Too many times Management/Leadership devolves into giving orders without having a clue. It then becomes nothing more than a power trip to the detriment of everything and everybody.

All "Good" people just need Autonomy, Vision, Freedom and stellar Results will auto-magically follow.

Re:Ask HN: Are most of us developers lying about how much wo... by odonnellryan on Thursday December 23, 2021 @06:02PM (#29667548)
Agreed. I probably think about the problems I am trying to solve during most of the day. However, I don't think that is really work. That is just my brain not being able to shut off. And it isn't concentrated work - it is off and on.
Re:Ask HN: Are most of us developers lying about how much wo... by MaxDPS on Thursday December 16, 2021 @09:55PM (#29587130)
I mean ya, reading articles and documentation is a higher part of the job. But I’m this context, it’s not actively writing code.
Re:Ask HN: Are most of us developers lying about how much wo... by odonnellryan on Thursday December 23, 2021 @06:03PM (#29667574)
Oh yeah totally. By articles I meant not work related stuff (like HN posts or something).
Re:Ask HN: Are most of us developers lying about how much wo... by theshrike79 on Friday December 17, 2021 @02:07AM (#29588897)
The other disconnect is that they can do their work in 30-60 minute bursts (meetings).

We cannot. Some things require multiple hours of uninterrupted concentration and if my calendar looks like someone fired a shotgun filled with 30 minute meetings at it, I can't achieve that.

Re:Ask HN: Are most of us developers lying about how much wo... by arthur_sav on Friday December 17, 2021 @05:55AM (#29590525)
At my previous company, Monday was filled with meetings with 40-60min of spare time in between.

I mostly did small bug fixes or read articles because there was no way to do anything productive. I need the mental space to properly plan and execute.

Re:Ask HN: Are most of us developers lying about how much wo... by icedchai on Friday December 17, 2021 @11:29AM (#29594393)
I sometimes feel like I'm trying to squeeze "real work" in between meetings and other interruptions. It's almost absurd.
Re:Ask HN: Are most of us developers lying about how much wo... by MidnightRaver on Thursday December 30, 2021 @07:06PM (#29743202)
I've done tons of work during meetings. Only need to listen like 4% of the time.
Re:Ask HN: Are most of us developers lying about how much wo... by pkrznaric on Friday December 17, 2021 @12:11PM (#29595055)
This is a weird take, but as a junior developer, I find I'm more productive on the days with meetings because I'm 'forced' to squeeze in the 'real work' rather than just being scared.
Re:Ask HN: Are most of us developers lying about how much wo... by geekbird on Thursday December 16, 2021 @01:43PM (#29582061)
This.

I will backburner a ticket for days, then when what I need to do comes together I will sit down and bang it out in an hour.

It's to the point that I will deliberately review a ticket and code segment every day, even if I'm not actively working it, just to have the pieces come together in my mind and crank out the ticket.

This method is not very scrum friendly, because in truth I'm actually brain-working all of my tickets at the same time, but I haven't shifted any electrons, just neurons.

Sometimes, when I hit a sticking point, I go do something completely different - like read Hacker News - in order to push stuff into what I call "background processing" in my subconscious.

Re:Ask HN: Are most of us developers lying about how much wo... by jjav on Thursday December 16, 2021 @05:06PM (#29584652)
> This method is not very scrum friendly, because in truth I'm actually brain-working all of my tickets at the same time, but I haven't shifted any electrons, just neurons.

This really highlights why I hate agile so much. Intellectual work doesn't lead itself to reporting status on completed tickets every single day.

Re:Ask HN: Are most of us developers lying about how much wo... by wonderwonder on Thursday December 16, 2021 @08:24PM (#29586540)
I absolutely hate having to do a daily stand up. I'll have my tickets done by the end of sprint, just not before that though.
Re:Ask HN: Are most of us developers lying about how much wo... by viceroyalbean on Friday December 17, 2021 @12:23AM (#29588170)
I agree that there is that implicit pressure, but really it should (as in the ideal case) be fine to just say "I've been thinking about A, B, and C" and leave it at that. That still gives you the room to say that issue C has blocker X etc if it needs to be resolved in the team.
Re:Ask HN: Are most of us developers lying about how much wo... by zoomablemind on Friday December 17, 2021 @01:40AM (#29588718)
> ...Intellectual work doesn't lead itself to reporting status on completed tickets every single day.

Status is WIP until completion. As for the intellectual work, that's just outright Analysis stage.

Most of dev's work is actually analysis. Sure, there's implementation, testing and such, but Analysis is almost non-stop.

Anonter way to put this is Evaluation of Alternatives, Optimization of Approaches.

Re:Ask HN: Are most of us developers lying about how much wo... by hotz on Thursday December 16, 2021 @05:24PM (#29584826)
I operate in exactly the same way. I wish more people would understand that process.
Re:Ask HN: Are most of us developers lying about how much wo... by flatiron on Thursday December 16, 2021 @05:39PM (#29584959)
Here I am thinking I’m the only one. Tossing and turning in the middle of the night for hours just to bang it out for 15 minutes the next day for everyone to go “oh that was easy” no it wasn’t!
Re:Ask HN: Are most of us developers lying about how much wo... by mring33621 on Thursday December 16, 2021 @02:52PM (#29582996)
I almost got fired once for explaining this to my boss. He felt very strongly that each day of a 10 day project should mark 10% in progress. I told him that instead, you think about it, explore a few ideas, then suddenly you might be at 80%. But it's not linear.
Re:Ask HN: Are most of us developers lying about how much wo... by daltont on Thursday December 16, 2021 @03:37PM (#29583556)
Similar concept:

If one was tasked to move a 10-ton block, 1000 yards in 10 days. You can use brute force move it 100 yards a day for 10 days or spend 5 days inventing a way to move it 1000 yards in day and get it done in 6 days.

Re:Ask HN: Are most of us developers lying about how much wo... by a9h74j on Thursday December 16, 2021 @08:46PM (#29586729)
You might also be familiar with the Abraham Lincoln quote: If I had four hours to chop down a tree I would spend three hours sharpening the ax.
Re:Ask HN: Are most of us developers lying about how much wo... by smaddox on Thursday December 16, 2021 @09:56PM (#29587135)
I had not, but that's a wonderful quote. Thanks for sharing
Re:Ask HN: Are most of us developers lying about how much wo... by 2-718-281-828 on Thursday December 16, 2021 @03:36PM (#29583538)
the ignorance of managment regarding non-linearity of developing something is one major reason for losing motivation. it causes much confusion and misunderstandings requiring justification. it gets tiresome after a while.
Re:Ask HN: Are most of us developers lying about how much wo... by godelski on Thursday December 16, 2021 @09:55PM (#29587128)
That just doesn't make sense because Pareto is a well known phenomena. To the point where it has entered the common lexicon (80/20 rule) and is essential for planning how long a project should take.
Re:Ask HN: Are most of us developers lying about how much wo... by hexxrer on Friday December 17, 2021 @09:49AM (#29592874)
It is the same way that Vilfredo Pareto is almost only known for the 80/20 rule.

One of the deepest thinkers ever about society and he is known for the most boring of his ideas.

Most things can be explained with this other idea of Pareto that humans are not rational but rationalizers.

Most human action/thought is kind of dumb and non-rational and then we invent rational explanations after the fact. Paint a varnish of rationality after the fact on non-rational behavior in Pareto's words.

Re:Ask HN: Are most of us developers lying about how much wo... by kranzky on Friday December 17, 2021 @01:02AM (#29588450)
For sure, we need to collectively recognise how much real work takes place in this mode.

I once collaborated with a colleague to design and implement a data sync framework. For six weeks we chatted about it during our lunch break, while walking from the office to a Japanese takeaway and back again. We'd propose ideas and find weaknesses and flaws in them, and would spend our evenings thinking hard to come up with solutions to get around these issues.

Our boss saw none of this, but it easily consumed about three weeks of person-hours (i.e. around 120 hours).

One day, walking back from lunch, neither of us could find any problems with our proposed solution. We walked into the office straight into a meeting room, spend 30 minutes drawing diagrams on a whiteboard, then returned to our desks and coded up a working proof-of-concept in a couple of hours.

From our boss's perspective, we had implemented a new technology in an afternoon. He's the kind of non-technical person who equates productivity with typing code into a computer. But I think more places need to equate productivity with sitting on a sofa staring into space, or going for long walks, or whatever it happens to be that works for the developer in question.

Re:Ask HN: Are most of us developers lying about how much wo... by kranzky on Friday December 17, 2021 @09:01PM (#29600795)
Just read an article about employers increasingly monitoring their WFH employees with software installed on their computers. This is the "sitting at a desk and typing" measure of productivity. How do they propose monitoring the "solving problems by thinking hard" measure of productivity?
Re:Ask HN: Are most of us developers lying about how much wo... by omarfarooq on Monday December 20, 2021 @10:20AM (#29625853)
They can't. They have to capitulate to the idea that thinking is work. Especially in knowledge work.

But then again, since thoughts are words, thinking can be translated into typing that is monitored: notes instead of code.

Re:Ask HN: Are most of us developers lying about how much wo... by celticninja on Thursday December 16, 2021 @01:29PM (#29581849)
I agree, I used to think I was like OP, coasting in between being quite productive. One day I took a bath, ended up thinking about my ticket, got out of the bath and did the ticket in an hour. The thinking time was definitely work just not in the traditional sense. And yes I could have done the ticket without the bath, it may even have taken the same time, but the code wouldn't have been as clean and there would have been a few more commits.
Re:Ask HN: Are most of us developers lying about how much wo... by julianlam on Thursday December 16, 2021 @02:05PM (#29582362)
Well, not only was the code clean, I imagine you were clean too!
Re:Ask HN: Are most of us developers lying about how much wo... by lordgrenville on Thursday December 16, 2021 @04:42PM (#29584345)
Nah, showering makes you clean, a bath is just marinating in your own dirt. Very pleasant though.
Re:Ask HN: Are most of us developers lying about how much wo... by jkhdigital on Thursday December 16, 2021 @08:24PM (#29586545)
Which is why in Japan, you take a (quick, purposeful) shower and then get in the bath. Those baths are exceptionally pleasant.
Re:Ask HN: Are most of us developers lying about how much wo... by mildred593 on Friday December 17, 2021 @10:11AM (#29593184)
Very bad, you should take a shower after the bath, not before, so when you're out, you're clean.
Re:Ask HN: Are most of us developers lying about how much wo... by ryanschneider on Thursday December 16, 2021 @09:08PM (#29586876)
Rich Hickey’s “Hammock Driven Development” talk largely agrees with this view: https://youtu.be/f84n5oFoZBc
Re:Ask HN: Are most of us developers lying about how much wo... by sbayeta on Thursday December 16, 2021 @10:47PM (#29587473)
Awesome!
Re:Ask HN: Are most of us developers lying about how much wo... by 2-718-281-828 on Thursday December 16, 2021 @02:42PM (#29582841)
processing for one or two days to prepare productive working that takes 30 minutes sounds a bit extreme. but I get the gist and second it. I hate developers you immediately jump at any task coding right away. they usually actually get the stuff done but the solution is ugly and contrived instead of elegant and simple. that's also what makes me skeptical of devs obsessing about typing (layouts, keyboards, editors, ...) to optimize it further. as a developer I never found speed of input to be even close to a bottle neck. the bottle neck usually lack of silence and peace in a large office which I need to think!
Re:Ask HN: Are most of us developers lying about how much wo... by rightbyte on Thursday December 16, 2021 @06:43PM (#29585621)
> that's also what makes me skeptical of devs obsessing about typing (layouts, keyboards, editors, ...) to optimize it further.

Those things are a form of procrastination. With your points you should be sceptical for those who just go for VS Code or whatever MS sets up for them nicely in 2 minutes, not those who configure Emacs or Vim.

Re:Ask HN: Are most of us developers lying about how much wo... by ASalazarMX on Thursday December 16, 2021 @01:36PM (#29581959)
To be fair, I've done both. By now I can roughly estimate that a task will take me one hour. If I dedicate myself to it right now, it will actually take me 2-3 hours. I can also sort of carry it around for a couple of days, and then implement it in one hour.

This says two things about me: I usually underestimate the design details when estimating time, and the design takes me roughly the same time anyway.

Re:Ask HN: Are most of us developers lying about how much wo... by p1anecrazy on Thursday December 16, 2021 @07:19PM (#29585961)
This kind of “background processing” was covered in detail in the infamous “Learning how to learn MOOC”. I would go further suggesting that for people unaware of this way of thought processing/problem solving (like OP?) peer pressure may bring something akin to impostor syndrom.

This doesn’t have to be a programmer only thing IMHO. If you spend 5 hours chilling and 3 executing and everybody is happy with your performance, it may be just your way to do things. If someone next to you does the same by coding 8 hour straight - its their style, and neither is better.

Re:Ask HN: Are most of us developers lying about how much wo... by tspike on Thursday December 16, 2021 @07:37PM (#29586115)
The lack of replies accusing you of immorality, theft, sloth, etc is somewhat surprising given the reactions in the rest of the thread.
Re:Ask HN: Are most of us developers lying about how much wo... by TristanBall on Friday December 17, 2021 @09:18PM (#29600888)
Right? The OP is literally saying he slacks off then bullshits his way through meetings and that he regularly doesn't understand what's going on.

Everyone else appears to be talking about time spent directly thinking about a problem - which absolutely can look exactly like you're staring into space and this magic "subconscious processing" everyone claims to do.

That is far too seductive and idea, and far too ego flattering for me to trust it. "I'm so smart I solve problems in my sleep!"

Oh really?

But the phenomenon of solving problems quickly after a break/sleep/shower/whatever is one I recognise too.

Something else I recognise is that I also jump to solutions too quickly, often wrong ones, or by something that feels quit similar, jump to the idea that I don't understand things or that I don't know how to solve a problem.

Either the "wrong idea(s)" or the "no idea" are patterns of thinking that make it that much harder to see the problem a different way, or to think up new approaches. You can absolutely overcome it, but it takes a deliberate effort of will, and possibly explicit step by step techniques to do.

Much easier to just put it down and have a nap or a walk or whatever.

But that time isn't "subconsciously working on the problem", it's time spent letting go of you original ideas, letting those neuron interconnections to loosen up ( or whatever, not a neurologist, can you tell? ) so you can generate new ideas, obviously you haven't forgotten them.. but they have that softening distance to them now, and the no longer carry as much weight.

To take in one more, completely unsubstantiated step further, maybe that what a 10x coder is: someone who can more freely move between their ideas ( naturally or via learned technique ) meaning the the need to sleep on it far less often. Or maybe they give themselves a chance to let go of there currently working on the next and the next ( which I'm sure we all do some of, or every software company would be surrounded by a cloud of Devs, walking or staring off into spec! ) But maybe to 10x engineer does that more readily? Without the the exhausting drain I know I feel jumping from deep thinking on one think to deep thinking on another?

We shouldn't discount how many of the "other things" people list are either directly rejuvenation ( sleep! ) Or at least refreshing via increased bloodflow from some level of physical movement, even if it is just getting up to do the dishes.

Personally I think "well rested me" is of about average intelligence, "well rested and in the zone me" is perhaps a little higher but "tired me"? Wow can that be a big drop!

So.. rest, rejuvenation, letting go of mental models by directing your attention else where all seem like more likely causes than "my brain solves problems without even trying"

( Sorry tsike, kinda went of on a tangent there.. ! )

Re:Ask HN: Are most of us developers lying about how much wo... by kkcorps on Friday December 17, 2021 @01:44AM (#29588742)
Same. Most of my time is spent in thinking. My manager has told me though that it sometimes is not possible to quantify this time unless I create a doc where I lay down my thought process.
Re:Ask HN: Are most of us developers lying about how much wo... by thanatos519 on Thursday December 16, 2021 @04:22PM (#29584087)
Right! I find that I have to 'sleep on' most hard problems. WfH is great because I can take a nap and then get back to work. In the office I can't do that.

Less hard problems need less-passive processing but are better solved on a bicycle or doing something completely unrelated.

Re:Ask HN: Are most of us developers lying about how much wo... by dx034 on Friday December 17, 2021 @05:20AM (#29590239)
I think passive processing is one, intuition is the other. You can solve a problem by thinking about it for hours or by once looking at it and immediately knowing a good solution. It's about experience, intelligence and probably many other factors.

And that doesn't mean you'll perform well in technical interviews. They're often about specific algorithms most people would never implement themselves. Few are about the problem solving part of programming.

Re:Ask HN: Are most of us developers lying about how much wo... by knightofmars on Thursday December 16, 2021 @08:36PM (#29586646)
Hammock driven development is real.

https://www.youtube.com/watch?v=f84n5oFoZBc

Re:Ask HN: Are most of us developers lying about how much wo... by frays on Thursday December 16, 2021 @09:36PM (#29587022)
I can attest to this.

There have been times I spent 20-30 minutes understanding a new problem at 5pm, which at the time seemed like it was going to take up a significant amount of my working hours the next day.

Then come back the next day and I'm able to finish the task before 10am. During the evening, the problem was solved both consciously (thinking about it on the train home) and subconsciously (whilst sleeping). I just had to produce the deliverable the next day.

Re:Ask HN: Are most of us developers lying about how much wo... by gyam on Thursday December 16, 2021 @05:47PM (#29585036)
This. This happens whether I enjoy the thing I am working on or not. It’s just part of the process.

Also sometimes your mind needs a break. I personally cannot produce quality thoughts continuously no matter how much you force me, or I want to. I can mindlessly do physical things, but cannot code or think. I find it hard to believe there are people who can do this, if there are, they must be rare I beieve.

Re:Ask HN: Are most of us developers lying about how much wo... by rektide on Thursday December 16, 2021 @02:07PM (#29582391)
It is SHOCKING beyond words to me what accepted dogma it is that the human resources/devs only work on one thing at a time, they start at the beginning, plan, write, test, & code review the thing, and then move on.

It's a huge waste of human potential. Background processing is vital. Getting hit by the various silly hurdles in the path to shipping- having to go from the elation of getting something done to having to switch to an entirely different set of less fun tasks to get it shipping. Yet our processes, our industrial processes, are oriented towards assurity, towards treating us "human resources" like machines, to making us complete full units of work.

It's hard for me to tell exactly where this sprung up from, how it is so deeply deeply rooted. I tell my managers outright I think it's a wasteful & outright damaging practice, but that I understand that it's the expectation, that every other company acts like fools too, not just them. I don't argue, but I am quite clear that you will get much much much less out of me when I don't have some autonomy, when I have to drag, roll, push, row, swim each rock, one at a time, from end to end. Again, I'm not sure how such a demeaning & menial form of completing single-task-at-a-time happens, especially when no one in management or upper ranks is expected to live like this. My top theory is just that it's convenient for management purposes. That company's are bad at assessing progress, that we're afraid of situations that aren't ultra-well scheduled & predictable, and that we treat programmers like cogs in a machine because we're too afraid to try for better.

Creative procrastination is amazing. Not only are programmers out doing great things, but the task they're more obligated to do goes from irrelevant & stupid to something they just don't ever want to think of again. The internal pressures builds over time, even for the irrelevant everyday crap of development, until we're finally jazzed to just get it done. By procrastinating, we bank up some motivation. And we've gotten a lot of passive processing in. Productive procrastination is one well-known example, but I feel like it's just the tip of the iceberg. Having some different tasks to switch between, having a wheelhouse of obligations, allows enormous relief, allows a much higher average output to be maintained, in my view. I'm kind of in a lull of personal projects right now, because I completed some stuff, and don't have a lot of in-flight options to pick up & work between. Everything feels so slow & getting going again has been such a chore, I feel it so much. Being able to trade off, switch around, chase what feels good is a huge huge productivity increase.

More than anything what amazes me is how conventional & dogmatic companies are. They seemingly all chase the same malgining evil controlling exploitation of human-resources, and not a once has a company seemed to even understand that there are trade-offs. The whole industry is exactly the same; controlling & top-down, one-at-a-time. The people who invented Amdahl's law, surprisingly, seem utterly unable to grasp it's application to humans & our motivations. We all have diverse & wide execution units, but we are treated like in-order single-stage processors. If this were just the predominant way of treating engineers/human-resources, I'd find it unfortunate, but that it is almost entirely the rule, that it is universally expected, that there are so few systems or experiments for doing anything else: the status quo is pathetic & cruel, and lacks even the basic legitimacy to have explored other ideas.

Re:Ask HN: Are most of us developers lying about how much wo... by mihaigalos on Friday December 17, 2021 @06:12AM (#29590659)
> My top theory is just that it's convenient for management purposes. That company's are bad at assessing progress, that we're afraid of situations that aren't ultra-well scheduled & predictable, and that we treat programmers like cogs in a machine because we're too afraid to try for better.

This is because the classical consecrated need for project management. Back in the day, you would have factory workers overseen by managers to a) establish a process for the work to be done which is easy and precise - "plan the work" and b) oversee it - "work the plan". The process is, in their view, necessary so why question it?

SW development is a creative process which doesn't really lend itself to rigid guard railing of classical project management.

Some advocates outright speak against managers because of the penalty the rigid process has on creative throughput. Quote from https://www.simplethread.com/agile-at-20-the-failed-rebellio... :

> The important piece that gets forgotten is that Agile was openly, militantly anti-management in the beginning. For example, Ken Schwaber was vocal and explicit about his goal to get rid of all project managers – not just get the people off his projects, eradicate the profession from our industry.

Re:Ask HN: Are most of us developers lying about how much wo... by mikewarot on Thursday December 16, 2021 @04:19PM (#29584053)
>It's hard for me to tell exactly where this sprung up from, how it is so deeply deeply rooted.

Industrial mass production makes physical objects with incredible efficiency, once things are up and running. Because it's so effective with atoms, people think it can be just as effective with bits, and they're wrong.

Re:Ask HN: Are most of us developers lying about how much wo... by rektide on Thursday December 16, 2021 @05:11PM (#29584694)
a nice contrast showing the difference between Ursala Franklin's prescriptive & control technologies (that orchestrate & organize) and holistic & work technologies (that increase worker power capability & freedom).
Re:Ask HN: Are most of us developers lying about how much wo... by devdas on Saturday December 18, 2021 @12:47PM (#29606598)
Software development isn't a production problem, it's a design problem.

Software manufacturing is the bit after you compile the code.

Re:Ask HN: Are most of us developers lying about how much wo... by ww520 on Thursday December 16, 2021 @08:56PM (#29586814)
Creative procrastination is a good way to put it. Sometimes I found myself procrastinating and couldn't push myself to move beyond a certain point. Later I realized it's the wrong path after all and it's like my subconscious is recognizing the approaching leading to nowhere and stops me from wasting time.
Re:Ask HN: Are most of us developers lying about how much wo... by a9h74j on Thursday December 16, 2021 @08:50PM (#29586765)
> how conventional & dogmatic companies are

Seems to invite a deep dive into the history of Gantt charts or their use.

Re:Ask HN: Are most of us developers lying about how much wo... by lewisjoe on Friday December 17, 2021 @04:00AM (#29589641)
While this is true, I strongly doubt OP is talking about this case. In your example although it did look like you didn't work from the outside, but in your mind you were still thinking about the problem, technically speaking, working.

The case in discussion is how we developers do just the bare minimum consciously (or unconsciously) and the fake away the rest. Even with this perspective I don't consider it wrong at all. Our developer brains can be in "the zone" for not more than 2-5 hours everyday. If we force ourselves to be in the zone more than that, we are just damaging our runway and heading towards a burnout.

That said, the only thing we could do is - learn how to increase our zone hours. John carmack went to the extent of measuring his bathroom breaks as a way to extend these focus zones. While that is a bit extreme. generally as developers our antidote should be to optimize our focus zones to what fits us.

Re:Ask HN: Are most of us developers lying about how much wo... by berkes on Friday December 17, 2021 @03:34AM (#29589479)
Intellectual and physical work differs a lot. True. Writing a book may take years, while writing the words mere days.

This, however, should not be an excuse, but a cue to get better at that 'thinking stuff'. Improve it. Train it. Learn.

And with all that, strongly ask yourself if that 'backburner time' must be paid. A bricklayer needs 10+ hours off to rest his body, so he can lay bricks for another 8 hours tomorrow. Should we pay him 18 hours?

My answer to both is that when I efficiently ponder and backburn ideas, it is 'work'. But when I'm binging Silicon Valley Episode 5, it is not (unless I can prove that this helps me bring the problem closer).

Re:Ask HN: Are most of us developers lying about how much wo... by arthur_sav on Friday December 17, 2021 @05:04AM (#29590128)
Very common. It's hard to quantify the mental work done, so we only measure kilos of code written.

I do think though that anyone that has written code should be able to understand that it's not as simple as sitting down and typing fast.

Re:Ask HN: Are most of us developers lying about how much wo... by _em_ on Thursday December 16, 2021 @10:52PM (#29587507)
Yeah, I am kind of similar boat. I actually has opportunity to implement certain algorithms which were pivotal in launch of specific products. I spent perhaps 3-4 hours implementing the whole thing but i kept thinking about the core problem for a week, so much so that i started dreaming about it. (this dream thing happen quite often).
Re:Ask HN: Are most of us developers lying about how much wo... by ww520 on Thursday December 16, 2021 @08:51PM (#29586768)
Absolutely. Sometimes for the whole day I remove code because of dead path or rewrite part of the code because of wrong initial design. Am I adding negative productivity?
Re:Ask HN: Are most of us developers lying about how much wo... by 20after4 on Thursday December 16, 2021 @09:16PM (#29586921)
At a previous job, the boss awarded praise, and "points" each week for the developer who removed the most code from production. Counted as lines of code deleted according to git.

(Points were redeemable for schwag from the company shop. They were highly desirable and nearly cash equivalents).

Deleting code is arguably the most valuable work you could be doing.

Re:Ask HN: Are most of us developers lying about how much wo... by frankthedog on Thursday December 16, 2021 @10:55PM (#29587528)
That can turn into code golf quickly which makes reading the code later take 2-10x longer. I like the spirit oh this but the incentives are off.
Re:Ask HN: Are most of us developers lying about how much wo... by authed on Thursday December 16, 2021 @09:18PM (#29586931)
any non-physical work should be paid for 24-7?