this post was submitted on 22 Jan 2024
228 points (97.5% liked)

Programmer Humor

19480 readers
203 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 1 year ago
MODERATORS
228
GTA 5 Java Coffee shop (programming.dev)
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 65 points 9 months ago (3 children)

The void function seems to return an int

[–] [email protected] 21 points 9 months ago (2 children)

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

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

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

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

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

[–] [email protected] 11 points 9 months ago

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

[–] [email protected] 15 points 9 months ago* (last edited 9 months ago)

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

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

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

[–] [email protected] 24 points 9 months ago

Ah yes, the C O F F F F S H O P

[–] [email protected] 7 points 9 months ago

This is great! When I play GTA, the only thing I want is HOT COFFEE.

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

Why does someone come up with java code for an in-game coffeeshop and then make an obvious mistake? Or is that on purpose and they are trolling?

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

The Simpsons: Hit and Run had a similar gag in one of the maps.

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

Bancon and bread are both 2?

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

GTA 5's very own "Hot Coffee" mod.