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

Focus

Post image
43k Upvotes

805 comments sorted by

20

u/cstefanache monkeyuser.com Mar 06 '18

146

u/cob59 Mar 06 '18

36

u/AkodoRyu Mar 06 '18

That's what I came here for - this one just describes the issue so much better.

→ More replies (2)

28

u/[deleted] Mar 06 '18

One looks like straight plagiarism of the other...

I mean granted it's a common issue in programming or any discipline that requires great focus, but the similarities are uncanny.

→ More replies (1)

18

u/taires monkeyuser.com Mar 06 '18

I know we made it from scratch (we really did)... but looking at this I can totally see why people would think otherwise. I guess we chose to express this frustration the same way. The internet is big and full of stuff this is going to happen from time to time. (But still extremely uncanny)

→ More replies (2)
→ More replies (3)

4

u/do_you_realise Mar 06 '18

3

u/cstefanache monkeyuser.com Mar 06 '18

Yup, just saw it... different year same inspiring frustration

1.7k

u/KaamDeveloper Mar 06 '18

This is why I prefer work from home. Just me and my computer in a dinky dark room.

1.2k

u/-bobby_newmark- Mar 06 '18

...and four kids, and a cat, and wife's mom

1.2k

u/KaamDeveloper Mar 06 '18

Hah! Like I am ever going to find someone to have kids with.

994

u/jD91mZM2 RUST Mar 06 '18

^ this guy codes

→ More replies (21)

49

u/Bastyxx227 Mar 06 '18

Yeah wtf does he think we are?

→ More replies (2)

42

u/[deleted] Mar 06 '18

Right? We can have our own children. After all, that's how it works out with nodes of trees.

→ More replies (2)
→ More replies (9)
→ More replies (10)

86

u/kingoftown Mar 06 '18

...and four hundred steam games, and a cat, and porn about wifes and moms

→ More replies (2)

26

u/writetehcodez Mar 06 '18

Yeah, and your inbox, and Hangouts/Slack, and Facebook, and Twitter, and Reddit, etc...

→ More replies (2)

5

u/smallbatchb Mar 06 '18

Fucking yes. I work so much better without constant office distractions or people looking over my shoulder.

I had a painting professor in college that really enlightened me to the idea of taking control of your focus. I was talking to him one day about his work and asked how the hell he cranked out so much work to hit the stupid short deadlines he had for exhibitions. He told me he literally has an old school tornado shelter in his back yard he turned into a studio with a small kitchen area in it. On his studio days he literally goes in at 8 in the morning and locks the door and doesn't come out until dinner. He leaves his phone in the house so he just purely focuses on his work from 8 till about 5.

At that time in college I had a shared studio space on campus and was constantly being distracted by my studiomate and other friends in the building. I eventually just started working at home and I got sooooo much more work done.

4

u/[deleted] Mar 06 '18

That’s the dream man. A dark room I sit in with a pc and someone hands fully correct and complete requirements through a little mail slot. I do my work and go home.

→ More replies (3)
→ More replies (7)

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.

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 (25)

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.

→ More replies (12)

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.

→ More replies (3)
→ More replies (7)
→ 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)

4

u/artr0x Mar 06 '18

If feel like you probably should document your code better if this is the case

→ More replies (15)

351

u/FurryPornAccount Mar 06 '18

"Just checking back on your productivity'

29

u/[deleted] Mar 06 '18

This made my blood pressure rise

8

u/Midvikudagur Mar 06 '18

Mostly because of the quotes.

14

u/TactiFail Mar 06 '18

Bro you’re killing me with those quotes

12

u/JoelMahon Mar 06 '18

*pawductivity

4

u/nermid Mar 06 '18

Worked with a dude recently who did this every five minutes because it was his pet project. Constantly asking me how it was going, how long I thought it was going to take, reminding me that he wanted it done today...

Turns out, there was a single issue when I was done*. Got official feedback about how I need to make sure everything's perfect, not fast, and I shouldn't feel like I need to rush to get things done on time. He also tagged that feedback indicating that I was slower than I should have been.

* Bonus: The issue affected production during testing, because the test environment and the prod environment share the same DB. He's the guy who insists that we don't need a separate testing DB from production, because developers should be testing their code in the dev environment anyway.

Not the reason I quit that job, but definitely didn't make me regret the decision.

→ More replies (1)

3

u/lemindhawk Mar 06 '18

obligatory you are everywhere comment

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

635

u/[deleted] Mar 06 '18

That anxiety when you desperately need some help but everybody around you looks so busy so you just stare at your own reflection in the screen as you die a little more with each second goes by

173

u/jacko4lyfyo Mar 06 '18

bruh this is me all the time. What do i do :(

68

u/StupidButSerious Mar 06 '18

Have a talk with a senior/manager, he might point you toward one guy in the office who is happy to help or has more free time to help.

15

u/[deleted] Mar 06 '18

ping them on chat and they will help you when they find a good place to take a break

12

u/[deleted] Mar 06 '18

Home office? That way you can't ask for help even if you wanted. ;)

→ More replies (10)

25

u/instantrobotwar Mar 06 '18

I get that, but still you should email them along to set up a time to help you. Focused help will be much better than interrupt-driven help anyway.

→ More replies (1)

18

u/nailernforce Mar 06 '18

I would prioritise helping others over getting my own work done. It would be counterproductive to have people sit doing nothing because they're afraid of bringing someone out of their flow. Flow is how you get things done. Communication is how you get the right things done.

→ More replies (1)

11

u/benihana Mar 06 '18

slack or im the senior engineer on the team and say you're stuck and need help

6

u/raretrophysix Mar 06 '18

Send a message or email, or ask a dev after he or she returns from lunch

3

u/[deleted] Mar 06 '18

Consider yourself lucky, to be surrounded by people who CAN help.

→ More replies (5)

497

u/ABrownApple Mar 06 '18

Hey did you get that email I sent you?

365

u/ABrownApple Mar 06 '18

YES I got your stupid email since when do email not arrive?!?

186

u/[deleted] Mar 06 '18

According to my users, there's a real decent chance emails don't arrive. We probably deal with one ticket every week or two where a user says that they did not receive an email. It's normally either in their junk mail, was sent to the wrong email address, is in their deleted items, or a rule picked it up. My favorite was when someone created a rule for anything with the word READ in the entire email (to automatically move read receipts, great idea). Emails like "can you pick up bread" were getting moved to a folder and the user couldn't ever find them.

→ More replies (15)
→ More replies (3)

52

u/cyclecalves Mar 06 '18

Reminded of a co-worker who'd send an email and follow up in person about 10 seconds later.

42

u/[deleted] Mar 06 '18

Hey I'm getting ready to send you an email about that invoice we talked about earlier.

sends email reiterating the exact thing that we talked about earlier

Hey did you get my email about that invoice we talked about earlier?

yep, got it

25 minutes later

Hey did you get a chance to follow up with that email I sent about that invoice that we talked about earlier?

internally screaming

→ More replies (1)

11

u/scrimsims Mar 06 '18

Don't forget the the IM telling you about the email!

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

39

u/[deleted] Mar 06 '18

I'll often follow up on an email. Emails are just my way of having a permanent record of my communication, talking with someone is how I'll make sure they understand what the point is. Mind you, I work in a technical support type group (fixing stuff in addition to IT and programing), so people come to us for advice on next steps for broken equipment.

15

u/ABrownApple Mar 06 '18

To be hones I do the same. And I don't mind people chatting with me I'm usually not that busy :)

9

u/[deleted] Mar 06 '18
  1. Email
  2. Instant message
  3. You didn't reply, so here I am at your cube, tapping on your shoulder. It's the middle of the work day, far from lunch or any break. How was your weekend? My weekend was great! I just love baseball, I can't wait for the season to start! What's your favorite team?
→ More replies (2)
→ More replies (4)

1.6k

u/jb2386 Mar 06 '18 edited Mar 06 '18

Noise cancelling headphones and then act snooty/annoyed when people ask you something in person, then act really nice and helpful when they email you.

Edit: Or you could be an adult and just tell them "hey I'm working on something that requires my full attention, in the future could you please just email me or ping me on slack/<insert chat program> and I'll get to you as soon as I get a break. " :)

617

u/[deleted] Mar 06 '18

Ah... this isnt actually horrible advice. Just replace snooty asshole with "busy and cant talk, email me the problem"

Get really nice noise cancelling headphones, makes a world of difference and well worth the money

142

u/[deleted] Mar 06 '18

Been doing this for about eight years now. Almost all communication with other people in the office has been cut and people still come in my office when they need something instead of emailing me. Maybe dialing back the snooty asshole would help.

82

u/[deleted] Mar 06 '18

Ive found just artificially longing the time when asked in person, and being responsive when asked via email helps a tonne

If they know it will take a day+ vs sending a quick email and being done in a few hours. They will send the email, but a lot of them like the human interaction so that means you can usually get a longer lunch to do that shit and relax a little (who am I kidding, lunch, whatever's in the candy desk is good enough)

→ More replies (16)

55

u/RandyHoward Mar 06 '18

At least you've got an office. Try working in an open office where people are interrupting you every 10 minutes. Whoever thought that programmers would be more productive in an open office is a moron.

→ More replies (3)
→ More replies (16)

23

u/[deleted] Mar 06 '18

Came here to say this. Recently invested in some Bose QC25's and it's completely changed my work life. Headphones on = no disturbances. People IM me when they're on, which i can very easily ignore. They're EOL now it seems, so really affordable too.

(Other brands are available!!)

→ More replies (19)
→ More replies (19)

173

u/[deleted] Mar 06 '18

For those of you who are new to offices and working with developers or sysadmins:

Headphones = leave me the fuck alone unless I’m on fire. If you’re on fire, find someone else without headphones.

99

u/angryPenguinator Mar 06 '18

For those (like me) who work for a small company full of project managers... and you, the dev/sysadmin:

Your headphones are invisible.

97

u/[deleted] Mar 06 '18

Them: interrupts Why aren’t you done with my xyz yet?

Me: Because I keep getting interrupted.

Them: oh well they need to stop that.

Me. Yes you do.

→ More replies (4)
→ More replies (5)

16

u/aaronr93 Mar 06 '18

:/ my desk clump coworkers prefer talking in person, so if I’m wearing my earbuds they’ll tap my shoulder instead of typing “hey, quick question” in HipChat

35

u/AstralHippies Mar 06 '18

You can always make shoulder pads out of mousetraps.

→ More replies (3)
→ More replies (7)

42

u/linkining Mar 06 '18

I am an intern, how am I supposed to do that?

107

u/KaamDeveloper Mar 06 '18

By not being an intern. Duh...

→ More replies (12)

11

u/handlebartender Mar 06 '18

"I need you to do XYZ right now!"

"Understood. That will delay the completion of ABC by <duration> hours/days, do I have your approval?"

And remember to pad your estimates.

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

12

u/poop-trap Mar 06 '18

Unfortunately, where I work, Slack is just as bad since you're expected to answer right away. If you don't, people get pissy or walk over to your desk anyway. Sometimes if they feel like they dont mind waiting I'll get Slack messages that just say "Hey". This enables them to make sure it's a synchronous conversation because I actually have to type back "Yes?" at some point. Then they can ramble on and if I don't respond right away they think I'm being rude because they know I was just there. Or, occasionally it's "Hey" then when I reply "Can I come over to your desk and ask you something?" I guess this isn't as bad since they're asking politely but still, I wish more people understood the value of asynchronous conversation.

→ More replies (3)

17

u/CovertCoding Mar 06 '18

If only this was the case, my work promotes an anti message/email policy, and you’re basically forced to walk to someone’s desk wherever they are and bug them in person :(

33

u/toylenny Mar 06 '18

You mean an anti-paper trail policy?

→ More replies (4)

9

u/jb2386 Mar 06 '18

Argh we had someone in sales try to push that as an office wide policy (big open plan office). So glad it didn't catch on.

7

u/trigonomitron Mar 06 '18

I have snapped at a coworker once. Then afterwards I sought him out and apologized. I explained to him the issue as best as I could, and then we set down some signals that would make it easier for him to know when the best time to approach me are.

Some people are verbal communicators, and to them it feels like a larger set of information exchanges can't wait for email.

18

u/Aethyx_ Mar 06 '18

I have a little card on my desk with "BUSY" on it. When I'm really busy (coding or in a meeting) I put on headphones and just hold up the card without even moving my head when someone comes over.

People got the idea after a while, and now check from a distance or through email/IM if I'm available

8

u/maomaocat Mar 06 '18

There also something like this: https://embrava.com/

Some of my colleagues a few years ago got them for their team, it seemed kinda cool, but otoh Skype for Business.

→ More replies (1)

11

u/projectHeritage Mar 06 '18

I hate headphones, because they will still tap my shoulder and scare the shit out of me

→ More replies (2)

7

u/grpagrati Mar 06 '18

Better to also keep some treats to reward good behavior

→ More replies (34)

328

u/hedgecore77 Mar 06 '18

Reminds me of this very popular Jason Heeris comic from 2013.

In fact, it exactly reminds me of it.

45

u/dadschool Mar 06 '18

Which is also this

But then again, it is also a pretty common fucking problem in any office

10

u/wiscwisc consolia-comic.com Mar 06 '18

Came here looking for these comments. I'm the author of Consolia (the link you posted), and i was wondering why OP's comic is almost panel for panel the same as mine.

Honestly never seen this format before i drew it. Apparently i'm just not very original, expressing the zone-disturbance like this.

→ More replies (3)

12

u/fallenmonk Mar 06 '18

I like this one better. I think it does a better job at representing what it's like to be zoned-in on your thoughts, then to be immediately pulled away.

29

u/benihana Mar 06 '18

reminds me of this very popular post from 40 minutes before you made your post.

in fact, it exactly reminds me of it.

→ More replies (1)

3

u/[deleted] Mar 06 '18

There are numerous comics about it, yet this is such a common issue that I don't consider any of them really really original.

→ More replies (1)

7

u/bitter_truth_ Mar 06 '18 edited Mar 06 '18

Ha. Your passive-aggressive tone pleases me.

→ More replies (1)

146

u/[deleted] Mar 06 '18

Some companies fucked up when they followed the open work environment band wagon.

123

u/raretrophysix Mar 06 '18

In one company my boss pooled all the developers in a large basement storage room outside the open office area. (That we remodeled to a dev ops center) There have been moments of absolute dead silence for hours coding and it was glorious.

In another company my boss pooled 6 of us in a noise tight boardroom for 2 weeks when the project was coming to an end. And didn't allow anyone to come in expect the pizza guy.

Good times

11

u/[deleted] Mar 06 '18

Silence is an orgasmic word.

→ More replies (4)

12

u/[deleted] Mar 06 '18

It's not that simple... in an organization of smart, capable people, it's a good setup. In an organization where most people are near-useless and confused all the time, every bit of work has 2 projcect managers for every competent person doing real work and the drive-bys are because everyone needs help, X is confused (again), etc, its total cancer to productivity and peace of mind.

edit: you said 'some', so I was mostly talking out of my ass. It felt good to say, though, so ima leave it.

→ More replies (1)

91

u/examinedliving Mar 06 '18

I worked at home for a couple of years. My wife couldn’t understand why I dreaded snow days and spring break so much. The younger a child is, the shorter the gaps are between the moments where they have to ask you something. I would be a nervous wreck on those days; on the edge of my chair dreading the inevitable interruption.

30

u/[deleted] Mar 06 '18

I’ve currently got 3 kids aged 1-5 and work from home. I feel you, dog.

35

u/examinedliving Mar 06 '18

The thing I hated the most was when I’d lose my temper or be just annoyed with my kid. It’s the most amazing period of their life. It sucks when you feel resentful. Good luck.

→ More replies (2)
→ More replies (4)

79

u/[deleted] Mar 06 '18

And that's why managers have secretaries, as a director I always have a full line of people on fire, if it wasn't for my secretary it would be absolutely impossible to handle it.

What she really does is answering all request immediately and prioritize and schedule them so that te guy making the request at least knows immediately when he'll get the answer and if something is truly urgent it's actually her call to interrupt me.

That requires at least as much understanding of the company and the workflow as I have. She makes half of what I do.

14

u/dexter3player Mar 06 '18

I think every group of coders should get a secretary, so they won't be interrupted and only focus on coding. Do you agree?

23

u/botmatrix_ Mar 06 '18

in theory, the scrum master fills that role for an agile team.

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

3

u/UperMidleClasBrazlin Mar 06 '18

She makes half of what I do.

Is that a lot?

8

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

relatively speaking yes, but consider we both have a medium-high salary.

7

u/botmatrix_ Mar 06 '18

would you give up 25% of your salary so she could make as much as you? (legitimate question)

12

u/[deleted] Mar 06 '18

Math doesn't check out but yes in this particular case I'd do it, even better, I'd give her a 50% raise, but it's not my call.

Generally speaking do consider that the legal responsibility doesn't really falls with them, it only works for politicians to blame it on the secretary.

Usually secretary jobs, especially for management, are actually highly regarded, but the legal responsibility is what really makes the pay difference, yet they do have a very important role that requires pretty much the same skills as the management role they assist.

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

35

u/Kialae Mar 06 '18

ADHD but this is life.

4

u/alienith Mar 06 '18

Exactly this. Instead of someone else asking you for a second, it’s your brain. Also it happens constantly

121

u/Targuinius Mar 06 '18

My solution was to just write it down. It doesn't have to be perfect or anything, but enough to easily read and jump back in.

60

u/[deleted] Mar 06 '18

For real, unless I'm prototyping or shitting around, all algorithms and designs are written on a legal pad first.

Getting it right on the legal pad or whiteboard is the hard part. Writing code is the (relatively) easy part.

As I like to tell my team, all the magic happens in your head, not your fingers.

→ More replies (4)

78

u/McAUTS Mar 06 '18 edited Mar 06 '18

Essentially coding is a progress and you shouldn't code something which is too hard grab the next day. Even really good programmer shouldn't overcomplicate things just to show off. They do it anyway if the have the whole idea of the code and no one can ever read it again.

But for that you need time which you don't get, so at the end my support goes poo^oo^oof...

30

u/[deleted] Mar 06 '18

I haven't had a "poof" moment in years when working. If I do these days it's when doing something for fun (Factorio) or losing my train of thought in a conversation.

My real issue now is motivation. I find it hard to get started, but once I do I get going well, but distractions are the fastest way to get me to open up a Reddit tab.

→ More replies (5)
→ More replies (3)

8

u/[deleted] Mar 06 '18

Starting with commented pseudocode works great too.

4

u/leif_erikson503 Mar 06 '18

Seriously. Why do people waste time forgetting their work instead of taking notes?

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

139

u/Reluxtrue Mar 06 '18

why is he thinking in 2 different diagram types mixed together?

331

u/vegancreampie Mar 06 '18

When you're in the zone you're in the zone.

64

u/Reluxtrue Mar 06 '18

I am just afraid he went to the wrong zone...

→ More replies (8)

7

u/[deleted] Mar 06 '18

Aka the Flow mental state.

→ More replies (1)

34

u/KaamDeveloper Mar 06 '18

Fixing a bug which was caused by first design.

13

u/BorgiaCamarones Mar 06 '18

TFW you're in a nice state but you transition into a flow :(

13

u/Narfubel Mar 06 '18

He's ambi-diagramus

→ More replies (1)

78

u/boldra Mar 06 '18

I once tried to explain to a non programming colleague what I have in my head when I'm in the zone.

  • data structures, their attributes and their scope
  • the code flow
  • the desired code flow
  • breakpoints in the debugger
  • what other debugging code I need to remove before I go productive
  • what's in my clipboard
  • what still needs to be commented in code
  • what files are open for editing
  • what will happen if I look through my history in an open shell
  • which browser windows have tests in them and which ones have search results in them
  • which git branch I'm on and whether I've committed recently
  • which issue is open in the issue tracker, and when I last updated it
  • what other programs are open

... to name just a few

14

u/birdhustler Mar 06 '18

Seems like a lot. Is there any way a programmer could outline what they're thinking of in anticipation of interruptions so that you don't forget where you were? Or is that just the nature of the job?

→ More replies (13)
→ More replies (2)
→ More replies (1)

17

u/JustShortOfSane Mar 06 '18

If it helps to understand.

ADD is the exact procedure, except the threshold for slide number four occurring is drastically reduced, making it much more frequent, and as a result, putting us in the final frame for a portion of time vastly disproportionate to other people.

18

u/Ph4zed0ut Mar 06 '18

This is why many with ADD, myself included, develop hyperfocusing. When I am in the zone, the rest of the world doesn't exist.

13

u/Xadnem Mar 06 '18

This is also what (for me) is a redeeming quality of my autism. I love hyperfocusing so much that it lessens the burden of my less attractive qualities.

I hope that made sense.

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

34

u/Ncrpts Mar 06 '18

This hit way too close to home

14

u/SoraDevin Mar 06 '18

This is why I can't code at home

10

u/X_BlueJay_X Mar 06 '18

Yeah, this is really really accurate.

16

u/jdauriemma Mar 06 '18

It is for this very reason that I started separating the engineering / architecture process from the coding. I use a whiteboard or paper for the former so that interruptions are not as disruptive. Because the mechanics have already been determined, the implementation requires far less working memory in the brain so that interruptions are, again, not as disruptive.

→ More replies (1)

10

u/derdigga Mar 06 '18

Me playing "Into the Breach"

34

u/[deleted] Mar 06 '18

While I understand this feeling, and it's clearly common enough since this idea gets reposted all the time, it's indicative of flaws in workflow more than an inescapable reality of programming. If someone wrote 300 lines without saving and then the computer crashed and he lost it all, you'd call him foolish for not backing up the work as he went. Why then wouldn't you divide complex problems into small manageable chunks and write/diagram your progess while you work it out? If an interruption knocks you back to square one, you really need to be taking some notes. Likewise if you're trying to write code and it's taking 15+ minutes to understand what it needs to to, you probably haven't broken the problem into small enough chunks and the code you're writing is probably going to be tough to maintain because it's doing too much in one place and requires too much mental effort to unpack.

18

u/ranty_mc_rant_face Mar 06 '18

This! I came here to write something very similar.

I used to love "flow" and being "in the zone" - I could code immensely clever complex stuff, it was amazing. And amazingly, the next day or week or month when I needed to go back and change or even understand it, I had no hope. Let alone anyone else who needed to understand it!

These days I try to keep things modular, in sensible sized chunks; I work in pairs or regularly collaborating with a team rather than solo hero efforts; I write unit or other tests to keep behaviour well understood, and while I still don't like pointless interruptions, I'm quite happy to be interrupted by a team mate who wants to discuss code - that's not interruption, that's teamwork.

I worked in the "solo hero" way for 10+ years, I've worked in the "team coder" way for longer. It feels slower initially, but that's an illusion - in terms of producing valuable maintainable code it's drastically better, especially once you factor in the cost of technical debt and debugging hell.

4

u/LoneCookie Mar 06 '18 edited Mar 06 '18

I think you're over simplifying this.

I could spend 3 hours diagramming and double checking a design or I could think about it for 20 uninterrupted minutes and then take 5 to write it down.

Even if you were to write your design on paper from the start you still need some minutes of uninterruption to make sure everything fits as you're pulling apart a bigger problem into smaller ones.

Same thing with logic. I'm not just finding a "way". I'm thinking of 5 different approaches at the same time and discounting them one by one because they fail in some way. That's just how creativity works.

Writing incomplete thoughts makes their memory fade pretty fast for me too, so unless I write it out perfectly it's going to fade in about 20 minutes.

But the kicker, the real important thing, is [flow](https://en.m.wikipedia.org/wiki/Flow_(psychology). The motivation to complete a task, to enjoy a task.

→ More replies (11)

3

u/fuckingoverit Mar 06 '18 edited Mar 06 '18

Totally agreed, especially when you’re writing tests as you write smaller functions that you test and compose on your way back up to whatever the api entry point is. There is no, “I don’t know where I am” feeling anymore.

I resisted testing for so long because it seemed like a waste of time in the beginning and then too hard to add when I needed it. The examples I saw of testing seemed like extra work with little value (like java code where there was a test to test a setter that i could clearly see worked). And all the TDD “Tests must be first” nonsense didn’t work for me.

But one day, I worked on something that had a 6 - 10 second build time when testing the UI, but no delay when running tests. I was all about giving it a shot for that elusive efficiency. Sure, I had to adjust the way I wrote code. But it wasn’t long before I saw how I could just break problems down, and then test each case individually, without having to click around some UI or leave my IDE/command line. I was sold on the value (or at least the speed and ease and logic to it all). And when I had to do a major framework version upgrade with 1000+ tests, I couldn’t ever go back.

And I swear people who don’t test think I’m so far up my own ass when I tell them how much more enjoyable automated testing has made development for me. Or they’ll see something and they’ll wonder why I tested such a simple function. But it really is just a paradigm shift. I don’t test the UI much at all when building JS apps or hit my APIs when building backends. Now it’s all at the end and while I find problems, they’re significantly fewer and further between.

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

8

u/[deleted] Mar 06 '18

i love the little guy in the second picture he looks so focused and cute lmao.

7

u/smallbatchb Mar 06 '18 edited Mar 06 '18

I even experience this as a graphic designer.

I had a boss that never understood this. When I'm balls deep 6 hours into a project adding things, moving things, rearranging things, undoing and redoing shit, locking objects temporarily to edit other objects, creating complex effects that require 25+ steps to get there, layering objects in front of and behind eachother and you want me to "just come help with this thing for 10 minutes" I end up getting back to my desk and have no fucking idea where I was.

→ More replies (1)

5

u/[deleted] Mar 06 '18

This is also exactly like being a musician.

5

u/joeloare Mar 06 '18

I like the Schrödinger's Cat reference

5

u/puppiadog Mar 06 '18

My favorite is, "Can I interrupt you?". You just did dumbass.

20

u/[deleted] Mar 06 '18

For the life of me, I couldn't get any of my non-CS ex's to understand this.

41

u/AluminiumSandworm Mar 06 '18

this also applies to math, physics, chemistry, time travel plots, basically any complicated, in-depth abstract problem. so any potential future ex who does something of that sort would get it.

9

u/[deleted] Mar 06 '18

Well, it might be that I like my men to be in the more artistic side.

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

4

u/Pinealforest Mar 06 '18

Oh lord. This is my life, every day. Thank god for noise cancelling headphones though

4

u/DeltaPositionReady Mar 06 '18

SCRUM! Or Kanban. Seriously, I just started a new VR project with tonnes of deliverables and would be lost if I didn't arrange everything into a Scrum board.

4

u/ShortFuse Mar 06 '18

Next slide: "Screw it. I'll just use jQuery."

4

u/ScreaminPassion Mar 06 '18

I read once that for every 10 minute distraction, a programmer loses about 2 hours worth of work if they hadn't been distracted.

I totally believe it. Programming is tough.

4

u/insannadenny Mar 06 '18

As a wife of a work-from-home programmer I am feeling extremely bad and sorry now. :'(

3

u/Bo7a Mar 06 '18

My wife literally just leaned over and asked if she does this too often :p

3

u/speedy_snail Mar 06 '18

Lots of votes. Mankind would have invented time travel or calorie free chocolate by now if it weren't for the 'I know you're busy and have headphones in but this won't take a minute...' time vampires

3

u/Theemuts Mar 06 '18

And then you end up with a sleepless night because you start thinking about that problem as soon as you lie down in bed.

3

u/[deleted] Mar 06 '18

So accurate

3

u/Ninjalah Mar 06 '18

Then you find something that's tied to what you're working on isn't working correctly, so you say "let me debug it real quick..." And 3 hours later the original task is a side thought.

3

u/[deleted] Mar 06 '18

"You can save yourself hours of planning by spending a few days coding."

But seriously, this is why you should be writing things down. There's no point in trying to hold everything in your head. Design documents are a good idea.

3

u/[deleted] Mar 06 '18

As someone that programs for their company while simultaneously having to do help desk, this speaks to my soul. And no one ever understands why projects have to keep getting delayed...

3

u/zvive Mar 06 '18

This is my life and why I prefer freelance/remote work. The trick is do all work after midnight when nobody is in slack and wife won't interrupt me, go to bed after morning standup lol.

Me: what if I.... Eureka I figured it out...(wife calls)....

Me(5 mins later).... What was I doing? I don't remember, I think it had something to do with Reddit or hacker news though.

Five hours later... Fuck I've been in Reddit for five fucking hours...

3

u/[deleted] Mar 06 '18

To the people that recommend Noise Cancelling headphones. Yes that's something that will improve your life but I prefere a 4 meter thick reinforced concrete wall plus seperate entrance for technical staff. Or even better, dedicated building.

3

u/Liesmith424 Mar 06 '18

Ok, but the business saved $10 by using cubicles instead of offices, so this is much more efficient.

3

u/Theedon Mar 06 '18

The box is open and the Cat is alive.

5

u/killerzombi Mar 06 '18

psychology likes to talk about short and long term memory, similar to ram and hard drive space, but they neglect the fact that in practice there are several intermediary steps.

what you are using when focusing on the task is short term memory. which you then dump upon hearing you are being requested for a new task that will take your attention and short term memory to process through.

the real trick to bypassing the loss of this memory is to take advantage of the second stage of memory storage to hold onto what you were working on, before allowing your short term memory to dump and free up for a new task.

i'm not saying this is easy, but it is a thing the brain can do; it can be practiced to make it easier, and more natural.

2

u/TotesMessenger Green security clearance Mar 06 '18

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

2

u/mrmhk97 Mar 06 '18

Such people should be flogged and hanged publicly

2

u/[deleted] Mar 06 '18

ADHD in a nutshell. Except… you know… you probably would skip the second frame.

2

u/oneblockatatime Mar 06 '18

It's not just humans that do this, poorly designed interfaces are constant nags on my cognition (trying to figure out what to do) that pull me away from whatever I'm doing.

2

u/john_cornflake Mar 06 '18

I hope node god will forgive me for all of the times I bugged our senior devs about non-urgent bugs before making a jira ticket. I’m not a perfect man and beg for forgiveness and pray I am treated as a one who has found the true path.

2

u/justablur Mar 06 '18

Stick your tongue out of your mouth slightly, it's theorized to be an evolved behavior to communicate concentration. Also it weirds some people out and they'd be more likely to go back to their desk and send an email.

2

u/[deleted] Mar 06 '18

This is why I love working remote. Mute slack notifications after 10:30 and manually check them whenever I come to a natural pause.

2

u/Random Mar 06 '18

This is why open plan offices are such a good idea.

We should have more of them. So we can all get less done.

I used to go work in the art library at my university for this reason:

a) wasn't interested in books, and

b) nobody I knew so no interruptions, and

c) no wireless (at the time).

Now I just flat-out tell people that I don't answer emails or other requests when I'm in the flow. There is no such thing as an emergency email, and I don't send those, either.

2

u/kitkatbeard Mar 06 '18

I have had a surprising amount of luck combatting this problem by:

  1. Establishing an official process for how support-related questions should be handled.
  2. Training several reliable people in most of the non-programming things that I know, and making them part of the official process.
  3. Scolding people when they don’t follow the process and come straight to me anyways. This includes telling them straight up that every hour I spend with them is an hour that isn’t put toward whatever bug or new feature they want. I’m not mean or cold about this, but as calm and direct as I can manage.
  4. When all else fails, closing my door (thank glob I have one!) turning on my music, turning off email notifications, and signing out of IM.

It’s not a perfect system, but it’s better than it used to be for me.

→ More replies (1)

2

u/[deleted] Mar 06 '18

2

u/notsurewhatiam Mar 06 '18

Thanks. This is an excellent way to tell my boss that I can't do both coding and IT at the same time and that he needs to stop being cheap and hire a proper IT guy.

→ More replies (1)

2

u/_leukhoor_ Mar 06 '18

This happens in an open floor plan office every 10 minutes. It’s quite the rage at my company but finally some teams are seeing what it does for personal productivity and are reverting to personal spaces. I loved my own office. Door closed; deep concentration for hours. Now I’m in an open space with 30 folks constantly talking. Very hard to do any work that requires an extended time of concentration.

2

u/almostambidextrous Mar 06 '18

Legitimately had to check if that was posted here or in r/ADHD, a sub which I also frequency is equal to the inverse of wavelength. Isn't maths interesting?

Also, I I legitimately had to check if this was posted here, or in r/ADHD. We feel your pain, programmer bros.

2

u/boogs_23 Mar 06 '18

Ohhh now I get it. So programming is like when I play Factorio.

→ More replies (1)

2

u/[deleted] Mar 06 '18

But open floorplans are so good for collaboration! Assholes.

2

u/[deleted] Mar 06 '18

The obvious solution: comment your code to make ot easier to read and avoid these situations

Us apparently: Nah i'm gonna wing it i'll remember later anyways.

2

u/MikeFlame Mar 06 '18

Not a programmer but I work in IT and there will be times where I'm neck deep in working on 4 laptops at once and get asked something only to forget what I was doing on those 4 computers

2

u/IseraphumI Mar 06 '18

As a network engineer this hits home as well.

2

u/jenjerx73 Mar 06 '18 edited Mar 06 '18

Rudimentary Fact...Every POOF you lose one hair follicle!😐

2

u/[deleted] Mar 06 '18

Also Factorio.

2

u/logfin Mar 06 '18

Wow you guys are assholes

2

u/[deleted] Mar 06 '18

Me and two other guys were working on autonomous code for our FIRST robotics team. Every ten minutes a different person came by to ask if we were done yet.

We eventually just put up a sign that said "No, autonomous is not done yet."

2

u/NicolasTylerDoyle Mar 06 '18

Anyone that works in dispatch KNOWS

2

u/Emjay273 Mar 06 '18

This one is going on the wall next to the Tech Support Cheat Sheet. https://xkcd.com/627/

2

u/truckthisfeet Mar 06 '18

Confession time - As a dev working for big corporate company, I rarely get to solve such intellectual challenges this pic is referring to. I mostly end up doing plumbing of softwares, adding new features to existing software or when writing something new it hardly concerns itself with algorithms, it is mostly making sure incoming/outgoing data is good, tests are in place etc. etc. You get the gist.

→ More replies (4)

2

u/sportsbum69 Mar 06 '18

Respect the flow people

2

u/TK-Squared-LLC Mar 06 '18

If only I could just annotate my thoughts...

2

u/simplyjessi Mar 06 '18

If my headphones are on both ears - PLEASE DO NOT INTERRUPT ME!

2

u/Plemer Mar 06 '18

“The tea is leaving, but the interruption is staying right here with me.”

People should see Phantom Thread.

2

u/McAlexTheTerrible Mar 06 '18

Sending to my family 😁 Hope this helps bridge the gap

2

u/btcftw1 Mar 06 '18

This....FUCKING THIS! All the non-programmers at work, my friends, my wife will never understand!!!!!!!

2

u/321racing Mar 06 '18

The older I get the easy it is to happen, drives me crazy

2

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

I work for a startup company where i was hired as a devops but everyone kept quitting now I am the IT manager (with no experience in IT), lots of pop-ins..

2

u/Krescentia Mar 06 '18

Every.. damn.. time..

3

u/threecheeseopera Mar 06 '18

Possible infinite recursion in a,b,d,e,a, its good he was interrupted. Another bug prevented!