this post was submitted on 28 Mar 2024
325 points (96.3% liked)

Programmer Humor

20673 readers
632 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
 
(page 2) 11 comments
sorted by: hot top controversial new old
[–] [email protected] 51 points 10 months ago (5 children)

Probably still better than bool a; bool b; int c;...

load more comments (5 replies)
[–] [email protected] 18 points 10 months ago* (last edited 10 months ago) (2 children)

This has likely been done intentionally for humour's sake, but take a look at some of the names in Apple's AppKit framework, like https://developer.apple.com/documentation/appkit/nspreviewrepresentingactivityitem

load more comments (2 replies)
[–] [email protected] 11 points 10 months ago* (last edited 10 months ago) (6 children)

I don’t see the benefit of this long naming convention...

It still allow bug to exist... like the fact that, with this code, the player can still play with 0 Hp.

Should have been better to put a "if(health <= 0)" instead of "< 0"

load more comments (6 replies)
[–] [email protected] 35 points 10 months ago (4 children)

ThisCommentsMakeItSoThatYouHateMeForWritingLikeThisSeriouslyICanNotStopPleaseSendHelp

[–] [email protected] 14 points 10 months ago

Makes it even better that I'm on mobile so the text wrapped half way through a word.

[–] [email protected] 5 points 10 months ago (3 children)

Would you like a snake to replace your camel?

[–] [email protected] 7 points 10 months ago (3 children)

Careful, Pascal doesn't like it when you call him a camel

load more comments (3 replies)
load more comments (2 replies)
load more comments (2 replies)
[–] [email protected] 4 points 10 months ago

Visual Basic looks strange nowadays, huh...

[–] [email protected] 16 points 10 months ago

Yea this looks productive.

Imagine how useless the LSP suggestions are.

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

This is getting absurd, variable names have become variable sentences.

load more comments (1 replies)
[–] [email protected] 71 points 10 months ago

Self-documenting code, high contrast… Carry on.

load more comments
view more: ‹ prev next ›