this post was submitted on 22 Jan 2024
216 points (97.8% liked)

Programmer Humor

25511 readers
2001 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
[–] Hack3900@lemy.lol 57 points 2 years ago (3 children)

The void function seems to return an int

[–] infinitepcg@lemmy.world 19 points 2 years ago (2 children)

I wonder how often someone walks in and tells them about the mistake. Do the baristas have a standard response?

[–] KingJalopy@lemm.ee 20 points 2 years ago (1 children)

It's a video game so I'm guessing they do have a standard response

[–] infinitepcg@lemmy.world 4 points 2 years ago

Haha, I completely missed that it's a game.

[–] aniki@lemm.ee 11 points 2 years ago

"Sorry, I only write vegan react...and python."

[–] gsfraley@lemmy.world 13 points 2 years ago* (last edited 2 years ago)

Oof, and there's only ten lines of code, too. And they look very purposefully written out.

[–] SzethFriendOfNimi@lemmy.world 3 points 2 years ago

Yes, but maybe there’s some magic going on so that the lack of a type assigns some value that results in void?