by konradb · 11y ago · 0 comments
What distinction are you drawing here, with local install vs pull dependency?
Whenever I've run maven it's created a local repository and saved all the dependencies in that, but perhaps I'm misunderstanding the distinction you are drawing?
1. Push deps to an app means: npm install X
This makes it easier to promote libraries as it's easier to try them out. Just write npm install X and you're done.
2. Pull deps means: declare dependencies in your app and a package manager will download them.
This makes it harder to try libs you find on Github for my taste. It also ties dep management to packaging, where e.g. with Docker I prefer to manage dependency in the Docker file instead.
(npm can do pull too)
Where I do agree is that the maven UX is nowhere near as easy to use, but lately I have been using it over the Clojure facade and its been quite nice.
if I could vote in either direction I think maven/sbt is actually easier because you don't need to deal with "global" install. very dumb feature to share packages across projects, much simpler to think about deps as always project specific. but then again no one forces you to use global install... so it's the same. it only gets bad once you need some hacky junk like rvm or virtualenv to achieve project dependency isolation.
I will take a big Pom file or build.sbt over having to remember to enable the right installation of Python every time I switch projects any day.