CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 28 days agoThis is a glassprogramming.devimagemessage-square65linkfedilinkarrow-up1518arrow-down121
arrow-up1497arrow-down1imageThis is a glassprogramming.devCodyIT@programming.dev to Programmer Humor@programming.devEnglish · 28 days agomessage-square65linkfedilink
minus-squareShalien@piefed.projetretro.iolinkfedilinkFrançaisarrow-up5·28 days ago//This a glass // To get the quantity and type of content use // glass->qty : float // glass->content : glass_content
minus-squareLeFrog@discuss.tchncs.delinkfedilinkarrow-up5·28 days agoif glass.empty? make_sad_noise else homi.hydrate(glass.qty) end
minus-squarerbn@sopuli.xyzlinkfedilinkarrow-up3·28 days agoYou should check against homi.healthyCapacity first unless you want to drown them.
minus-squarered_tomato@lemmy.worldlinkfedilinkarrow-up4·28 days agoHow can you be so sure other readers will understand floating point numbers? Better include the entire IEEE 754 standard just in case.
//This a glass // To get the quantity and type of content use
// glass->qty : float
// glass->content : glass_content
if glass.empty? make_sad_noise else homi.hydrate(glass.qty) endYou should check against homi.healthyCapacity first unless you want to drown them.
How can you be so sure other readers will understand floating point numbers? Better include the entire IEEE 754 standard just in case.