this post was submitted on 17 Jun 2023
11 points (100.0% liked)

Programmer Humor

19551 readers
945 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 1 year ago
MODERATORS
 
top 6 comments
sorted by: hot top controversial new old
[–] lasagna@programming.dev 1 points 1 year ago* (last edited 1 year ago)

3 spaces is best because if the universe is chaos then everything in it should reflect that.

[–] PitzNR@lemmy.world 0 points 1 year ago (1 children)

This is horrifying, this is straight up blaspheny

[–] chaorace@lemmy.sdf.org -1 points 1 year ago

For real. OP needs to give up on this ridiculous notion of tabbed whitespace and learn to use real, monospaced indentation. How wide is a tab? OP couldn't tell you because tabs are inherently dishonest -- a lie concocted by big keyboard to poison the unwashed programmer masses.

[–] ZILtoid1991@kbin.social 0 points 1 year ago (1 children)
int mostCursedIndentation (const int someVal) @safe {
{}{}if (someVal < 0) {
{}{}{}{}throw new Exception ("Value cannot be negative!");
{}{}}
{}{}return someVal * 5 - 3;
}

[–] soft_frog@kbin.social 1 points 1 year ago (1 children)

Can you start randomly nest them too?

{{}}{}int foo = bar

[–] ZILtoid1991@kbin.social 1 points 1 year ago

You made it even worse!

load more comments
view more: next ›