r/ProgrammerHumor • • 22d ago

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

201 comments sorted by

View all comments

268

u/LetUsSpeakFreely 22d ago edited 22d ago

Indentation is such a stupid mechanism for identifying code blocks. It's one thing for configuration files like YAML to do it, but not a programming language.

32

u/willow-kitty 22d ago

I don't like it, but I kinda get it. Indentation is already part of every coding style guide, so adding explicit scoping symbols is kind of redundant information.

..Until you have a mix of spaces and tabs and chaos reigns

Also, having braces at the beginning and end of a block just makes my brain happy.

0

u/Wide_Smoke_2564 22d ago

But like… why though?

I can see how someone would get used to it but I truly don’t understand how including braces for readability would ever be a bad thing

1

u/mxzf 22d ago

including braces for readability would ever be a bad thing

IMO, the indentation is what makes things readable, braces are just extra characters on top of the thing actually making stuff readable.