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

Programmer Humor

19817 readers
63 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
[–] [email protected] 114 points 5 months ago (4 children)
/*
 * Gets stupidFuckingInteger
 *
 * @returns stupidFuckingInteger
*/
public double getStupidFuckingInteger() {
    return stupidFuckingInteger;
}

[–] [email protected] 38 points 5 months ago* (last edited 5 months ago) (1 children)

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

[–] [email protected] 32 points 5 months ago* (last edited 5 months ago) (1 children)

It has the return type declared to be double.

[–] [email protected] 19 points 5 months ago

I cannot read. Even better.

[–] [email protected] 19 points 5 months ago

This being a double physically hurts

[–] [email protected] 16 points 5 months ago (1 children)

Makes sense, people looking for int would find a double

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

Happy cake day!

[–] [email protected] 4 points 5 months ago (1 children)

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 (...)

[–] [email protected] 2 points 5 months ago

plenty of APIs in Java have documentation like that and it is worst when I read the documentation in order to find out the definition of the nouns and verbs used there and then it is just like that