sunnie to Programmer Humor@programming.dev · 8 months agono amount of documentation can save users from themselvesimagemessage-square83fedilinkarrow-up11.25Karrow-down113
arrow-up11.24Karrow-down1imageno amount of documentation can save users from themselvessunnie to Programmer Humor@programming.dev · 8 months agomessage-square83fedilink
minus-squareVeganPizza69 Ⓥ@lemmy.worldlinkfedilinkarrow-up13·edit-28 months agoif ( parameters.teaMass <= TEA_BAG_WEIGHT ) { return "Error: incorrect input. Check if tea bag was inserted correctly into water container." }
minus-squaregnutrino@programming.devlinkfedilinkEnglisharrow-up8·edit-27 months agoAnd then a user starts adding weights to the label until it passes.
if ( parameters.teaMass <= TEA_BAG_WEIGHT ) { return "Error: incorrect input. Check if tea bag was inserted correctly into water container." }
And then a user starts adding weights to the label until it passes.
unlikely
#define TEA_BAG_WEIGHT 0