this post was submitted on 11 Aug 2024
1216 points (99.0% liked)

Programmer Humor

20039 readers
1959 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
[–] veganpizza69 13 points 5 months ago* (last edited 5 months ago) (2 children)
if ( parameters.teaMass <= TEA_BAG_WEIGHT ) { 
    return "Error: incorrect input. Check if tea bag was inserted correctly into water container."
 }
[–] [email protected] 8 points 5 months ago* (last edited 5 months ago) (1 children)

And then a user starts adding weights to the label until it passes.

[–] veganpizza69 1 points 5 months ago
[–] [email protected] 3 points 5 months ago

#define TEA_BAG_WEIGHT 0