747
Paradox (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] Skullgrid@lemmy.world 16 points 19 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 10 hours ago* (last edited 10 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 1 hour ago

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

this post was submitted on 02 Sep 2026
747 points (98.1% 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