𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 16 hours agoParadoxquokk.auimagemessage-square41linkfedilinkarrow-up1602arrow-down19
arrow-up1593arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 16 hours agomessage-square41linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up10·10 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-up2·1 hour agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareHasherm0n@lemmy.worldlinkfedilinkarrow-up7·9 hours agoWhere’s your interface and factory?
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up1arrow-down2·9 hours agohey, this is for fun and pseudocode.
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!