ProgrammerHumor

neverWriteFunnyComments

neverWriteFunnyComments
https://i.redd.it/mtwb91fx81ef1.jpeg
Reddit

Discussion

IridiumIO

I had a comment that said “replace this with the less stupid idea you had”

3 years later when I came across it again, I could not remember what the less-stupid idea was

9 hours ago
New-Relationship-325
:r:

you really had the audacity to roast your own code but couldn't be bothered to write down the actual solution lmao

9 hours ago
Excellent-Refuse4883

8 hours ago
IridiumIO

I’ve done worse than that before - nearly 10 years ago I had a problem that I posted to StackOverflow, and got rinsed for it instead of anyone actually helping with the problem. After a few days hard work, I figured it out myself, and went back to SO seething with hatred, and left a comment along the lines of “Solved, and I’m not sharing how..”

Guess who had the exact same problem and stumbled upon his own StackOverflow post 5 years later… I never actually figured out a proper solution the second time around either

7 hours ago
NewManufacturer4252

For how much of the world relies on code you would think there would be better resources

2 hours ago
GPX101

Take my upvote you…

7 hours ago
hans_l

I have a truly marvelous demonstration of this function which this comment is too narrow to contain.

6 hours ago
non-sequitur-7509

Ah, my guy Fermat

5 hours ago
Nick0Taylor0
:j::cs::ts::re::bash:

I once found a Todo of mine that said "This isn't the right way to do it, replace with" I don't remember what got in the way of me finishing that sentence but it still haunts me because that piece of code is still there, I couldn't figure out what I wanted to do instead.

2 hours ago
luciusDaerth

Not a programmer, but I am a DM, and I hit myself with that all the time. Abbreviations? Yes. Definitions??

42 minutes ago
TagJones

You probably did replace it but forgot to update the comment

4 hours ago
MoronicForce

Do not kill the part of you that is cringe - kill the part of you that cringes

9 hours ago
Alsharefee OP

3 hours ago
Proof_Car2125

I like coming across my old comments in master like

// temp fix to return xyz, will refactor when daves PR is merged

And then seeing that commit was 5 years ago.

9 hours ago
cdrt
:py::rust::bash:

And Dave’s PR still isn’t merged

9 hours ago
not_a_doctor_ssh
:py::j::ts::bash:

Dave's a carpenter in Scandinavia now

7 hours ago
Moomoobeef
:cs:

Making a trek all the way to Dave's off-grid cabin just to knock on his door and ask him to fix the conflict so that it can finally be merged (the issue was already closed accidentally after someone merged a similar but unrelated fix)

7 hours ago
phil_davis

I once saw a comment that was like

// Coming soon: the ability to [insert some extra bit of functionality here]!

The comment was several years old, and the functionality of course did not exist.

7 hours ago
just_another_swm

I disagree wholeheartedly! Had a component that had to have exactly 3 objects in an array so I added a check and warning for it. The warning was the whole Monty Python holy hand granade of saint Antioch speech rewritten for whatever that object was. I wrote it like 2-3 years ago and everyonce in a while a new team member finds it and they crack up and share it in our team slack. No code I have ever written has brought me as much joy than that funny error message that only a dev will ever see.

8 hours ago
Snuggle_Pounce
:ru:

that’s epic enough I kinda want to write code that needs 3 of something.

7 hours ago
nytsei921

idk about you but i enjoy reading my old improv code comments

9 hours ago
Suspicious_Sandles

When I come across something just silly or funny i appreciate past me

9 hours ago
Duke0200

I was working with homography matrices (basically matrices to convert from one coordinate system of an image to a possible real world coordinate system or another image coordinate system if you skew it or something) at work, to which I made the variable name homo_matrix to shorten it, and given it was June in America, made a comment of Happy pride! So we'll see how the code review goes when we finish all of it.

9 hours ago
DuTogira
:py::cp::c::asm:

I made a wrapper around python to execute the python commands in a docker container. Called it dython.

The file descriptor was “Mike Tyson’s vacuum cleaner”

9 hours ago
LittleMlem

Reminds of the story of one guy that looked at his code and was trying to figure out what the hell was the variable "feet", he ended up looking through the git history and saw that ot changed from LegendHandles to LegHands and finally to feet

9 hours ago
Level-Pollution4993

The code that sent us to the moon has funny comments and references for the whole world to see, even decades later. You'll be alright.

9 hours ago
bob152637485

I'd like to see, if you have a source :)

4 hours ago
Level-Pollution4993

Here!

And a video talking about it

4 hours ago
ilikedmatrixiv

I ran into an old colleague from my first job once. I was more immature back then, although maybe not that much.

Apparently a lot of my old code was still in use and going through my dumb and funny comments was a rite of passage for the new people. They were even appreciated.

All I heard was that my code was still in production, which was a pretty big ego boost.

6 hours ago
Actes

My old comments are always like "yeah this isn't the best code, but it's functional and that's what matters."

I agree old me, I don't need to remove the duct tape and fix it if the duct tape is good enough.

8 hours ago
stratospheres

Somewhere out there, in code written for Lloyd's of London, lurks my comment "You gotta fight... For your right... To write the byte.."

8 hours ago
nsefan

//I can haz mallocs trooolllolololo

😫

9 hours ago
MissinqLink
:js::g::hamster::j::py::holyc:

This is me reading old code with variable names of poop and fart. Hard to make sense of what is going on.

8 hours ago
radiells
:cs::js::powershell:

Remember, you can joke verbally here and now, when you know it is appropriate. 10 years down the line written joke may be cringe, or it may even be a reason to cancel you.

8 hours ago
RareRandomRedditor

Even more a reason to write your comments. Why should we bow in advance to a world we do not want to become a reality? 

4 hours ago
Slggyqo
:py:

“Who wrote this stupid shit?”

“…damn it”

7 hours ago
techiedatadev

I regularly write “I know I shouldn’t do it this way there has to be a better way but my brain doesn’t know how” lol

8 hours ago
Typhii
:js::bash::p:

We took over a legacy project from the company we merged with. It had useless 'funny' comments, jokes as class names, barley any documentation and if a function had documentation it was wrong.
We're almost working on this project for two years, and we're still not done removing all the legacy bullshit.

5 hours ago
faultydesign

You want to nibble on your old codes tit?

5 hours ago
Pixl02

I had the word "DOZENA" instead of "doesn't" in my comment, because some person I knew kept pronouncing it that way, it's not code related but it gave me a hefty laugh looking at it.

4 hours ago
crypto_since2017

alright, i wont write funny comments but this post made me laught so i guess i broke the rules

2 hours ago
fungihead

TODO: something better than this

2 hours ago
CooperNettees

my funny comments are always sad funny and when i find them again they hit the same

1 hour ago
xaervagon

"The revenge of the return of the son of the <task>"......................................yeah.

1 hour ago
WilliamAndre

I had a variable named has_holes that I really liked but it never made it past the code review, I still often think about it a few years later.

54 minutes ago
Bannon9k

I once saw a function for removing the tail end of data as a circumciseFieldName.... These are the kind of code comments and functions I live for...

30 minutes ago
RamonaZero

My favorite one is “something is fucking up our shit” during a memory overwrite issue in assembly, so I had to manually alloc a protected buffer to prevent it from happening >:(

4 minutes ago
BelikeBelock

bro just coded his way into the matrix

9 hours ago
Kasiux
:j: :cs: :ts:

"funny" code comments and "funny" commit messages are always cringy. I once saw a commit in our repo with the description "beautifully crafted in the Alps -- Co-Authored-By 6 people"

9 hours ago