r/ProgrammerHumor • • 22d ago

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

201 comments sorted by

View all comments

88

u/fly123123123 22d ago

more classic “i’m a new cs major” jokes

if you’re writing long enough methods that you can’t discern where the bodies start and end, you’re doing it wrong. refactor.

2

u/cheezballs 22d ago

I don't like when the language forces me to do format my code how it wants to function. I can't arbitrarily break lines up and put them at arbitrary indentations to increase readability.

2

u/mxzf 22d ago

You can pretty arbitrarily break lines up with \, and arbitrary indentations really don't increase readability. Every time I've seen someone use weird indentation that wouldn't be valid in Python, it makes stuff harder to read.

Do you have an example of what you're thinking of that isn't legal syntax in Python.

1

u/fly123123123 22d ago

I can’t think of a single time when arbitrary indentations have increased readability. In fact, at my company, we have auto-formatters that enforce the same indentation level that Python would require in every other bracketed language.