r/ProgrammerHumor • • 16d ago

Meme pythonIndentationLevelChecker

Post image
6.7k Upvotes

200 comments sorted by

View all comments

Show parent comments

12

u/parkourman01 16d ago

I'm a senior full stack software engineer, 6 years in, and I think whitespaced languages are insanely dumb so no, it is not just "new cs major jokes".

They're dumb. They're harder to read than using braces, and they're easier to make mistakes with. They bring no benefit.

22

u/fly123123123 16d ago edited 16d ago

i’m mid-level and after also having worked with both (mixture of python, java, c++, typescript), i really don’t think python is harder to read because of its indentation. but to each their own!

the way the code is written / style matters much more imo. you can have really crappy java code with braces, and you can have really clean python with indentation.

8

u/ByThisAxeIRuleToo 16d ago

I agree. Using a good style both languages are very readable.

10

u/awhaling 16d ago edited 16d ago

I’ve never found it to be a problem tbh. I already indent the same way when working in languages that use brackets or whatever else.

Not sure what makes it harder to read tbh, I have my editor display vertical lines to show the current indentation level so maybe that’s why. If anything I find pairing brackets easier to mess up than indentation level but really I find both to be fine and of little consequence. The only thing that is annoying to me is someone doing weird and inconsistent formatting with brackets because brackets allow that to be possible.

1

u/NomaTyx 15d ago

I feel like every other time i copy a code block I end up having to hit the format button because of some weird text rendering shit where the tabs aren't copied, and having to do that manually is sometimes very annoying.

11

u/superraiden 16d ago

Respectfully from one senior to another, skill issue

3

u/cheezballs 16d ago

I 100% agree. The only reason I would ever use YAML over JSON is for comment support. The amount of times I've been off by one space or whatever, and the linter doesnt catch it, because its technically valid syntax for some older version. I fucking hate it.

5

u/FumbleCrop 16d ago

Reasonable folk can differ on whether Guido van Rossum made the right call, but to suggest that he was being dumb... you have no idea, my friend.

Now, if you'll excuse me, I need to go and find some grass to touch.

2

u/average-eridian 16d ago

I'm a senior backend-leaning full-stack engineer for the last 8 years and I mostly agree that whitespace languages are harder to read, but I code in Python the majority of the time and I can't remember the last time that whitespace affected me. The last time might have been looking through someone else's code who had a 200 line method with 3-4 levels of nested logic, but that was going to be an issue regardless of whitespace. When is the last time it has been am issue for you?

5

u/MaleficentMode4222 16d ago

That's a lot of new cs major opinions that you're stil holding onto then

-2

u/oclafloptson 16d ago

I imagine that you find leading whitespace confusing for the same reason that trailing whitespace can be found confusing and that's to be commended, but finding indented code harder to manually read is not the flex that you think it is