Re:Reimagining front-end web development with htmx and hyper...
by pabs3 on Friday July 01, 2022 @09:50PM
(#31955295)
Its good to have dependencies archived for continued access to them, but there are efficiency issues with doing that. Using git submodules (or vendoring or similar) means that you and everyone who uses the project is stuck on the exact commit you have chosen for each submodule until they go and modify the git tree to use a different commit for each submodule. This makes it higher friction to update a submodule. You can't just go `git pull` or `apt upgrade` to update the submodule, you actually have to go modify every project that uses the submodule, update and redeploy each one, instead of just updating and redploying the submodule itself.
Re:Reimagining front-end web development with htmx and hyper...
by dhzhzjsbevs on Saturday July 02, 2022 @01:42AM
(#31956582)
That sounds amazingly slow, in a good way.
Re:Reimagining front-end web development with htmx and hyper...
by wsc981 on Saturday July 02, 2022 @03:15AM
(#31956931)
Well, I only use git submodules in private projects. From what I read most devs hate it :)
In the past I did came into contact with git submodules through freelancing for another company, and I agree it was quite a hassle it times using it in a team setting.
Re:Reimagining front-end web development with htmx and hyper...
by pabs3 on Sunday July 03, 2022 @02:13AM
(#31965507)
Even in private projects, its an additional hurdle that can block things like security updates for example.
Re:Reimagining front-end web development with htmx and hyper...
by doodlesdev on Friday July 01, 2022 @09:38PM
(#31955214)
With node some people commit the heresy of comitting the whole node_modules folder.
Re:Reimagining front-end web development with htmx and hyper...
by danielheath on Saturday July 02, 2022 @03:07AM
(#31956892)
I would do that, but node puts compiled bits in there, so nothing works if you switch machines.
It's not like linux distros figured out this stuff was an issue decades ago...
Re:Reimagining front-end web development with htmx and hyper...
by projektfu on Friday July 01, 2022 @09:42PM
(#31955236)
I think that's called vendoring and it's part of the 12 factor app.
Re:Reimagining front-end web development with htmx and hyper...
by zelphirkalt on Sunday July 03, 2022 @04:39AM
(#31966146)
Good luck with that approach in the JS world, where a package can have, without exaggeration, a thousand and more dependencies. Hopefully in the Lua world things are saner.
Re:Reimagining front-end web development with htmx and hyper...
by wsc981 on Monday July 04, 2022 @08:28AM
(#31976310)
I’ve found most Lua game related libraries don’t have any dependencies, so it’s indeed a saner world :)
Re:Reimagining front-end web development with htmx and hyper...
by yawaramin on Saturday July 02, 2022 @02:29AM
(#31956757)
What about transitive dependencies?
Re:Reimagining front-end web development with htmx and hyper...
by wsc981 on Saturday July 02, 2022 @03:14AM
(#31956926)
I've found most Lua libraries don't have any other dependencies.
Perhaps this is the reason I've found this approach work well with Lua. I've never tried it with other languages that I use, like Swift, Objective-C, C#.
I did work in a company in the past that used Nexus [0] for their dependencies across various platforms. Perhaps Nexus has some tooling build in to deal with transitive dependencies, not sure.
---
Not sure if this is good practice.