3 ms·
I use and love Ruby every day, but this package management business is ... irksome. First the Ruby guys crapped all over package management from Debian, who, d
by davidw 14y ago
I use and love Ruby every day, but this package management business is ... irksome. First the Ruby guys crapped all over package management from Debian, who, despite their shortcomings, have been doing it a while and know a thing or two about it. That wasn't entirely unfounded, because there were some messy things there, and the intersection of two different package management systems is bound to be a bit confused.
Now we have rvm's and gemsets and bundles and additionally people trying to foist off alternatives to some of these, and the whole thing is beginning to look like an unholy mess.
Meanwhile, Debian/Ubuntu's package management continues to work pretty well at what it does.
- mje__ 14y agoUntil you have more than one app running on the same machine with different dependencies... like say on a development machine. This is the point when bundling shines, because it elevates you off of the os-level dependencies.
- davidw 14y agoA properly done OS can handle more than one version of a library at the same time. Also, it's a good idea to use a development environment that's not too far from what you're running in production.
- dasil003 14y ago> Meanwhile, Debian/Ubuntu's package management continues to work pretty well at what it does. But what it does moves at about 10% of the speed of the ruby community (at least post-Rails). I'm not saying that the ruby culture is better—it obviously has serious consequences for stability and leads to all manner of headaches. However it does mean that if a new and better idea of how to do something comes out, Ruby is probably one of the first places you can use it in production. My feeling is that the benefits outweigh the costs if and only if you are a full-time developer in a paradigm that Ruby is good for (eg. traditional web development). If you are just dabbling in the language then Ruby will continuously pull the rug out from under you. And if you are just trying to install some software as an end-user, then Ruby is probably one of the worst possible platforms.
- davidw 14y agoI didn't meant to say that Ruby should use Debian package management or anything like that: it needs its own stuff at its own speed. More that they should be a bit slower on the draw when it comes to pissing on other people's work.
- dasil003 14y agoAgreed that the subset of the community with no respect for the Debian process showed the worst sort of young hipster developer arrogance.
- petepete 14y agoSurely bundler helps solve some of these problems; at least it makes managing gems easier on a per-app basis.
- davidw 14y agoAnd then you try and deploy it: http://serverfault.com/questions/405994/state-of-the-art-deploying-rails-applications-with-git http://serverfault.com/questions/405994/state-of-the-art-dep... And you're either stuck with this Mongrel-derived nonsense that is incapable of utilizing the computing power of the server to dynamically (de)allocate resources, requiring you to pick numbers at setup time, or you've got Passenger, which gets that right, but basically nails your deployment to one and only one Ruby. (Yes, I've not had the best of days...does it show?)
- petepete 14y agoIt does, yes. And, to be fair, bundler has caused me a number of headaches over the years. I guess I'm lucky in that I only need one Ruby; I can't see an easy solution for using more than one at once.