this post was submitted on 15 Jul 2025
457 points (94.7% liked)

Programmer Humor

37322 readers
45 users here now

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

Rules:

founded 6 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] JackbyDev@programming.dev 44 points 6 days ago (1 children)

This is why this code is good. Opens MS paint. When I worked at Blizzard-

[–] benjaminb@discuss.tchncs.de 8 points 6 days ago (1 children)

And he has Whatever+ years of experience in the game industry…

[–] onlooker@lemmy.ml 5 points 6 days ago

Which sounds impressive until you realize a janitor who worked there for the same amount of time could claim the same.

[–] Patches@ttrpg.network 15 points 6 days ago

Y'all laugh but this man has amazing code coverage numbers.

[–] ICastFist@programming.dev 5 points 5 days ago (1 children)

Oh shit, gotta check the negative numbers as well!

[–] Shayeta@feddit.org 1 points 5 days ago

You can do that more efficiently by using abs(number).

[–] sik0fewl@lemmy.ca 10 points 6 days ago (2 children)

This code would run a lot faster as a hash table look up.

[–] PieMePlenty@lemmy.world 6 points 6 days ago

I agree. Just need a table of even numbers. Oh and a table of odd numbers, of course, else you cant return the false.. duh.

[–] Valmond@lemmy.world 5 points 6 days ago

In a Juliana tree, or a dictionary tree if you want. For speed.

[–] kreskin@lemmy.world 8 points 6 days ago

no unit tests huh.

/s

[–] Kuma@lemmy.world 6 points 6 days 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

[–] thatradomguy@lemmy.world 9 points 6 days ago

Can you imagine being a TA and having to grade somebody's hw and you get this first thing? lmao

[–] Treczoks@lemmy.world 6 points 6 days ago

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

[–] Randomgal@lemmy.ca 3 points 5 days ago

Yeah but did you know he worked for Blizzard tho

[–] keepcarrot@hexbear.net 4 points 6 days ago

I want to assess coders by lines written! The more the better!

[–] xorollo@leminal.space 5 points 6 days ago

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

[–] last_philosopher@lemmy.world 4 points 6 days ago (1 children)

To be fair, the question is "Write a function that simultaneously determines if the number is even and works as a timer"

[–] JackbyDev@programming.dev 3 points 6 days ago

sleepSort meets sleepIsEven

[–] helvetpuli@sopuli.xyz 2 points 6 days ago

Oh. I thought that was Elixir until I zoomed in.

[–] Packet@hexbear.net 3 points 6 days ago

The end user yearns for their machine to be utilized fully, so instead of that, you can import full deepseek model to do the task

[–] 6stringringer@lemmy.zip 2 points 6 days ago

Thanks to goodness, finally. A (giggle & snort) solid algorithm. There ya’s go set yer clocks & go get a haircut.

[–] DrunkAnRoot@sh.itjust.works 2 points 6 days ago

this is like the making chess one

load more comments
view more: next ›