this post was submitted on 24 Feb 2026
588 points (97.6% liked)

Programmer Humor

30700 readers
2117 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Senal@programming.dev 56 points 1 month ago (5 children)

Significant white-space is bullshit and i will die on this hill.

[–] BlueKey@fedia.io 19 points 1 month ago (1 children)

Is there space left on the hill? I want to join you.

[–] Michal@programming.dev 24 points 1 month ago (2 children)

I hear there's significant space left

[–] squaresinger@lemmy.world 10 points 1 month ago (1 children)

But it's only white space. That's kinda racist.

[–] Senal@programming.dev 3 points 1 month ago

significant white space to it's classist and racist

[–] _stranger_@lemmy.world 1 points 1 month ago

Their whole thing is that they don't want to care about it, so if you get to the hill and there's no space, you're SOL.

[–] rothaine@lemmy.zip 11 points 1 month ago (1 children)

Yeah I just want JSON with optionally quoted keys, and comments.

[–] BlueKey@fedia.io 5 points 1 month ago

JSON5 my beloved

[–] laranis@lemmy.zip 4 points 1 month ago
[–] Shanmugha@lemmy.world 2 points 1 month ago

You are not alone, my friend

[–] softwarist@programming.dev -2 points 1 month ago (2 children)
[–] 3abas@lemmy.world 3 points 1 month ago (1 children)

Because yaml is not a programming language, and debugging why your whatever you're configuring isn't working correctly can be a nightmare. It doesn't tell you you missed an indent on a block, it just assumes it should be there and changes the meaning.

Braces are visually clear.

[–] softwarist@programming.dev 1 points 1 month ago (1 children)

I think YAML has its fair share of design flaws, but I don't think significant indentation is one of them. It may not be a programming language (which may be debatable), but there are plenty that use syntactic whitespace.

[–] 3abas@lemmy.world 1 points 1 month ago

It's not debatable... You linked to a programming language that uses yaml syntax, that didn't make yaml itself a programming language... It's not.

And I know there are plenty that use syntactic whitespace, and I hate that about all of them. Literally my only real frustration with python is due to the time of my life wasted debugging perfectly fine logic that fails because a few lines had incorrect indentation.

[–] Shanmugha@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (1 children)

Because I am not counting white space when I read. Or should we just write machine code/assembler/pick something straight away?

[–] softwarist@programming.dev 1 points 1 month ago* (last edited 1 month ago) (1 children)

Not sure I'm following the jump from significant whitespace to machine code. How are those related?

[–] Shanmugha@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (1 children)

Human and machine read differently. If you ignore that (in case with indentation), then why bother with writing human-friendly form of code, when what is going to be really executed is something else?

[–] softwarist@programming.dev 1 points 1 month ago (1 children)

If anything, that sounds like an argument in favor of significant indentation, not against it. Humans and machines read differently, yes, which is why we tend to add whitespace and indentation to code even for programming languages where it's not significant. We do that expressly because it makes the code more human-friendly, so it's quite the opposite of ignoring their differences.

[–] Shanmugha@lemmy.world 1 points 1 month ago (1 children)

No, it is an argument against it. We indent code so that it is more comfortable to read it, not in order to make it easier to understand

[–] softwarist@programming.dev 1 points 1 month ago (1 children)

You're mistaken:

Indentation is a secondary notation that is often intended to lower cognitive load for a programmer to understand the structure of the code.

[–] Shanmugha@lemmy.world 1 points 1 month ago (1 children)

Lol. Go on, show me how it is easier to understand structure of the code when I am 3 levels down, first two are already out of sight

[–] softwarist@programming.dev 1 points 1 month ago (1 children)

That's not a coherent argument, but you don't have to agree with me. I think this discussion has run its course.

[–] Shanmugha@lemmy.world 0 points 1 month ago

What a nice way to say "I can't back my standpoint up". Anyway, do have a good day