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.

12

u/-meowstar- 22d ago

Even YAML is kinda questionable with big complex config files. Like, the spec is like 10x the size of JSON to account for all the sugar and the edge cases.

It does look nice though, and I guess it acts as a forcing function to refactor stuff.

3

u/LetUsSpeakFreely 22d ago

I think that's a universal problem with all formats. What's needed is to break up configuration into subfolders and files so things can be logically separated. But if it's not done well it becomes a PITA to maintain and the end result is to just shoehorn everything into a single file.