this post was submitted on 18 Aug 2023
757 points (96.2% liked)

Programmer Humor

19817 readers
61 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
[–] [email protected] 49 points 1 year ago* (last edited 1 year ago) (1 children)

Shouldn't it be a float that goes between 0 and 1 instead of an int. In this situation they'd be the same thing, considering 1 would be max lol.

[–] [email protected] -3 points 1 year ago (3 children)

So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?

[–] [email protected] 7 points 1 year ago (1 children)

but degrees aren't integers, you can definitely also shower at 40,5°C

[–] [email protected] 3 points 1 year ago

Not to overdissect a meme, but it really should be an unsigned byte since that's what the digitiser would probably have as an input or output.

[–] [email protected] 2 points 1 year ago (1 children)

You're getting down voted, but you're right lol

[–] [email protected] 3 points 1 year ago

Yeah, don't know why people would describe temperature on a 0-1 scale

[–] [email protected] 1 points 1 year ago (1 children)

The temperature handle is either off or maxed out in this scenario. Not the temperature.

[–] [email protected] -1 points 1 year ago

Yeah, that's why it says "supposed to work"