𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 15 hours agoParadoxquokk.auimagemessage-square41linkfedilinkarrow-up1585arrow-down19
arrow-up1576arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 15 hours agomessage-square41linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up9·9 hours agocome the fuck on string bigIfTrue(Boolean size) { string toAssign = ''; if (size == true) { toAssign = 'big'; } else { toAssign = 'small'; } return toAssign; }
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up1·10 minutes agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareHasherm0n@lemmy.worldlinkfedilinkarrow-up6·8 hours agoWhere’s your interface and factory?
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up1arrow-down2·8 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; }String bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }true ? 'big' : '';Bloat. Nobody asked for else.
Where’s your interface and factory?
hey, this is for fun and pseudocode.
That is indeed a big one!