I honestly needed to hear this today, so thank you. I’m at work trying to work out someone else’s uncommented code and have just been staring at it mumbling to myself. I’m new to the position so I’m anxious my new coworkers will think I’m just dicking around… This is the validation I needed. Thanks everyone!
Say out loud to yourself, “What the hell is this?” or, “Why did they do it this way?” once in a while. Everyone around will think you know exactly what you’re doing.
exactly. like a former boss of mine said: if they are complaining, they are working!
From what I learned in my workplace, it seems that for most people the best way to appear competent is to continuously criticize the work of your colleagues
I don’t know your circumstances, but it is usually OK to just ask. Especially if the original author is around. Don’t do it all the time and you’ll be OK. Even can come with positive image out of it, if you ask the right questions.
Other than that, I found that the current alms like ChatGPT (an perhaps Claude) are very good at explaining code, most of the time, for some languages ;)
Hey, thanks for your concern. I’m asking tons of questions, don’t worry. Unfortunately the last 3 keepers of this code are no longer around to ask, thus the staring at code.
My personal favourite is to break from staring after 30 mins, exclaim, “Hang on, we’re going about this completely back to front!” then spend the next hour deriving from first principles, only to arrive back at the original problem, but now with slightly different notation. At which point I realise that all I’ve done is get myself back to my starting point… Then it’s back to the staring.
A true software developer will also raise their hands in celebration when they finally solve a problem that’s been plaguing them.
Even if you’re working from home, alone.
I often cackle maniacally when I solve something in a particularly effective way.
Mixed in with periods of
More of the latter than the former, unfortunately. But, well Boris met his demise with his hubris so perhaps imposter syndrome saves lives.
Sometimes I even stand up.
Granddads standing up, I’ve heard it all. /s
My math teacher in high school always said “math is 90% looking” and if you didn’t get the task directly: “look again” … Funny part is, that actually worked for most of the class xD
I used to work in an office with 4 other developers. It was a common occurrence to have the lights go off in the room, for energy saving.
Simone would wave their arm, then go back to staring.
God bless Simone
At least they’re moving. Sometimes it goes off and nobody reacts at all.
Sometimes figuring out what you’re supposed to do is most of the project.
True, true. Working in the dark was kinda nice on those days
I work in a dedicated room in my house (remote developer). During the day I don’t really need to turn the lights on—windows and a skylight. The sun sets and sometimes I really just don’t notice. My wife will come in at some point and scold me for working in the dark, claiming it’s bad for my eyes (as if staring at a screen all day isn’t already).
I actually rather enjoy that rather not-subtle marker of the passage of time and how entrancing “the zone” can be such that I fail to even notice that.
Aside from “learning to spell hypnotized or just trusting your phone knows better than you,” there are a bunch of tricks we use.
- Staring at it and going over the code path
- Talking to a proverbial duck
- Going out for a proverbial cheeseburger
- Sleeping on it
Half of these tricks force the brain to stop confirming and start seeing, which is our biggest error source. The rest of these tricks let the problem ruminate in our subconscious which is sometimes really good at solving shit.
1, 3 and 4 (in that exact order) have almost always gotten things moving again. rubber ducking it just feels “forced” to me.
You can just talk to one of your more inept coworkers.
I talk to myself almost constantly, even when not programming. Rubber ducking is second nature to me now. Though, IDK which came first.
Haven’t heard of the proverbial cheeseburger… gonna stare at this phrase for a bit.
If you don’t get it, go for a proverbial cheeseburger
I dunno, I don’t like unnecessarily interacting with strangers. I’m gonna go sit in another room and tinker with something else for now.
I refer to the process as “loading” and it helps so much when coding, debugging or even playing puzzle games
Don’t ask him, he will be angry and mumbling something about “the zone”.
Tbh a good builder/technician will do this too when faced with a complicated fix
Same thing; every action has an opposite reaction, whether it’s code or physical engineering
I’m a carpenter, I do high end stuff for rich people with really expensive pieces of wood. I’ll stare as much as I need to on the issues I have or even before starting anything. Need to think about every way it could go wrong.
How do you prepare for “world ends in nuclear holocaust?” Seems a bit difficult to account for.
Cup of tea
What I do is I read over something, take a nap, and then read it over again. If I don’t get it after that I’ll ask someone for help.
Taking a break helps a lot. I like to multitask for this reason and to not feel like wasting time. Also, important to remember to eat. There’s an obvious drop in my clarity of mind right before lunch.
100%. Really, just go do something other than what you’ve been focusing on, then come been to it. When I was coding, I would go take a walk when I’d get stuck. 9 times out of ten the answer would pop into my head when I’d stepped away. A few times I even dreamed of the answer while sleeping.
The unconscious mind processes what you were doing during REM sleep, so it’s really efficient way of getting things done.
I had a theoretical math professor. He said something along the lines of, “Being a theoretical math professor is the best job in the world. You can lean back in your chair, put your feet on your desk and close your eyes, and no one can tell if you’re working or having a nap.”
If staring at it isn’t giving the results you expect, try not staring at it. Math, much like photons, functions differently when observed.
Whenever I’m asked for help by IT colleagues, I never say I’ll help solve an issue. I just say “Sure, I’ll come help stare at it for a while” - it’s the most I can really promise.
I don’t like coding, so I became a systems administrator.
Today, I spent about three hours “coding” a script. Before I started my testing phase to see if all the code put together would work as intended, I just did a pass over the code. I literally just stared at it for a solid 20+ minutes to make sure it made sense.
I imagine any form of “real” programming is going to require a lot more staring for a lot longer just to make sure the code isn’t profoundly screwed up.
Sometimes, very rare but still, I can stare at the screen for the whole day and write zero lines of code. These rare days are the most demanding and the most stressful. Any monkey can “write code”, understanding the business logic of a complex application - that’s a very taxing mental work.
True!! I love that part!!
then I have to somehow explain what seemed obvious to me for that split second where magic struck…