loading...

re: Tell us what your top unpopular tech opinion is 😈 VIEW POST

FULL DISCUSSION
 

Python is overrated. It is a weird language, you spend more time organizing tabs than anything else. Not to mention the dependency management, having to do venv and all that. I don't use Python very often (I avoid), but when I have to, I sometimes forget the venv thing and once when using boto3 it messed with my aws-cli installation and I was "what?!". Now aws-cli wisely uses a embedded and completely independent copy of Python, now we know why.

 

Ok, so it's overrated because it forces you to make your code readable and you don't know how to manage dependencies and envs properly.

People would tab their code in the same way anyway, so there is really no time wasted..

 
Sloan, the sloth mascot Comment marked as low quality/non-constructive by the community View code of conduct

Calm down. It's his opinion, not verified fact. Smoke a bowl or something.

 

I prefer curly braces, it is easier to know exactly where something starts and ends.

You can from __future__ import braces. Haven't you tried. 🤣

Indentation-based syntax is just another flavor, but limitation to single line lambda is unacceptable.

You can actually use braces with custom encoding. Also lambdas should be trivial. You can always give it a name and declare it as a normal function.

You can see exactly where something starts/ends by looking at indentation, which is easier than looking for braces.

 

venv is weird haha, check out Poetry for dependency management the next time you're working with Python!

 

I will definitely try it out, even the Python lovers where I work will adopt if it goes well. I don't think people are in love with venv. hahaha

 

How about Pipenv and Pipfile are overrated and over-promoted. (Actually, the creator of Pipenv and *for Humans, received a lot of criticisms on Reddit.)

 

Although I do agree that Python is overrated, I never really care about, nor do understand, the indentation hate.

It is overrated because data types and data structures are slow, unless you use some C/C++ bindings, like NumPy. So in the end, it just wraps another language.

Not to mention that the IDE is never as smart as TypeScript, Kotlin or Java.

venv is overrated or not, it might be better than polluting the global installation by default, like Golang or Ruby.

JupyterLab and Conda are cool, but I don't get why it is built into Python.

 

Small pedantic note: the data types and data structures are slow in CPython, the default implementation. Pypy, another major implementation of Python, is implemented in itself instead of atop C, and performs much closer to compiled languages.

 

I like python as a language but I’ve wasted so much time with its bad dependency management and environments. I’ve tried a bunch of tools that promise to make it better but they always fall short of something like npm.

 

but npm is even worse, when I'm forced to install npm I look back on python virtual env's fondly.

That it routinely screws my whole machine up due to mismatched versions.

Yeah that's a fair point. I use nvm to quickly switch between versions, that makes it much more tolerable 🙂

 

aws-cli and boto3 are the worst offenders for botching up an environment.

code of conduct - report abuse