r/ProgrammerHumor • • Oct 17 '26

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

201 comments sorted by

View all comments

Show parent comment

1

u/Hohenheim_of_Shadow Oct 17 '26

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 Oct 18 '26

Skill issue

1

u/NomaTyx Oct 18 '26

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 Oct 18 '26

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.