Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
netikras35229294dTo me the most annoying part of py is indentations.
Next worst thing is 'self'
Next - pythonisms
apart from that Pyis a nice language with a huge variety of libraries -
retoor12152294d@netikras the indention's is it's power imo. It's genius.
Edit: can't get used to your new avatar. Put it back -
netikras35229294d
-
IntrusionCM14955294dImho Pythons indentation was a wise decision.
Error reporting has become better.
If a language comes with a fixed code style, it would be truly a blessing.
Rust kind of does it.
The amount of time, nerves and stress put into getting devs to agree to a common code style is ... Maddening.
Even worse when they want a custom style that needs to be handrolled into linting / formatting. *vomits*
I'm truly curious to see where Python is going.
Polars aka Pandas on Rust steroids, the GIL removal, the JIT talks.... It feels like Python will make some interesting evolutions the next years.
The only worrisome part, where the Python devs cannot agree on, mostly due to lack of manpower, is the packaging.
But thats a very complex topic, so I can kinda understand the frustration and hard to reach consensus on that topic. -
retoor12152294d@IntrusionCM what's wrong with the packaging? I thought that was one of it strengths. Pypi ftw!
-
IntrusionCM14955294d@retoor
https://lwn.net/Articles/959236/
Pip is part of the problem.
There is a lack of concensus and focus on a single utility which should be included / shipped with python.
I hate PIP. Poetry is my favorite, as virtualenvs are far better. Though most package managers implicitly need to utilize PIP or at least support it.
Thats the messy part. Too many cooks in the kitchen.
Another pretty heated discussion has always been around pyproject.toml .
As there is no stdlib for TOML till 3.11
https://peps.python.org/pep-0680/
I honestly love pyproject.toml . Consolidation is always a good idea. -
cdrice4196293d@IntrusionCM Regarding py code style, I feel that pain. I've been on the hook for creating project rules and enforcing lint for the last two employers I've worked for.
Check out "black". It's been around for a while now (I was arguably a late adopter, but I've finally embraced it in the past couple years with a couple/few tweaks).
After using black (if not to fully reformat, at least as another lint job), I've seen our pydocstyle, pycodestyle, isort, pylint and prospector compliance easily approach 100% across even our most complex projects. -
retoor12152293d@cdrice I don't give a F about that crap. We're writing in super inefficient languages to make it more readable, servers suffering 24/7 but that's not enough, let's sort the imports for the next reader. Ffs. We became crazy
Why does Python get so much hate? It is literally like a Basic programming language. Easy to learn and guaranteed to get a job because of massive demand.
rant