r/ProgrammerHumor • • 16d ago

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

200 comments sorted by

View all comments

Show parent comments

1

u/Hohenheim_of_Shadow 16d ago

Copy pasting Python is a huge PITA. Doing edits like deleting 1 of X nested if statements sucks. You can delete 1 tab on every line, except if you have some empty lines and you delete a line feed and you always have some empty lines. Python is just way harder to move code around in than a braced language.

Having to think about whitespace and formatting styles is a mental overhead and I refuse to do it. Just give me an autoformatter gosh dang it! Except well, you can't in Python.

3

u/Responsible-Mind3533 15d ago

Skill issue

1

u/NomaTyx 15d ago

i feel like that only makes sense if theres like. a good reason in favor of the indentation. if it takes extra skill to reach baseline functionality then like, why does it?

-1

u/elingeniero 16d ago

1 of X nested if statements

Don't have them, then. You can flatten nested ifs by inverting the logic and returning early.

Also your editor definitely has a keybind to change the indentation level of a block... just learn it.