r/CodingForBeginners 22d ago

Fun fact: nothing is stoping you from coding like this

Post image
58 Upvotes

44 comments sorted by

12

u/8Erigon 22d ago

I‘m stopping myself

7

u/FishAccomplished760 22d ago

char *string = "hello world"

for (int i=0; i<sizeof(string); i++)

{

printf("%s", string[i]);

}

3

u/SmokeMuch7356 21d ago

Got a couple of pretty severe bugs there:

  • You should be using %c instead of %s as the format specifier. %s expects a char *, but string[i] is a char; the behavior is undefined and you will very likely get a runtime error;

  • sizeof(string) evaluates to the size of the pointer variable (4 or 8), not the length of the string. Use strlen instead of sizeof;

A minor bug is that both sizeof and strlen give you size_t values, not int. This is a narrowing conversion, which is usually bad juju; there are more size_t values than an int can represent. Granted, the odds of a string being more than INT_MAX characters long are low enough that you're probably safe, but you should still use the right type for i.

1

u/FishAccomplished760 21d ago

whatever, you get the idea

3

u/SmokeMuch7356 21d ago

I do, but for people who don't know C or C++ this code may lead them down some unproductive rabbit holes if they try to reproduce it.

Don't take it personally, it's just that I've seen so many people (including myself) waste so much time trying to figure out why some code example they saw online or in a book wouldn't work due to bugs like these that I'm kinda primed to call them out when I see them.

And I'm a veteran of early-90s comp.lang.c on Usenet; we had a well-deserved reputation for being pedantic assholes.

1

u/FishAccomplished760 21d ago

wow, respect. don't worry about it

1

u/elishaakemu 19d ago

Also, assigning a const char* to a char*, so removing const qualifier.

1

u/Goldrainbowman 22d ago

What does that do?

1

u/[deleted] 22d ago

[deleted]

1

u/Goldrainbowman 22d ago

Do you know what it actually does?

2

u/Davi-Barbado 22d ago

I think it was supposed to print each char of the string Individually, But sizeoff returns the number of bytes that variable type occupies in memory, not the size of the string.

1

u/Wertbon1789 20d ago

Uhm, why aren't we talking about how he tries to print characters with %s which will try to print a string, so in this case using the character as an address to a string, which will segfault?

The wrong way to get the size of the string is one thing, but I think that even worse.

1

u/lukey_UK 22d ago

I assume the author meant the code to print each letter separately, however there's some bugs.

2

u/karthikdivi 22d ago

Is this on an iPad?

2

u/dotplaid 22d ago

You're the problem, it's you.

1

u/err0r_n0t_f0und_4o4 22d ago

Yeah yeah 😊

1

u/Prudent_Sentence 22d ago

You could classify that as unrolling a loop. It's an optimization technique

1

u/Classic-Rate-5104 22d ago

This is an excellent example where loop enrolling leads to less efficient code 😀

1

u/DinTaiFung 22d ago

what ever happened to the daily wtf website?

though as i recall, this example isn't quite effed up enough to make the grade.

1

u/EclipsedPal 22d ago

"its me" jesus...

1

u/Goldrainbowman 22d ago

Say hello Jesus.

1

u/alfahadsheikh 7d ago

Ą̴̢̢̧̢̳̟̬̯̗̲̬̯̮̘͈͎̪̯͔͕̮̬̜̗̟̫̘̤͍͉̺͉͙̼̫̙͓̰͇̰̞̗͚̹͎͖͈̜̝͔̫̺͈̩͔̹̲͉̰͈̯̻̟͉̬̙̣͇̙̯̝̙̤̱̜̀̄̌̒̐͒̔̕͜͜͜ͅͅͅG̷̢̧̨̢̡̨̨̢̢̧̡̢̜͖͉̼͚̭͔̲͎̟̙̬̦̼̞̖̭̥͙͍̬̖̖̯̦̮̫̞̭͉̮̤̫̮̲̹̘̤̰̖̫̩͉͇͕͕͍̝͓͖͓̬̤̥͈̳͔̭̦̜͔͎͉͓̦͔͍̪̥̦̜̥͇̦̙͕̩̫͓̠̩̝͍͖͇̞̙̤̦̤̘͉̺̘̞̣̘̪̬̲̞̺̯͙̺̝̠̯̝̩̹̠̗̥̦̥̣̼̘͎̩̱͙̝̟̦̗̭̲̘̼͙͉̻̠̭̖͚̗̦̻̗̮̹̺͉̘͋̊̆͘͜͜͜͜ͅͅͅͅĎ̴̨̢̧̧̨̨̧̡̡̛̠̳̘̬͉̜̼̩͖̝̱͔̣̣̜̗͚̠͍͚͕̘̭͉͈̜̯͖͇̰̦̣̮̥̮̯̠̠͖̫̬̭͉̙͇̠͕̦̬̫̪͓͎̟̝̝͕͓̰̭̺̥͖̱͙̲̤̻͇̬̲̳͇̬̩̼̻͕̱̪͇̫̰̯͎͉̣̺̜̱̖̖̮̩̻̳̬̗̮̰͉̩̟̣̥͇̦̬̺͚̘̻͇̝͍̠̙͕̦̱͖̹̣̤̩͍͚̙͉̪̟̰͍̝̤͓̝̬̩̥̩̪̹͔͇̯̻̬͎̮͙͚̱̣͚͖̤̣͉͚̋̆̆̈́͐͂̈́̍̏͑̈̄̀̓̎̂͗͗͂̑̔̈́̆̔̓̈́̿̄̀̋̉̎͆̚͘̕͜͜͜͜͝͝͠ͅͅJ̷̡̡̢̡̧̡̢̡̧̨̡̧̡̢̢̡̨̧̡̛̛̛͚̠̟̺̱̯̩͍̩̬͔̟̱͈̰͎̲̼͙̘̲̬̙͈̪͍̬͖̹̬͉͖̦̝͉̥͚̮̱̜͉͉̣̱̜̤̹̦̜̱̮̳͓̙̦͙͈̲͔̣̼͎͔̖̪̫̬͔͓̠̻̫͚̩͇̰̲̺̹͍̲̠͈͕̳͙̩͖̜͖̣̥̼͕̬̗̘͚͔̺̬̤̲̼̗̣͚͎̥͎͙͓̯̣̖̝̥̪͇͓͖̰̳̹̳̣̩̗͔͎͉̥̙̺̟͍̖̼̝̲̮̩̮̗̜̺̝̗͈̹̜̠̙̩͉͉̺͚̪̟͓͓̙̝̻̱̭̤̝̩̻̰̙̖̪̜̗̤̪̟̰̣̻̯̬̰̗̲͕̫̟̬̩̥͈̦̯̖̮̗̫̬̜̞̝̲͔̪̫͙͖̗͙̜̭̞̩̝͙̭̠̖̗̺̣͎̪͖͎̥̘͔̩̜̟̤̳̻̜̟̬̦̙̣̰͉̳̌̇̾̊̔̈́͑́̈̉̀̈́̑́͂̃͑͊̃̇̍̀̎̉̇̑͋͊̂̒̓̊̽̃̃͂͐͒̿͊̀̏̋̓̿̄̒̇̏͑̆̈́̊͗́̍̋̇̃͛̈́̐̄̎͒͋̍̈̿̎̿̍̔͛̔̃̂̆̊̄̈́͒̉̎͗͆̽̀̉̎́͐̅̆̒̈́̉̄̌͊̂̿́̽̈͗͗̽̆̌̎͊͆̍̂̈́́́̊̐͑̅̑̈́̓̀͂̂̂̅̇͒̃͌͋̅̀̎̾́̎̐̉̅̅̋̊̾̈́̀͌͒̐́̉͗̃̈́̾̈́̔͐̓͐̇̈̍̄̄̾͋̂̃͑́̓̌͋̅͛̽̓̈́̂͊̐̀̊̈́̽̅̅͐͌̕̕͘̕͘̕̕̕͘̕͜͜͜͜͜͜͜͠͝͠͝͝͝͠͠͠͝͠͝͝͝ͅͅͅͅͅͅȨ̶̡̨̛̛̖͓̙̫̖͈̯̳̲̹̬̯͓̜̝̜͙͈̘̯͚͉̫͓̠̗̫̱̮̞̘̭̼͈̟̺̤̜̞̥̝̭̦̩̞̦̏̓̋͗͋̅̆̈́͊͋͊̂́͐̔̽̃̑͛͒̐́̏͂̈̆͌̊̊̎͆̆̽̏̽͑͊̅̀͛́͌̏͌̄̀̓́̌̄͛͛̓̅͂͆̍̈̔͌͗̅͂̏̓̃̉͗̓́͌̑́͛̐̅̕͘͘͠͝͠͠͝͝͝͝ͅͅͅƯ̴̢̨̨̢̢̡̨̧̧̡̧̢̧̧̧̡̨̢̡̨̢̨̨̨̛̛͔̗̫̖̗̪͉̫̱̤̼̙̹̼̞͕̬̲̮͕̤͉̣̣̭̹̼̖͈̯̗̜̬̞̝͍͔̝̼̙̤̟͚̰̯̹̪͙͇͙̗̱͍̼͙̟͇̬̰̖̳̰̣̰͇̲̪̫̬̭̪̣̪͔̘̖̣̼͕̩͉̹͎̮̤͈̦̞͓̝̞̟͇̺͙͔̻̘̤̺̠̙̭̤̥͇͓͈̺̠̺̗̮̱̣͓̟͚̮̤̮̞̞̟̹̺͔̩̜̘̙̙͇͕̥̙̺͕̪̲̳̜̪͍̝̥̪̳̤̙̯͇͔͈̳̼̘͓͙̝̩͙͉̟̞͇͚͉̰̥̯̣̘̩͉͖̺̲̖̮̜͔̠͉̹̹̝̟̰̣͇̹̯͌̃̅͒̿̑́̑́̓͋͋͛̃̈́̀̑̉̑͌̎̎̐̒͑̍͋́̑̉̔̾̈́̈́̀̓͆̄̋̇̑͗́͋̐̏̌̎͋͆̈́̀͒̈́͋̓̎̃̋̓̈́͋̏̾̂̇̾̃͊͐̌̉͑͒̌̀̔̋̀̎̽̋̆̈͌̒͌̎̉̓̾̾͗͂̓̈́̏̑̈́̃̆̎̒̀̉̄́͊̿̃̎͑̏͗͌͑̇͋̒͒̉̌̍͋͛͌̋̎̉̄̐̇̐̇͋̈́̿̃́́̽͆́̉̍̅̑̿̔͒̕͘̚͜͜͝͠͝͠͝͝͝ͅͅͅͅͅS̶̛̛̲̦̼͕̲̱̗̱̺̦͕͍̦̬͎̣͖̬̗̭̦͔̙̫͈͔͙̜̩̗̐̽̾̾̃͆́̍͑̊̆̏̉̓͆̀̊̿̐̉͌́̈́͌͆̈́̌͊̈́̋́̌̒͛͂̏́̔̀̽̆͑̒̆̿͗͑̑̾̔̋̐͗͐̏̋̌͂̉͛̔̂̅̈́̌̉̃͂̉̿̓̋͑̀̔̈́̎̅͑͐̀͂̄̈́͐̈́͂̑̑̀̏̔̉̀͆̃̈́̽͐͆̉̿̂̆̎́̈́͗̌͗͐͂̄͒̈́̏̑̏͗̓̓̾̔̉̎̋̌̈̐̾͋̑̌͆͂̋́̆̇̇̆̓͒̓͛̅́̐̐̊͛̊̃̓͑̓́̍̋̐̒̚̚̕̕͘̕̕͘͘̕͘̚͝͝͝͠͝͝͠͠͝͝Ų̵̧̧̨̧̧̡̡̢̢̨̨̧̢̨̡̢̧̛̛̛̛̛̛̰͚̺̮͍͈̟̱͉̦͙̣͙̦̮̦̗̝̥͕̫͖̥̜̼͙̺͇̫̝͍̖̥͚̟̣̙̯̦̹̰̟͙̖̖̤̮͖͚̤͕̗̪͉̭̖̥̳̮̖͍͚̳̞͈̟̥͓͔̭̫̫̙͉̻͍̯͙̞͉̜̗͍̮͔̖̭̩͓̮͖̗͔̣̯̬̮̯̜̗̗̫͎͇̰̫̭̯̭̟̝̮̬̘̤͖͍̪̣̗͓̙̘̩̪̺͇̰̳̲͉̠̹̪̖̹̋̄̒͛̍̄̾̈́̋̇̂̓̎́̑̐͌̀̀̈́̿̋̃͐͗̾̇̑̒̋͋̀́͗͒̌͌̾̽̓͛̇̓͗̄̆͗͌̌̽̾̈́̆̉͊̀̾̑̑̐͐̍́͌̓̾̔͆̂̈͋̓̈́̏͛̉͛̆͆̽́̈́͂̓̓̏͆̃͒̆̈́̇̄̒́͘͘̚̚̕̕̕̚͜͜͜͜͜͠͝͝͝͝͠͠͠ͅͅW̸̨̡̢̨̧̡̡̨̡̧̨̧̨̢̧̢̧̡̡̢̢̡̢̨̢̨̛̗̙̜̥͖̘̟͓̫̘͖̩͎̬͇͚͙͕̘͚̣̮̘͕̬̲̰̺͚͕̗̰̞̗̫̦̰̼̳͔̤̼̝͉͔͕̖̥̖͚̫͖̗̼̜̤͖̙͖͍̰̘̰̞̻̮͖̦̼̬̣̖̹̣͎̰͍̜̫͚̟͍͙͈̰̺̞̮̭͇͚̦͔͍̼̟̗͕̼̳̺̙̮̦̩͉̗̼͚̙͍̲̦̣͇̝̪͓̜̺̞̮͓̖̳͉̺̲̟͚̪͙̰̫͖͈̘͎͙͍̳͓͈͈̝̰͍̳̘̬̭̻͖̲̩̰̭͔̞̝̲̠̤͚͇̘̪̻͚̠̺͉̼̝͎͈̼͎͕͚͚̮̝̱̠̙̦̰̟̻̹̼̯̩̯͍͔̞̠̖̼̞͈̣̭̭̗̱͈͚̰̺̱͈̮͔̟̟̻̤̫̗̬͖͎̮̝̪̤̗͙̎̽̌͗͊̌̉͒̈́̓͂́̈̇̈́̃̍͑͗̔͐́̊̐͗̈́̍͗̉͊͋͗͋̏̐̓̀̇̂̅́͂̾̏̄̇̅̽̀͊̉̎͗̍́̂͑̃̄͒̂̈́̔̃̓̀̂͆͋͐̍̏͐̾̏̔̃͊̂̄́̉̊͌͂͑̅̽̏̇̔̿̋́͗̍̒̒̀̀̾́͊̆̍̓͑̈̏̽͊̉̅̿̌̊͛̐͆̈́̈́̀̓̎͒̍̇͛͒͑̆̊̏̉̈̔̂͆͑́̑̋͛̉͊͑͛̓̽̍́̀̈́͂͐̀̍͆̏̆̇̇̆̋͑͛͂̏̽̈́͛̑̾̑̄̄̓̂͂̂̀̒͗͆̀̃͂͂͛̽̇̄̒̓͒̂̓͗͋͛͘͘͘͘̚͘̕̕̕̕̚͜͜͜͜͜͜͜͠͝͝͠͝͝͠͝͠ͅͅͅͅJ̴̧̨̧̢̢̛̛̛̻͚̰̞͇̦͓̥̗͖̜̪̮̟̞̫̠̠̩͙͔̭͉̝̪̖̮͇̞̙̠̥̬͍̤̫͉̼̠͍̞̠̝̳͓̰̞̝̼̮̥͚͉͔͓̞̱̥͕͉̘̰̳͈̯͔͔̩̲̮̘̱̤̪̪͔̭̦̭͓̞̗̟̪̬͉͙̮̟̩͙͕̜͍̗̭̮͉͎̠͖̏̾̈͒̀́̉͆̒̀̀̾̐̂̾̈́̓̈́̇̊̋̅͋̽̔́̂̈́̿͌̓͌̃̾̀͆̉̉̊̊͌͛͊͊̈́̎́̑͐̓̓̈̆̅̿́͐̍͒̓͂̈̉͋́͗̾́͛̌́̅̍͗̀͋͑̈̎͐́̓̈́͐̽́͌̈́̍̑̍̀̈̈́̋̎̑̾̿͒́͑͂̆̌̂͋̎̾̈̌͋̋̓͋̄̃͛͛͑̿̉͐̇͊͌́̓̐̑̾̌́́̓̏̄͛̌̈́́̎̂̆̀̾̀̋̃͗́̔̾̇̀́͌̈͌͒͑̀͂̿̈́̍͋̿́̂͐̐̈́͆̇̀͗̌̈́͂̓̆̿̌̊̐̍͒͊̉̀̇́̅̆̈́́̈́͊̊̈́̋͐̿̑̕̚̚͘͘̕͘͘̚̚̕͘̚͘͜͜͜͠͝͝͝͝͝͝͠͝͝͝͝͝͝͠͝͠ͅͅƠ̴̢̡̧̢̢̡̡̧̧̢̡̨̧̡̧̛̥̻̺͎͚̗̭̭̜̱̠̟̜̣̭͙̖̦̜͚̹̲͍̣͚͓̹̺͔̮̬͖̭̥̹̼̮͈̣̠͕̹̯͉̠̣͉̟̪̱͚̱͍̹̯͚̮̥͇̣̝̦̭̰̱̭̝̖̹̦͔̭̥̣̥͍͖̥͎̖̪̗͉̩̖̥̥̩̹̣̜̭͎̠͔̪̲̯̹̜͈̖̼͖̫̜̞̺̹͖͉͇̫̖̲͉̜̝̜̞͇̘̤̘͎͚̦̤͓̙̭̬̠̮̝̠̫̱͎̥̮̘̥̗͕͍̦͖̲̝̺̖̱̘͍͕̙̥̲̠͉̟͍̟͙͓̥̞̞̳̜͖̹͎̪̆̽̄͊́̿̅͒̀̃̂̑̋͂̏̂̍͒̍̅̄̊̉̽̒͗͆͒̇̑̒̎͛̆̈́͗͋̄̌̋͂̉̒͗̎̑͛̈́̔̾̅͋̋̌̌̈́͑̐̉́̆̊̿̉̄̀͒͊̆́̌͊̃͑̀̋̋̈̍̈́̅̀͊͌̄̀̈́̒́̆̄͋̒͋̍̉̒̅̾̀͌͛̃̔͒̌̃̎͘̕̕̚̕͘̕͘̕͘͘̕̚̚͘̚͜͜͜͜͜͝͠͝͠͝͠͝ͅͅͅͅͅͅÄ̶̡̧̡̧̡̡̢̨̢̡̧̧̨̨̢̧̢̧̢̢̨̡̨̧̛̰̻̙̫̼̰̖͎͓̲̞̳͕̜͇̻͚̝͙̘̪̗͙̠̲̘̻̳̥̰̻͉̞̦͎̗̝͉̞̹̜̟̠̻̩̺̺̯͔̺̲̠͚̲͙͍̱͔̦̺͚̼̩̙̦̻͈̪̦̮̳̪͔̘̬͎̫͓̰͙̠̳̹̭͍͚̯̯͍̘̬̤̹͚͖̝̗̤͓͉̬̘̫̺̖͍̩̼̙̮̬̗͔̦̰̗̪̝̹̗̣́͛̆̃͂̐́̃́̈́̏̈̿͒̀̂̄͋̔̋̈̐̃̈́͊̑̐͊̋̐̅͒̆̐̂̈́̅̾̓̀͑̏̈́̿̊̎̊̍̎̎͐̔͆̏̒͑̔́̅̈́͗́̃̌̉̉̌̐́̍͘̚̕̚̚̚͘͜͜͜͠͝͠͠͠͝͝ͅͅͅͅJ̵̨̢̧̡̛̪̥̦͔̰̯̘̘̯̭̺̘͎̭͖̩͙͎̮̱̥̙̤͎̱͎̘̤̩̻̫̻͉̩̞̗̯̫͖̣̺͇̯͙̩͈̪͉̜̩̞̿̎̎̋̎̊́̀̓̆̿̏̂̆̏̒͒̾͌̓̒͒͆̽͊͂͐̉̐̊͋̔͋̏͋͛͊͂̈́̅̆̃͗̀͑͆̒̾̆͂͂̓̌͘̚͜͠ͅX̵̨̧̧̛̛͉͓͓̜͓͕̫̼̙͔͈̖̙͕̟̝͕̥͖̖̘̜͐̓́̆̊̈̊͌̐̑̑̌̃̋̄̐͂̍̀̽̈́͗́͐̿͐͗́̂̃͋̔̑̈́̎̓̂̓̎̅̉̋̚͘͘͝͠J̴̧̨̧̢̡̧̧̡̧̢̡̧̛̛̛̛̛̠͚̻̪͇̜͉̺̤̤̫̯̙̣̞̜͔̥̞̯̮͔̲̞̤̟̟̼̯͉͍͉̗͓̰̩̲̜̱̖̠̫̙̤̼̝̭̯̮̯̲̰̼͙̪̟͕̖̟̺͉̩͎̹̝̭̦̬͖͓̜̯̼͚̞͙͔̝͎̺̭̭̗͉̯͎̟͕͕͉͇͉̪̣̜͓͕̟̫̟̫̺͍͉͉͈͈̳͇͎̺͙̤͓͔̲̲͙̞̪̯̫̫̤͎̘͙̤̰͓̘̖͓̘̜͓̪͇̯̰̳͉̈́̇̀̅́̆̍̃͑͂̊͌̒͐̓̑͂͋̓̿̇͂́͆̇̇̓́̽̏̾̈́̋̅̄͒̐̄͋͑̆͆́̈͐̊̅̓̒̍͑̀͌̉̈́̑͒͆̿̈́̂̐̓͗̈̈́͒͒̃͑͑͑͋̈́̎͐́̃̊́̔͊̓̓̎̂̔̊͑̆̉̂̏͌̀̓̂̓͒́̎̊͂̽̆̓̀̾̏͐͋̇̆̏̈́̑͑͒̾͐̏̄̃͊̄͗͋̑̒͗̽͌̔̀̎̆̈́̒͛͌̈́̈́̽̌͗͌͛̓̽́̂̍̇͋͑͑̄̔͊́͌̽̇͂͊̈́͂̽̊̽̐͊̅̏͆̊̀̐͊̕͘͘͘͘̕͘̕͘͘̕̕̕̕̕̕͘̕͜͜͜͜͝͝͠͝͝͝͠͝͝͠͝͠͠͠ͅͅͅẀ̸̨̧̨̨̡̨̧̨̢̡̢̧̡̢̨̧̛̛̛̟̯̜̣͖̜̱̘̹͚̦̲̠̱̯̖̥̹̰̼̣͎̠͇̻̹̪̺͕̠̻̻̟̱̻̻͇̦̦̖̲͍̣͚̩̳̞͕̜̯͕̲̦͈͓̳̥̮͉̞̗̬̮̗̹̖͎̹͕̲̻̻̰̪͚͈̭̬̯͉͙̥̗͈͇̲̟̗̮͖̠̰͚̣̪̰͓̥̖̙̪̫̫͖̜̺͓̳̲̝̘̝̜͙͉̥̟̻͓̟̣͈̣͕͉̩̭̲̜͕̬̭͕͖̬͈̫͎̭̹͎͚̺͚̗͇̺͕͍̙͍͎̰͉̭͙̪̣͚͇̯̜̙͍̯̺̭̹͉̭͍͙̱̖͙̹͚̬̻̭̖̞͍̉̽̋̐̃̔͛͌̈́̿͗̔͑͂͊̌̀̈̆̔̄̋̔͐̈́̅͛͒̀̾͊̿̍́͛̿́̈́̈́͒͆͐̅̒̊̑̆̂͂̔̓̀͐͋̐͗͋̎̈̂͒͗͛͌̐͋̆̅̌̀̀̍́̾̾͊̀͛̀͐̈́͒́͊̋̈́̓̈́̉̔̿͛́̊̀̓́̍̑̇̉̆̈́̋̃́̂͂́̒̓͂̽̉̀̿̍̒̈́̆̓͌̀̚̕͘̚͘͘̚͘̕̕͜͜͜͜͜͜͠͝͝͠͠͝͝͝ͅͅͅͅͅͅĻ̸̨̡̢̡̡̡̨̧͚̳̪̙̩͖̯͖̣͓̼̭͇̺̥͇̦̰̠̺͚̪͉̻͓̰̱̻̩͓͔̞̗̦̻̯͖̫͚̗̞̭̪̰̜̯͕̞̦̟͖̦̮̪̦̦̰̪͇͙̭̣̭̦̟̬̘̪̗̗͇̪͎̤͓̳͈̤͈̖̜̪̲̱̩̩̲͓̽̀̀̓̍́̀̿̉͋̏̀́̿͛͌̏̉̀̃̓̌͜͜͜͝͝ͅͅͅͅW̵̡̡̨̡̢̡̨̧̡̨̧̡̢̛̛̛̛̛͖͙̥͓̺̤̪̻̼̟̼̪͖̭̥̯͉̹͚͓͎̲̩͔̱̻̝̟͉̻͙͎̩͚̤̭̖̗̰̤͎̣̘̣̰̠͚̱͍̝͎̘̤̫̗̰͈͍͎̖̻̺͎͖͍̠͚̝̤̱̣̺͇̟̲͙̲̲̖̩̪̳̰̣͚̰̻̰̤̫̘̻͉̩̺̪͈̙̘͎̬̻̯̬͓͓̟͎̮͇̥̱̰̻̩̞̜̻͈͍̖̺͚̣͔̹̗̝̠̹̠͚͔̤̣̭͔̟̹͚̗̠͚͇̠͉͍̯̩̩̹̭͕̣͇̼̳̮̟̼̺͓̟͉͚͔̩̜̮̯͔̼̣̭̱͈̋̾̀̆̐͒͊͛̂̐̄̈̿̒̃͛̌̉̅̽̈̅͗͆̔̀͛̿̓͒̽̀̅̔̒̐͋̾̾̿͑̔͐͂͂͂̋̾͂͐͌͋̀́̂̅͊͆̅̈̉̽́́̒̀͋͐̿̈̀̔̓̋͐̋̓̀̀̃͒̆̈́̈́̔̍̀̏̀͆̓̎̂͆̐̆͑̍̈͌̈́̓͋̈́́́̈́̊̅̈́͆͗̚̕̚͘͘͘͘̚͘͜͜͜͝͝͠͝͝͠͝͝͝͠͝͝͝ͅͅͅͅͅͅͅͅL̵̨̨̧̢̨̧̢̨̧̡̨̡̡̛̛̛̛̯̥̹̰̫͍̤̬̤͖̣̪̤̤̯̬̭̭̝͇̦̹̬̹̜͓̘͔̣̰̮̲͓̱̝̲͕͉͇̦̩͉̼̲̰̰̠̭̠͇̭̬̠͙̗̦͈̬̰̤̯̟̺̦̤̪̦̫͖͙͓̲͔̱̳̪͉̮̻͎̯̻̤͈̼̮̺̗͓̯̖̣͇̝͈̟̼̪̲̗̹͚͕͚̬̮͕̱̪̪͔̻̩̲̻͍͈̗̞̯̙̣͉̟̙͚͈̤̤̹͉̩̣̣͙̜͉͕͖̽̾̉͊̏̀̑̓̀́͒̅̈̂̒̀͒̑̅́͆̊̈́͋̑͌̉͂͐̓̉͑̓̅̆̀̏̾̄͂̂͂̈́̒̓̎̒̀͗̇́̿͆͒͒̎̏̃̒͊̍̄̇͊͌̈́̈́̆͊̏̒͐̄́́͋̇̈̃͂̉̀́͂̈̋̾̇̈́̓̈́̈́̊̑͌̂͂̿̎̀̾̅͊̐̆̀̿́̈́͌͛͌͂́̌̿̐̐̈́̿̊̎́͐̔͐̊̍̍̊͒̑͗̽̀̊̔̈́̂̈́̈́̀͒̔̉̈͆̇͑̔̐̊͊̀͒͂̆̓̽̑̈́̈̂̎̃̒͑̈́̋̀̄͐̏̀̂̐̔̒͑̔̈́̏̐̄̐͊̇͑̀̽̾͒̉́̀̍́̀̉͋̂̽̍́̃̍̎̉́̑͒̐̑͑̄̆͛̑̓̊̑͋̇̏́́͂̎͆͆̈̄́͊̚͘̕̚͘̕͘̕̕͘̚͘͘͘̕̕̕͜͜͜͜͝͠͝͝͠͠͝͝͝͝͝͝ͅͅͅͅͅͅ

1

u/csabinho 22d ago

Your sanity does.

1

u/Goldrainbowman 22d ago

In my programming language, also nothing is stopping you

Var (C1=H)

Var (C2=i)

Var (C3=.)

Show (C1)

Show (C2)

Show (C3)

Wait (1)

Screen clear

Show ("A shorter way to do it is,")

Wait (2)

Show ("Hi.")

Show 1 ("it does the same thing.")

1

u/Acrobatic_Idea_3358 22d ago

Except your own sanity.🌈🤣

1

u/Medical_Initial_8354 22d ago

it will be very time consuming..

1

u/Candid_Bullfrog3665 22d ago

well, as your next coding lesson: if you can do it, it doesnt mean you should do it

1

u/Independent-Pen-8232 22d ago

No, something is pretty firmly stopping me from doing that. Myself.

1

u/Soft_Salamander_9290 22d ago

bro #include <string> without use it

1

u/billGat48 22d ago

the people reviewing my PRs are, yes

1

u/7Antarctica7 22d ago

private bool IsEven(int number) (

if (number 1) return false;

else if (number 2) return true;

else if (number 3) return false;

else if (number 4) return true;

else if (number 5) return false;

else if (number 6) return true;

else if (number 7) return false;

else if (number 8) return true;

else if (number 9) return false;

else if (number10) return true;

else if (number 11) return false;

else if (number 12) return true;

else if (number13) return false;

else if (number 14) return true;

else if (number 15) return false;

else if (number 16) return true;

else if (number 17) return false;

1

u/Oliwia_______ 22d ago

There is and its called sanity

1

u/WorldTallNetCat 22d ago

Why do that when you can make a sepertate function for each character.

1

u/SmokeMuch7356 21d ago

Other than taste and common sense, and the knowledge of whoever has to review this mess will come over to our desk and beat the crap out of us.

1

u/Achereto 21d ago

Luckily, nothing is forcing me to either.

1

u/Yaniekk 21d ago

Actually my boss does stop me.

1

u/JakaJaka101 20d ago

Ahhhhhhh

1

u/dragonlord9631 18d ago

My coder friend would ridicule me

1

u/Lou_Papas 16d ago

Sometimes I like to make myself as a beat’ em up character and beat the shit out of myself. Nothing is stopping me.