747
Paradox (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] Blibly@lemmy.world 65 points 22 hours ago
[-] carotte@lemmy.blahaj.zone 137 points 22 hours ago* (last edited 22 hours ago)
[-] Skullgrid@lemmy.world 16 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 12 points 11 hours ago
[-] grrgyle@slrpnk.net 2 points 4 hours ago
[-] Axolotl_cpp@feddit.it 4 points 9 hours ago* (last edited 9 hours ago)
String bigIfTrue(Boolean size)
{
    if (size == true){ return "big" }
    return "small";
}
[-] bstix@feddit.dk 28 points 18 hours ago

Bloat. Nobody asked for else.

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

Or assignment. Just return.

[-] Hasherm0n@lemmy.world 13 points 17 hours ago

Where's your interface and factory?

[-] fruitycoder@sh.itjust.works 1 points 37 minutes ago

This actually gets loaded as a WASM module by a server less API service when a user ask if true return big

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

That is indeed a big one!

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

Programmer Humor

33083 readers
2047 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