736
Paradox (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] carotte@lemmy.blahaj.zone 134 points 21 hours ago* (last edited 21 hours ago)
[-] Skullgrid@lemmy.world 15 points 18 hours ago

come the fuck on

string bigIfTrue(Boolean size)
{
    string toAssign = '';
    if (size == true)
    {
        toAssign = 'big';
    }
    else
    {
        toAssign = 'small';
    }
    return toAssign;
}
[-] not@lemmy.dbzer0.com 11 points 10 hours ago
[-] grrgyle@slrpnk.net 2 points 3 hours ago
[-] Axolotl_cpp@feddit.it 3 points 9 hours ago* (last edited 9 hours ago)
String bigIfTrue(Boolean size)
{
    if (size == true){ return "big" }
    return "small";
}
[-] bstix@feddit.dk 27 points 17 hours ago

Bloat. Nobody asked for else.

[-] mcv@lemmy.zip 2 points 4 hours ago

Or assignment. Just return.

[-] marlowe221@lemmy.world 5 points 18 hours ago

That is indeed a big one!

this post was submitted on 02 Sep 2026
736 points (98.2% liked)

Programmer Humor

33083 readers
1984 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS