2026-09-03 02:19 UTC
come the fuck on
string bigIfTrue(Boolean size)
{
string toAssign = '';
if (size == true)
{
toAssign = 'big';
}
else
{
toAssign = 'small';
}
return toAssign;
}
Replies (5)
-
@bstix@feddit.dk 2026-09-03 02:38
Bloat. Nobody asked for else.
-
@Hasherm0n@lemmy.world 2026-09-03 03:38
Where’s your interface and factory?
-
@not@lemmy.dbzer0.com 2026-09-03 09:50
true ? 'big' : '';
-
@Axolotl_cpp@feddit.it 2026-09-03 11:18
Not optimized enough String bigIfTrue(Boolean size) { if (size == true){ return "big" } return "small"; }
-
@OpenStars@discuss.online 2026-09-03 22:19
So very wrong. “big” != “Big”