Live data from Hacker News

Poll: How much of your work time is typing code?

news.ycombinator.com

41–50 of 52 posts

Re: Poll: How much of your work time is typing code?

#42

I imagine this depends a lot on the sort of problems you're trying to solve. Also, a lot of my code is experimental, or adding more logging to diagnose the problem - does it count if I erase half of the code I write at the end of the day?

> [D]oes it count if I erase half of the code I write at the end of the day?

The best day of any programming career comes when you successfully refactor a massive monolith of a function into a well designed set of classes with predictable interaction, and can tell people you wrote negative seven hundred lines of code.

Re: Poll: How much of your work time is typing code?

#43
post #6

Easily less than 1%. The code is just the manifestation of the solution that I spent most my time coming up with. I am actually annoyed when I need to use Java because it triples my typing time compared to Python.

So, in the end, if it affects less than 1% of your time, language choice is not such a big deal for you, right?

I'm not sure that follows. The idea that language choice is something that only comes into to play during the mechanical motions of banging your fingers upon the keyboard strikes me as wrong-headed.

If we agree with Wittgenstein that "The limits of my language mean the limits of my world", language choice profoundly affected the time he spent thinking about his solution, not just the time he spent inputting it.

Re: Poll: How much of your work time is typing code?

#46
I once had a 9 month stretch with a huge, but fairly well-defined project. Typed so much I gave myself cubital tunnel syndrome. For the rest of the decade+, I've typed maybe a dozen lines a day as a high average estimate.

I suspect a lot of the numbers in the poll are inflated. Even a data entry specialist would have a hard time spending 7:30 out of 8:00 hours a day typing.

Re: Poll: How much of your work time is typing code?

#47

I imagine this depends a lot on the sort of problems you're trying to solve. Also, a lot of my code is experimental, or adding more logging to diagnose the problem - does it count if I erase half of the code I write at the end of the day?

> [D]oes it count if I erase half of the code I write at the end of the day? The best day of any programming career comes when you successfully refactor a massive monolith of a function into a well designed set of classes with predictable interaction, and can tell people you wrote negative seven hundred lines of code.

you lost me at 'set of "classes"'

Re: Poll: How much of your work time is typing code?

#50
less than 10%. I'm a CS student.

This question has actually been on my mind for a while now. I'm usually sitting at work trying to figure something out or scrolling through my code looking for where something went wrong. I definitely don't have as much experience as a lot of the coders here, but I'm rarely ever typing.

I need to think about the flow of the program/function, and what the essential pieces are. When I know what I want, I start typing it out, and it usually only takes me 2-3 minutes to type out what I'd been thinking about. Usually, I'll have spent far longer than 30 minutes thinking about how I want to structure and attack the problem at hand.

Post reply on HN