this post was submitted on 13 Jun 2023
43 points (95.7% liked)
Programmer Humor
19512 readers
446 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I always figured this was a nice joke but obviously not code that would ever actually be written by someone... Then I ran into this millimeter to inch conversion code in production this past month:
Even worse is, that the accurate conversion to one inch is 25.4mm.
even worse, the first
if
statement randomly has brackets while none of the others do