this post was submitted on 15 Jul 2025
463 points (94.8% liked)

Programmer Humor

37332 readers
472 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
(page 2) 50 comments
sorted by: hot top controversial new old
[–] TankieTanuki@hexbear.net 9 points 1 week ago

No need to reinvent the wheel. Use the isEven API!

[–] kreskin@lemmy.world 8 points 1 week ago

no unit tests huh.

/s

[–] RustyNova@lemmy.world 8 points 1 week ago (2 children)
load more comments (2 replies)
[–] AlyxMS@hexbear.net 7 points 1 week ago (1 children)

What you do is use a for loop to generate a million lines for you, then paste it in. Writing it manually is moronic. You can easily make it support numbers above 1,000,000 too this way, talking about scalable

[–] balsoft@lemmy.ml 4 points 1 week ago (1 children)

No, silly. You ask chatgpt to write (steal) a loop that would generate all those lines. Haven't you heard about meta-vibe template-programming?

load more comments (1 replies)
[–] ClathrateG@hexbear.net 7 points 1 week ago* (last edited 1 week ago) (1 children)

apart from everything else, have they never heard of a switch statement

[–] roux@hexbear.net 8 points 1 week ago

Switch statements is the next lesson in this bootcamp.

[–] voodooattack@lemmy.world 7 points 1 week ago* (last edited 1 week ago)
bool isEven(int value) {
  return (int)(((double)value / 2.0) % 1.0) * 100) != 50;
} 
[–] Treczoks@lemmy.world 6 points 1 week ago

Good if you are rated by an AI that pays for LOCs.

[–] Kuma@lemmy.world 6 points 1 week ago

I am more amazed that he didn't stop at 10 and think "damn this is tiresome isn't there a one liner i could do?". I want to know how far he went. His stubbornness is amazing but also scary. I haven't seen this kind of code since back in school lol lol lol

[–] xorollo@leminal.space 5 points 1 week ago

This joke was not written by the dude pictured. The author wrote a book of funny code jokes.

[–] Midnitte@beehaw.org 5 points 1 week ago

When did Thor become the dev for Yandere Simulator?

[–] FireIced@lemmy.super.ynh.fr 5 points 1 week ago

that's some good code right there

load more comments
view more: ‹ prev next ›