𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 1 day agoParadoxquokk.auimagemessage-square65fedilinkarrow-up1811
arrow-up1811imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 1 day agomessage-square65fedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up18·1 day agocome the fuck on string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up1·4 hours agoSo very wrong. “big” != “Big”
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up2·edit-24 hours agoshit time to git commit sudoku
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up2·4 hours agoSyntactically correct - the best kind of correct!!
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up5·edit-215 hours agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareHasherm0n@lemmy.worldlinkfedilinkarrow-up14·23 hours agoWhere’s your interface and factory?
minus-squarefruitycoder@sh.itjust.workslinkfedilinkarrow-up2·6 hours 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-up1·23 hours agohey, this is for fun and pseudocode.
Big if true
come the fuck on
string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }So very wrong.
“big” != “Big”
shit time to
git commit sudokuSyntactically correct - the best kind of correct!!
true ? 'big' : '';My beloved
String bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }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
That is indeed a big one!