3 ms·
> So you start by telling me that I should just remove the dependencies from my dependencies, and then you tell me that you don't do that and instead choose dep
by Ygg2 2y ago
> So you start by telling me that I should just remove the dependencies from my dependencies, and then you tell me that you don't do that and instead choose dependencies that don't have many dependencies themselves? It feels like we agree...
There are two cases:
1. You have 100 dependencies.
2. You just started writing your code.
If you are doing 1) then you have to vendor/fork till it's acceptable.
If you are starting from 2) just don't add them.
> This is the thing: "I learned from history so I don't reinvent the wheel" should not be treated like a religious belief.
Nothing in programming should be treated as religious belief. But duplicating code can be just as deadly as dependencies glut, taken to it's logical extreme.
A golden middle approach is best, sadly no one can agree on it.
- palata 2y ago> A golden middle approach is best, sadly no one can agree on it. That's what I was saying: I think that we agree there. My initial point was that I don't think that the package management culture in Rust is a middle approach: it feels like most crates don't care about how many random dependencies they pull.
- Ygg2 2y ago> My initial point was that I don't think that the package management culture in Rust is a middle approach And I don't care about "cultures". They come and go, and change with time. What I care about are unchanging things - the programs. Sane package managers allow you to make your code however you want to. OSS allows you to tweak the code in whatever way you need, arguing for CMake over npm is frankly baffling.
- palata 2y agoWell cargo works well, I can't deny it. I was really talking about culture, which is important to me. The fact that many devs assume that everybody using Linux is on Ubuntu is culture, right? In Rust, it is often assumed that Rust was installed with rustup. It's nice to say "you are not forced to use rustup", but if it doesn't work when you don't, then you are kind of forced :-).