𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days agoParadoxquokk.auimagemessage-square70linkfedilinkarrow-up1848arrow-down118
arrow-up1830arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days agomessage-square70linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up20·2 days agocome the fuck on string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }
minus-squareHasherm0n@lemmy.worldlinkfedilinkarrow-up14·2 days agoWhere’s your interface and factory?
minus-squarefruitycoder@sh.itjust.workslinkfedilinkarrow-up3·2 days agoThis actually gets loaded as a WASM module by a server less API service when a user ask if true return big
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up2arrow-down2·2 days agohey, this is for fun and pseudocode.
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up5·2 days agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up1·2 days agoSo very wrong. “big” != “Big”
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up2·2 days agoSyntactically correct - the best kind of correct!!
come the fuck on
string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }true ? 'big' : '';My beloved
Bloat. Nobody asked for else.
Or assignment. Just return.
Where’s your interface and factory?
This actually gets loaded as a WASM module by a server less API service when a user ask if true return big
hey, this is for fun and pseudocode.
Saved
String bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }So very wrong.
“big” != “Big”
shit time to
git commit sudokuSyntactically correct - the best kind of correct!!