𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 18 hours agoParadoxquokk.auimagemessage-square44linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageParadoxquokk.au𝙈𝙞𝙖@quokk.au to Programmer Humor@programming.devEnglish · 18 hours agomessage-square44linkfedilink
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up0·12 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-up0·3 hours agoString bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
minus-squareHasherm0n@lemmy.worldlinkfedilinkarrow-up0·11 hours agoWhere’s your interface and factory?
minus-squareSkullgrid@lemmy.worldlinkfedilinkarrow-up0·10 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' : '';Where’s your interface and factory?
hey, this is for fun and pseudocode.
Bloat. Nobody asked for else.