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

Programmer Humor

32710 readers
1375 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
[–] [email protected] 62 points 1 year ago

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

[–] [email protected] 51 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.

[–] [email protected] 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.

[–] [email protected] 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.

[–] [email protected] 30 points 1 year ago (1 children)

writes ten lines of code.

has abug in line 255.

ah yes code very much

[–] [email protected] 5 points 1 year ago

No no, 10 base 512 lines of code

[–] [email protected] 18 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.

[–] [email protected] 3 points 1 year ago

You must tame the python instead

[–] [email protected] 14 points 1 year ago

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

[–] lars 14 points 1 year ago (1 children)

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

[–] [email protected] 10 points 1 year ago

But some times function's whole design is wrong

[–] [email protected] 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.

[–] [email protected] 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...

[–] [email protected] 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.

[–] [email protected] 4 points 1 year ago

Yeah, write it down and continue sleeping.

[–] [email protected] 7 points 1 year ago

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

[–] [email protected] 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 ☹️

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 5 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 2 points 1 year ago

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