4 ms·
> It’s better than homebrew It feels like every Nix post that gets on Hacker News has a version of that claim, yet it’s seldom expanded on. In this article, th
by latexr 3y ago
> It’s better than homebrew
It feels like every Nix post that gets on Hacker News has a version of that claim, yet it’s seldom expanded on. In this article, the author throws that in with zero explanation and never revisits it. In other words, it’s opinion and not fact, which is something I do not want conflated in a technical post.
I wish these unproductive software animosities would cease. I don’t care if you use Vim, Emacs, Helix, Windows, macOS, Linux, iOS, Android, or Symbian. Use whatever works best for you and let everyone else do the same. If you have a specific point to make about why a piece of software should be avoided¹, make your argument and let people judge it, otherwise let it go. Why do you feel the need to throw shade on anyone else’s work, especially open-source software? We’re supposed to be a community, not be backstabbing each other.
We’re talking about package managers, here. It’s a bloody tool and you’re treating it like the worst parts of sports fandom.
¹ E.g.: You may feel strongly that Chromium browsers should be avoided because they give Google more power and that’s a risk to the open web which itself becomes a detriment to society.
- benwaffle 3y agoYeah, I've tried both nix and brew, and `brew install` is just much more convenient than editing a config file and then running `home-manager switch --flake .`
- majoe 3y agoNot sure what the situation on MacOs is, but you don't need to use home-manager, do you? You should be able to simple use: nix-env -I <package_name> Or (new flake enabled CLI tools): nix profile nixpkgs#<package_name> That's quite close to other package managers. You still have the massive nixpkgs repository and tools like nix-shell as an advantage.
- n8henrie 3y agoOr frequently just `nix shell nixpkgs#foo` or even `nix run nixpkgs#bar -- --baz` (as opposed to `brew install foo; foo; brew uninstall (or it is it remove?) foo` I still have both installed as the union of their packages is better than either in isolation, but I really like having a good idea of what I have permanently installed (and why) in my nix config files, as opposed to re-spending 5 minutes in the brew docs to remember the brew incantation that will give me a reverse dependency tree and try to sort out whether I can uninstall something without breaking something else.
- eviks 3y agoWhy would you need to remember dep tree if brew will simply fail to uninstall an app if something else depends on it? The other solution to this and the other is shell aliasing, make "package manager rm" uninstall regardless of the package manager, and you don't need to remember
- n8henrie 3y agoI often end up scripting something with the dependency tree as opposed to recursively trying to uninstall dependencies that I don't recognize until I get to something top-level that I recognize.
- bobbylarrybobby 3y agoHomebrew doesn't have to be run imperatively — there is brew bundle, which keeps your installations in sync with a file. It's not nearly as complete as nix, but if all you aim to do is manage your packages through a single text file instead of searching your shell history for `brew [un]install`, it works great.
- lprd 3y ago> In other words, it’s opinion and not fact, which is something I do not want conflated in a technical post. As you’ve already stated, it’s an opinion and not a fact. I wouldn’t take posts like this so personally. Instead, use content like this to help you explore new tools. If you like it, great! If not, move on. Simple as that. If you’re new here, people can be very passionate about their tools.
- mk89 3y agoPeople can also be very objective, though. This is also HN. You can BS enough, but then you have to take some s** back if someone calls you out for making such statements :)
- latexr 3y ago> people can be very passionate about their tools. I’m aware. It’s not a coincidence that I started my examples with Vim and Emacs, the classic flamewar. There’s nothing wrong with being passionate for something, that’s not the argument. My point is that just because you like something you don’t have to be against an alternative. Nix and Homebrew, Vim and Emacs, these are parallel tools which can coexist, not rivals in a reality show. > I wouldn’t take posts like this so personally. Instead, use content like this to help you explore new tools. If you like it, great! If not, move on. Simple as that. There’s nothing to take personally, and I do explore tools which interest me. I feel like you haven’t read or understood my point at all. You’re ostensibly disagreeing while making the same point. I’m advocating precisely for the unwarranted negativity to stop. If you want to talk about why you love something, do, there’s no need to send subtle jabs at something else other people are working on and sharing for free. That’s incredibly demotivating for developers and leads to burnout, for nothing.
- mk89 3y agoSomeone heavily downvoted your comment - not sure about why. The author should have taken the time to state that homebrew doesn't offer features such as ... "environments" or things that help with build reproducibility. A bit unfair, though, because that was probably never Homebrew's mission.
- latexr 3y ago> The author should have taken the time to state that homebrew doesn't offer features such as (…). A bit unfair, though, because that was probably never Homebrew's mission. Depends on the wording. It’s perfectly fair to say “I use Nix instead of Homebrew because the former supports X which is useful to do Y”. That way it’s not important if Homebrew intends to have Y or not, it just clarifies what the author cares about in a package manager and the reader is better informed if they care about the same things. Or they could’ve not mentioned Homebrew at all. There’s zero positives to that sentence in that post.
- AdamJacobMuller 3y agoI don't mind the opinion "it's better than homebrew" The thing is, everything is tradeoffs. In some ways I'm sure Nix is better than homebrew. If you want to compel me to try it, tell me why you think it's better than homebrew so I can understand if it solves problems that I also have. That's what bothers me, I know not everyone uses my stack and I do love hearing about what others are doing differently but please please please tell me why you think it's better. Simply saying "Vim is better than standard editors" is pointless, saying "Vim keyboard shortcuts have an extremely steep learning curve, but, once the new way of thinking becomes second nature to you, you will find that you can do things far faster than before. This is especially useful for me personally as the 'context switching' from mouse->keyboard->mouse->keyboard->mouse was an extremely limiting factor for how quickly I can work and Vim (in particular Vim keybindings -- I use them in VSCode today) allows me to keep my fingers on the keyboard for more time before I do something which /requires/ the mouse, this makes me more productive. That said, the only way to learn that was to force myself to use Vim and no other editors which resulted in what was probably a 2-3 week period where I was completely useless, but, ultimately 15 years later I'm sure I've made that time back tenfold."