𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 2 days agoParadoxquokk.auimagemessage-square69fedilinkarrow-up1843
arrow-up1843imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 2 days agomessage-square69fedilink
minus-squaresolrize@lemmy.mllinkfedilinkarrow-up38·2 days agoI had to look it up, DLC is downloadable content.
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-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-up1·2 days agohey, this is for fun and pseudocode.
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up5·edit-22 days agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
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-squareNihilore@quokk.aulinkfedilinkEnglisharrow-up15·2 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; }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!!
That is indeed a big one!
https://imgs.xkcd.com/comics/ten_thousand_2x.png