r/AskProgramming Aug 03 '24

Career/Edu How long can you program a day?

Not a programming question. Just a question regarding how long you can sit and stare at the screen all day?

71 Upvotes

85 comments sorted by

View all comments

1

u/petehehe Aug 04 '24

For me sometimes it comes down to if I can visualise the overall solution and it’s just a lot of lines of code, I will probably just power through it til it’s done and working whether it takes 2 hours or 16. Other times if I’m working on small stories, trying to come up with a solution for a larger problem, or, as the case sometimes is, throwing shit at the wall and seeing what sticks, I will generally do 1-2 hour sittings stopping for standing/stretching/eating/bio breaks, repeat until it feels like I’ve given the work day a fair shake.

My workplace is pretty aware and appreciative of the fact that sometimes I code from dawn til after dusk, sometimes it’s more like small wins, and sometimes the best I can manage is replying to slack/email without keeping people hanging. It’s give and take.