this post was submitted on 31 Aug 2025
78 points (97.6% liked)
Programming
22516 readers
163 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't get the hate for whitespace personally. It was maybe an issue 15 years ago, but modern code editors easily solve its issues. You can collapse whitespace blocks, the editor can automatically replace spaces with tabs, etc.
It solved a problem that didn't exist and created problems that hadn't previously existed.
There's a reason every python "intro" begins with "spend 20 minutes setting up an editor to deal with whitespace" properly.
It makes moving code harder. It makes jumping around code blocks harder. Often the ide can help but sometimes it can't.
In any curly-brace language these are things I simply don't need to even think about. But in Python it's a pain.
Yes it's not the end of the world. Yes I can spend hours fine-tuning my editor. But.... Why should I even have to? Why create these hurdles for no gain?
No clue what you're talking about honestly. I've worked on a 7 million line python codebase, and while python had tons of issues, whitespace was not one of them. You can easily move things around and have never seen a bug due to bad indentation.
20 mins setting up an editor, lol what fantasy world are you living in, I've been using Python for years never had to do much other than install some VScode extensions
I spend a huge amount of time working with Python and regularly do things like refactoring and do not run into all of this pain that supposedly exists, and never have. I think that you should stop speaking on behalf of "everyone".
I'm not speaking for everyone. Just everyone with taste.
I mean, you speak for me here, for sure. Python is just silly.
More like everyone whose text editor is apparently Notepad...
The best argument I've heard for whitespace blocking is "it's not that bad when you get your text editor configured". That's an excuse, not a reason.
Idk know what editor you're using, but it worked perfectly fine out of the box with IntelliJ. Nothing compared to the hassle of setting up a proper Eslint setup for typescript, honestly.
And I'm not trying to defend python here, I don't touch that language except under duress, and I do prefer C-style code blocks as well. But this is kind of a pointless argument.
A text editor that indents a block when you press "tab" is not hard to find and takes all of 30 seconds to set up.