419
Package managers be like (linux.community)

Sorry Python but it is what it is.

top 50 comments
sorted by: hot top controversial new old
[-] pastermil@sh.itjust.works 75 points 2 years ago

So you are saying that npm is better than pip?? I'm not saying pip is good, but npm?

[-] soeren@iusearchlinux.fyi 37 points 2 years ago

npm has a lockfile which makes it infinitely better.

[-] bjorney@lemmy.ca 25 points 2 years ago

pip also has lock files

pip freeze > requirements.txt

load more comments (11 replies)
load more comments (3 replies)
[-] ExLisper@linux.community 8 points 2 years ago

I would say npm is shitty like a lot of tools are. pip takes it to the next level.

load more comments (1 replies)
[-] Oha@lemmy.ohaa.xyz 37 points 2 years ago

npm is just plain up terrible. never worked for me first try without doing weird stuff

[-] Fashim@lemmy.world 34 points 2 years ago

NPM is ghastly though

[-] operetingushisutemu@feddit.de 33 points 2 years ago* (last edited 2 years ago)

I don't know what cargo is, but npm is the second worst package manager I've ever used after nuget.

[-] scorpionix@feddit.de 28 points 2 years ago

cargo is the package manager for the Rust language

[-] Lucky@lemmy.ml 12 points 2 years ago

I've never had an issue with nuget, at least since dotnet core. My experience has it far ahead of npm and pip

[-] jubilationtcornpone@sh.itjust.works 9 points 2 years ago* (last edited 2 years ago)

I'll second this. I would argue that .Net Core's package/dependency management in general is way better than Python or JavaScript. Typically it just works and when it doesn't it's not too difficult to fix.

load more comments (1 replies)
load more comments (5 replies)
[-] gronjo45@lemm.ee 24 points 2 years ago

Memes like this make me ever more confused about my own software work flow. I'm in engineering so you can already guess my coding classes were pretty surface level at least at my uni and CC

Conda is what I like to use for data science but I still barely understand how to maintain a package manager. Im lowkey a bot when it comes to using non-GUI programs and tbh that paradigm shift has been hard after 18 years of no CLI usage.

The memes are pretty educational though

[-] goatbeard@lemm.ee 38 points 2 years ago

Try not to learn too much from memes, they're mostly wrong. Conda is good, if you're looking for something more modern (for Python) I'd suggest Poetry

load more comments (4 replies)
[-] gerryflap@feddit.nl 20 points 2 years ago

This is why I use poetry for python nowadays. Pip just feels like something ancient next to Cargo, Stack, Julia, npm, etc.

load more comments (2 replies)
[-] luky@infosec.pub 19 points 2 years ago

i will get hated for this but: cargo > composer > pip > npm

load more comments (1 replies)
[-] LazaroFilm@lemmy.world 18 points 2 years ago
load more comments (3 replies)
[-] Alfika07@lemmy.world 16 points 2 years ago

What about CPAN?

You can't even use it without the documentation of the program that you want to install because some dependencies have to be installed manually, and even then there's a chance of the installation not working because a unit test would fail.

[-] Cwilliams@beehaw.org 12 points 2 years ago

What's so bad about pip? Imho, the venv thing is really nice

[-] ExLisper@linux.community 13 points 2 years ago

vevn is not pip. The confusing set of different tools is part of the problem.

[-] danielquinn@lemmy.ca 19 points 2 years ago

cough npm,yarn,grunt,esbuild,webpack,parcel,rollup,lasso,rollup,etc.,etc.cough

I'm not saying that Python's packaging ecosystem isn't complicated, but to paint JavaScript as anything other than nightmare fuel just isn't right.

[-] wraithcoop@lemmy.one 9 points 2 years ago

I don't think that's a fair comparison, the only two libraries that are related to the actual packaging system in that list is yarn and NPM. The rest of them have to do with the complexities of actually having your code runnable in the maximum number of browsers without issue. If python was the browser scripting language, it'd likely have the same issue.

Is there a python package that transpiles and polyfills python3 to work in python 2? 2.7? 2.5?

Also, unrelated to your comment, a lot of people are dunking on npm for the black hole that is node modules (which is valid), but also saying it's not pip's fault a lot of packages don't work. It's not npm's fault the package maintainers are including all these dependencies, and there are some 0-dependency packages out there.

load more comments (1 replies)
load more comments (4 replies)
load more comments (1 replies)
[-] Swedneck@discuss.tchncs.de 10 points 2 years ago

the only time i've had issues with pip is when using it to install the xonsh shell, but that's not really pip's fault since that's a very niche case and i wouldn't expect any language's package manager to handle installing something so fundamental anyways.

load more comments (3 replies)
[-] Ascyron@lemmy.one 8 points 2 years ago

Bruh idk why the difference... Educate me?

[-] theFibonacciEffect@feddit.de 10 points 2 years ago

Pip stores everything inside of some random txt file that doesn't differentiate between packages and dependencies.

[-] JakobDev@feddit.de 14 points 2 years ago

Pip stores nothing in a text file

load more comments (6 replies)
load more comments (2 replies)
[-] ExLisper@linux.community 8 points 2 years ago

cargo just works, it's great and everyone loves it.

npm has a lot of issues but in general does the job. When docs say do 'npm install X' you do it and it works.

pip is a mess. In my experience doing 'pip install X' will maybe install something but it will not work because some dependencies will be screwed up. Using it to distribute software is pointless.

[-] krimson@feddit.nl 26 points 2 years ago

I use pip extensively and have zero issues.

npm pulls in a million dependencies for even the simplest functionality.

[-] QuazarOmega@lemy.lol 10 points 2 years ago

Is that really the fault of the package manager or is it of the libraries you decide to use?

load more comments (3 replies)
load more comments (5 replies)
load more comments
view more: next ›
this post was submitted on 13 Oct 2023
419 points (100.0% liked)

Programmer Humor

36482 readers
45 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS