𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 16 days agoParadoxquokk.auimagemessage-square65linkfedilinkarrow-up11
arrow-up11imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 16 days agomessage-square65linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up0·16 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-up0·15 days agoWhere’s your interface and factory?
minus-squarefruitycoder@sh.itjust.workslinkfedilinkarrow-up0·15 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-up0·15 days agohey, this is for fun and pseudocode.
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up0·15 days agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up0·15 days agoSo very wrong. “big” != “Big”
minus-squareOpenStars@discuss.onlinelinkfedilinkEnglisharrow-up0·15 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; }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.
Bloat. Nobody asked for else.
Or assignment. Just return.
true ? 'big' : '';My beloved
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!!