5 ms·
Hm.... Let me see. The number of operations I have to perform in Maven vs Python for independent packages: Maven Scala project - create skeleton, add libraries
by JAlexoid 6y ago
Hm.... Let me see. The number of operations I have to perform in Maven vs Python for independent packages:
Maven Scala project - create skeleton, add libraries to POM, write app, run app
PIP Venv Python project - create venv, enable venv, create requirements file, write app, run pip to install dependencies(possibly install GCC and extra libraries), run app
(Oh... and god forbid that you forget to deactivate venv)
You're lying when you say that library management is easier in Python. It's just factually untrue.
- Dylan16807 6y agoMost of the steps you're listing take only a few seconds. They're talking about the actual management, not how long it takes you to type . venv/bin/activate
- JAlexoid 6y agoA few seconds here and a few seconds there - it's death by a thousand papercuts. There's no community consensus - that keeps Python from advancing to where it needs to be. I said it once and I'll say it again - Python lacks mature tooling.
- Dylan16807 6y agoYou can't have death by a thousand papercuts when there are exactly three delay-papercuts adjacent to a step that takes a significant amount of time. There are contexts where little delays matter, and you didn't pick one of those.
- ptx 6y agoYou don't have to activate the environment. I never do; it's a strictly optional convenience (it you think it's convenient). Instead, simply run the interpreter installed in the environment when you run your app, e.g. "./my_env/bin/python my_app.py", and things will just work. No activation required, no special mode, nothing to forget. The part about requirements.txt and installing packages could also be simplified if you did it the other way around: install first and create the requirements file from that: $ python3 -m venv my_env $ my_env/bin/pip install some-dependency $ my_env/bin/pip freeze >requirements.txt $ my_env/bin/python3 my_app.py There you go. Setup, install and run in four steps and zero modes.
- JAlexoid 6y agoThat's literally one step more, than Maven. That's before you get to package your app...
- jtdev 6y agoMaven is far more complicated and burdensome when compared to virtualenv and pip... pom.xml, what a righteous mess of XML and overly specified nonsense.
- JAlexoid 6y agoThis is just to run your app, to package it - it's a whole different headache in Python. It's literally a `mvn jar` and that's it!