Lots of programming languages have their own package manager, separate from the distribution or OS package manager.

Going loosely from the TIOBE index:

  • Python has Pip
  • C# has NuGet
  • Javascript has npm for Node.js
  • Visual Basic also uses NuGet
  • R has a repository of packages that can be installed by running install.packages("something") in R
  • Rust has Cargo/Crates
  • Go has the go get command
  • Swift has its own package manager swift package
  • Ruby has RubyGems
  • Java has Maven and Gradle (not sure if they are full package managers, or build automation tools with dependency resolution)
  • PHP has Composer for managing libraries and dependencies
  • C and C++ are the only exceptions I can think of, off the top of my head; libraries are managed by, and coupled to, the operating system
  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    4 months ago

    Trading convenience and time-to-relrase with safety and long-term stability, by lego-ing kitchen-sink packages with glue code together. In short, mostly a thing of business needs and the JavaScript generation.

    Don’t get me wrong; libraries are useful.
    But the way the popular languages handle them – trusting foreign code by default and importing 90% unused code – is dangerous.

    Example, Rust starter tutorial for a cli application: “import clap”. ca. 15 packages depency, but it has

    • plugins
    • theming engine
    • fuzzy find
    • suggestions (did you mean)

    Great start, no? basiclaly importing it’s own application. Instead of teaching, how to parse std::io. Trust us bro, we do the right thing (and also all our 100 dependencies).