r/learnpython • • Feb 12 '21

Python Seems Broken To Me As A Language/Distribution; Perhaps You Can Set Me Straight

While this is a bit of a rant, a rant often means the ranter is missing something important which nobody has bothered to make clear to them. So, I hope you will indulge me and point out where I have gone wrong.

  1. Anaconda: As far as I can tell, someone decided to make a wrapper for pip simply because they thought typing pip was somehow beneath them and preferred typing conda. This project seems to serve no other purpose than to act as a substitute for pip or, if not, the additional benefits of Anaconda appear to be negligible. What have I missed?

  2. Pyenv: How hard is it to either type the name of a python binary or create a sym. link to a particular python binary with a distinct name and then type that? pyenv seems to be nothing more than a desire to complicate an otherwise-simple situtation.

  3. Virtual environments: If you are so scared your project might interfere with something else to the point you feel compelled to isolate the packages with a virtual environment, you have likely structured your project wrong. I have worked in software for over twenty years in C, C++, C#, python, VB.net, JavaScript, TypeScript, Haskell, etc., etc., etc. and the only time I have ever had to work with projects where someone utilized the idea of a virtual environment, or analog thereof, have been python projects. Every other language allows you to easily structure your project and isolate libraries in a way which does not involve such potential system-wide shifting of the ground from underneath the developers' feet. In my opinion, running venv should only print a message to standard out which reads "You have done something wrong; review your project plans."

  4. Documentation: While this problem is not unique to python, I tend to find issues in python-project documentation more than any other language; maybe this is a testament to the popularity of the language, in which case "good for you but bad for many people, like me, trying to do something". Installation is as simple as "pip install blahblahblah"; great, what if I want to uninstall or reinstall or what if something was working before and now, for no obvious reason, python is raising exceptions which make no sense? For example, suppose I receive an import error "dlopen(foo.so, 2): library not loaded: absurdlyCrypticName.dylib; referenced from foo.so; reason: image not found"; this is not helpful. I have no idea what was tried. I have no idea what the context was in which such a try was attempted. I will likely have no idea how to resolve the issue even if I can somehow discern what sort of library is involved with "absurdlyCrypticname.dylib"; yes, I could try pip install ... and yet many times that doesn't work. Web searches often turn up nothing useful and hours, if not days, are wasted trying to figure something out with respect to an otherwise useful tool which could have been avoided if someone thought to use a reader-friendly name for the library, to give a bit more than a single line of context into a binary file, and to give some suggestions.

Maybe I am the only one who feels this way. Maybe I am too stupid to do a job I have been doing quite well for over two decades. Maybe every other developer is a psychic who sees no problem with their projects being structured poorly and who is insulted by the name "pip". Maybe it really is just me.

0 Upvotes

12 comments sorted by

View all comments

-1

u/tanto_von_scumbag Feb 13 '21

Learned Docker, from someone who built a successful automated ad exchange system that got picked up by Oracle, where they now work, as a means of standardizing the running environment for software regardless of the environment presented by the hardware. They taught this in the context of AWS if you're curious. You know, because all cloud computing is is a bunch of hardware.

You just seem bitter. No wonder your post got downvoted to hell. What did you expect? If you don't like the language, don't use it. You have 20+ years of experience with others. I'm sure you can find jobs, and subreddits, involving those.