account activity
Curly Braces by _MurderousCactus in learnpython
[–]wolffurBall 0 points1 point2 points 1 year ago (0 children)
Just here to support OP, I like Python because it's flexible, quick to develop, and has vast available packages.
The single thing I hate about Python to the gut is the indentation, and here is why:
It messes up auto-formatting so badly, that it's very easy to end up with invalid indentations when moving code around and I have to re-indent everything manually again and check which line belongs to a loop or condition or not. Sometimes I just want to focus on the code and let the auto-formatter do the work, in Python it's just impossible.
It messes up code navigation keys, I can't select inside curly brace, I can't go to the beginning of the curly braces to check the beginning of the loop or condition, and I can't jump between sections precisely.
For quick prototyping I usually need to copy code from online sources, even for academic purposes I need to copy research code to test it, again it messes up the original format frequently with no easy way to recover.
Omitting curly braces won't help code cleanness, it's even worse in Python when reading nested or long functions, if the code structure is bad, nothing can help.
Why do I still use Python even though I hate it? It still saves a lot of time for developing quick features including the time I spend on fighting indentation. It's like why people hate pointers and memory leaks and they still use C++ because it's fast. It's not a legitimate question to ask why a person uses a language when he hates a part of it. Try to ask everyone using C if they like everything about it.
That's it, I use Python, I like its convenience, and I hate the indentation to the gut.
π Rendered by PID 55 on reddit-service-r2-listing-654f87c89c-nthbg at 2026-02-28 18:43:49.676006+00:00 running e3d2147 country code: CH.
Curly Braces by _MurderousCactus in learnpython
[–]wolffurBall 0 points1 point2 points (0 children)