𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 2 days agoParadoxquokk.auimagemessage-square62linkfedilinkarrow-up1833arrow-down117
arrow-up1816arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 2 days agomessage-square62linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up19·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-up2·1 day 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-up1arrow-down2·2 days agohey, this is for fun and pseudocode.
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up1·1 day agoSo very wrong. “big” != “Big”
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up2·1 day agoSyntactically correct - the best kind of correct!!
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up5·2 days agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
Big if true
come the fuck on
string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }true ? 'big' : '';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.
So very wrong.
“big” != “Big”
shit time to
git commit sudokuSyntactically correct - the best kind of correct!!
String bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }That is indeed a big one!