r/programming • • Mar 07 '24

"Java is here to stay": Popular programming language to remain on business hit lists in 2024

https://www.itpro.com/software/development/java-is-here-to-stay-popular-programming-language-to-remain-on-business-hit-lists-in-2024
994 Upvotes

577 comments sorted by

View all comments

Show parent comments

6

u/wildjokers Mar 08 '24

Second, pip is a lot less of a shit show than npm or yarn

Except that python uses global libraries and it is a complete shit show. Have to use conda, venv, etc to work around it.

2

u/shoot_your_eye_out Mar 08 '24

I've never found `venv` difficult, and once it's dockerized it's not a big deal anyway. I'd much sooner deal with global libraries than multiple versions of the same library, any day of the week.

-1

u/wildjokers Mar 08 '24 edited Mar 08 '24

'd much sooner deal with global libraries than multiple versions of the same library,

When you have global libraries that is exactly what you end up with. Two applications both needing a different version of the global library. It's a nightmare. Especially if you don't spend a lot of time in the python ecosystem and know about the virtual env stuff.

1

u/shoot_your_eye_out Mar 08 '24

Two applications both needed a different version of the global library. Its a nightmare.

It really isn't. You just have to update one of them to use the newer version. And the problem here isn't `pip` or package management in python, but more like running multiple python applications that all rely on global packages. Which is itself a horrible idea, unless those applications are divided on container boundaries or some other way to keep them separate.

Clear we don't agree, so I'm not going to belabor the point. Best of luck.

1

u/zephyy Mar 09 '24

What do you mean "work around it"? Virtual environments are how Python is supposed to be used.

Also stuff like pipenv and Poetry make toggling a venv automatic.