this post was submitted on 07 Oct 2023
687 points (96.5% liked)

Programmer Humor

32455 readers
902 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 23 comments
sorted by: hot top controversial new old
[–] MonkCanatella@sh.itjust.works 61 points 1 year ago

You run to your computer only to realize you just hallucinated some solution like chatgpt

[–] XanXic@lemmy.world 50 points 1 year ago* (last edited 1 year ago) (1 children)

This happens so many times. I'm a pretty firm believer in walking away for 15 minutes is a crucial part of the debugging process. It's just hard sometimes to know when to stop and stop trying shit for a bit.

Also rubber duck debugging, I'll talk to my dog but fuck it works so many times. Shes helpful.

[–] SpaceNoodle@lemmy.world 17 points 1 year ago

I used to talk to the graphic designer next to me. I work from home now, so my wife gets to play the role 24/7.

[–] riplin@lemm.ee 31 points 1 year ago

And then you fix the bug, test and it and it still doesn’t work and it turns out you weren’t even calling the function in the first place. I’ve had that happen several times.

[–] yournamehere@lemm.ee 30 points 1 year ago (1 children)

writes ten lines of code.

has abug in line 255.

ah yes code very much

[–] jana@leminal.space 4 points 1 year ago

No no, 10 base 512 lines of code

[–] Ddhuud@lemmy.world 17 points 1 year ago (1 children)

And when you're wide awake you notice it was a dream, and there's no "behave" statement in python.

[–] shotgun_crab@lemmy.world 3 points 1 year ago

You must tame the python instead

[–] lars@programming.dev 15 points 1 year ago (1 children)

If you know the line number, the bug is 99% solved

[–] the_lone_wolf@lemmy.ml 10 points 1 year ago

But some times function's whole design is wrong

[–] jscummy@sh.itjust.works 14 points 1 year ago

How are you sleeping after ten lines of co... oh it says coding

[–] teclo@feddit.uk 9 points 1 year ago (1 children)

My zombie brain is my pair programmer. This happens to me so frequently that it no longer surprises me and I now chill and let my sub conscious work it out.

[–] BeigeAgenda@lemmy.ca 6 points 1 year ago

Code a bit, think a lot, code some more, sleep on it, get a really good idea in the shower...

[–] henfredemars@infosec.pub 8 points 1 year ago* (last edited 1 year ago) (1 children)

Remember to take care of yourself. Just because you have an idea doesn't mean you have to test it right this second. You need breaks.

[–] BeigeAgenda@lemmy.ca 4 points 1 year ago

Yeah, write it down and continue sleeping.

[–] Crylos@lemmy.world 7 points 1 year ago

This is me almost every morning around 5am.. 😭

[–] stsquad@lemmy.ml 5 points 1 year ago (1 children)

This is why I leave a couple of hours break between coding and going to bed. If I don't I may well sleep but my dreams are full of repeating code that I don't wake up rested. Any "insights" from the dreams are usually wrong as well ☹️

[–] SpaceNoodle@lemmy.world 3 points 1 year ago

I fucked off work right hours ago and I know I'm gonna dream about bootloaders

[–] raubarno@lemmy.ml 5 points 1 year ago (1 children)
[–] bappity@lemmy.world 3 points 1 year ago

this has happened to me after I spent weeks trying to fix a small thing it made me scream

[–] xmunk@sh.itjust.works 2 points 1 year ago

As a programmer with ADHD... 100% yes.