this post was submitted on 06 Jul 2024
1420 points (99.4% liked)

Programmer Humor

26261 readers
1530 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] yetAnotherUser@discuss.tchncs.de 109 points 1 year ago (4 children)
/*
 * Gets stupidFuckingInteger
 *
 * @returns stupidFuckingInteger
*/
public double getStupidFuckingInteger() {
    return stupidFuckingInteger;
}

[–] mrpants@midwest.social 37 points 1 year ago* (last edited 1 year ago) (1 children)

The lack of a return type declaration makes this sooo good.

[–] expr@programming.dev 26 points 1 year ago* (last edited 1 year ago) (1 children)

It has the return type declared to be double.

[–] mrpants@midwest.social 16 points 1 year ago

I cannot read. Even better.

[–] Amir@lemmy.ml 16 points 1 year ago

This being a double physically hurts

[–] ILikeBoobies@lemmy.ca 15 points 1 year ago (1 children)

Makes sense, people looking for int would find a double

[–] AdNecrias@lemmy.pt 2 points 1 year ago

Reminds me of a job I had where c# summaries were mandatory and people used a documentation generator just like that.

/// Ages the Category. public int AgeCategory (...)