r/ProgrammerHumor • monkeyuser.com • Mar 06 '18

Focus

Post image
43k Upvotes

805 comments sorted by

View all comments

2.6k

u/DomskiPlays Mar 06 '18

Can confirm: Stayed up all night doing a stupid but complicated program because every time I looked at the time I knew I had to go to bed but I also knew I wouldn't be able to understand shit the next day and would have to start all over!

674

u/Mattoww Mar 06 '18

Not a pro, but I spent night trying to finish some code/debugging, getting my tired brain confused, going to bed frustrated at 4am, only to wake up next day and finding the solution within 20 min.

Sleeping helps your brain organise, even though I know it's hard to give up.

0

u/[deleted] Mar 06 '18

[deleted] — view deleted comment

119

u/stankind Mar 06 '18

Yes, but only if those breaks are under YOUR control.

21

u/tinkertron5000 Mar 06 '18

This is the qualifier that statement needed. If someone else interrupts, they don't know where I'm at and will probably make me angry.

18

u/[deleted] Mar 06 '18 edited Mar 06 '18

whatever is healthier for your body will help your mind work better

This sounds so platonic platitudinous and yet, IRL I never seem to apply this

Edit: damn my vocabulary

→ More replies (3)
→ More replies (6)

75

u/JuniorSeniorTrainee Mar 06 '18

You're right. I've learned that if I'm in the zone but also reaching point of diminishing returns, I'll stop.

But first I'll write / update a notes file - a very casually written document where I basically brain dump before shutting down for the day. What are the immediate problems I'm leaving unsolved? What is my next step for each? What solutions am I considering, and what are they pros/cons I'm aware of? What questions do I still need to answer?

It sounds like a lot but since these notes are just rough reminders and not formal documentation, it rarely takes me more than a or two to jot down. The next time I pick this up, I glance through my notes and it helps me quickly reconnect with the project.

As a bonus, oftentimes the act of organizing my thoughts into notes is enough to jar some bad ideas loose.

As another bonus, for more complicated projects I'll do this throughout the day, and it gives me huge peace of mind knowing that if something interrupts me, I still have my thoughts down. Like save points for my brain.

43

u/[deleted] Mar 06 '18

...it rarely takes me more than a or two to jot down.

A second or two? A minute or two? A day or two!? A WEEK OR TWO!?

→ More replies (4)
→ More replies (4)
→ More replies (13)

1.2k

u/angryPenguinator Mar 06 '18

My wife doesn't understand this sometimes.

Yes, I would love to go to bed, and I need the sleep - but if I stop now, I am done for.

583

u/wack_overflow Mar 06 '18

I always share this thread with ppl instead of trying to explain it myself, I really like the sleep analogy they use:

https://softwareengineering.stackexchange.com/questions/46252/how-to-explain-a-layperson-why-a-developer-should-not-be-interrupted-while-neck/46283#46283

158

u/craniumonempty Mar 06 '18

Ooh, that's good.

Now how do I explain the way I focus out everything including people screaming my name at me (I've been told that I'll burn up if the house is on fire when I'm programming) even though I wake up with a whisper.

92

u/sudo_kill-9-u_root Mar 06 '18

0

u/[deleted] Mar 06 '18

[deleted] — view deleted comment

8

u/_N_O_P_E_ Mar 06 '18

Now you have to deal with merge conflicts from Tim latest shitty commit. Should be :

git branch "fire-gtfo" git commit git push githefuckout

→ More replies (1)

17

u/FallenWarrior2k Mar 06 '18

It's all nice and dandy until somebody does this and realizes they forgot to stage all their work, so the commit just picked up this one file that was renamed along the way.

→ More replies (2)

11

u/NeonXero Mar 06 '18

We have that sign in our office too. Still gives me a very slight nose exhale when I see it.

→ More replies (3)

55

u/[deleted] Mar 06 '18

selective listening is the name of what you're describing

→ More replies (1)
→ More replies (1)

30

u/FromAshesOfOwls Mar 06 '18

This is good, but I'd compare it more to memorizing the pattern to a game of Simon and then 8 steps in you get asked a question.

11

u/wack_overflow Mar 06 '18

It's more accurate, but I think more people in general will relate to sleep interruptions

→ More replies (1)

9

u/PMMeRedditGold Mar 06 '18

I like this one much better

→ More replies (8)
→ More replies (3)

32

u/[deleted] Mar 06 '18

This is when you stop and rethink

Tomorrow you're going to hate your code

22

u/exmachinalibertas Mar 06 '18

No, tomorrow I get to rewrite my code from scratch now that I sort of know what I'm doing....

→ More replies (1)

10

u/arbitrarycivilian Mar 06 '18

Actually there’s a good chance you would have understood it better in the morning. Sleep is important!

→ More replies (2)
→ More replies (18)