𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days agoParadoxquokk.auimagemessage-square65linkfedilinkarrow-up1842arrow-down118
arrow-up1824arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 3 days agomessage-square65linkfedilink
minus-squaresolrize@lemmy.mllinkfedilinkarrow-up37arrow-down2·3 days agoI had to look it up, DLC is downloadable content.
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up20·3 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·3 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·3 days agohey, this is for fun and pseudocode.
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up5·3 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!!
minus-squareNihilore@quokk.aulinkfedilinkEnglisharrow-up18·3 days agohttps://imgs.xkcd.com/comics/ten_thousand_2x.png
I had to look it up, DLC is downloadable content.
Big if true
come the fuck on
string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }Bloat. Nobody asked for else.
Or assignment. Just return.
true ? 'big' : '';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.
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!!
That is indeed a big one!
https://imgs.xkcd.com/comics/ten_thousand_2x.png