this post was submitted on 10 Jul 2024
1060 points (93.8% liked)

Programmer Humor

18971 readers
733 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] Fades@lemmy.world 183 points 1 month ago* (last edited 1 month ago) (29 children)

WHY IS THE HEALTH INPUT PARAMETER A GODDAMN STRING?????????????

Why are you passing ‘%’ inside said goddamn string?!?! Not to mention the static reference instead of the actual instance.

Shame on you

[–] FilthyShrooms@lemmy.world 14 points 1 month ago (2 children)

They use a look-up table with every value from 0% to 100%

[–] Mesa@programming.dev 4 points 1 month ago

Floating points included for thoroughness!

load more comments (26 replies)