Hacker News new | ask | show | jobs
by 0x54D5 2606 days ago
They also de-list older versions of popular packages like PHP 7.0. A package manager should never de-list. There are many valid reasons why someone might want to install an old version of a package.

As a user I'm not a big fan of the order of their CLI switches. For example to restart PHP-FPM:

brew services restart php@7.1

In Ubuntu the same thing is

sudo service php7.0-fpm restart

Should restarting a service require sudo? I think it should.

Should the service name be first and then the operation? I think it should as well.

Good luck convincing brew maintainers of this. It's like talking to a brick wall.

1 comments

The advantage to having the service name last is that you can easily list multiple services. On a default Ubuntu installation, this is now possible with systemd, another opinionated piece of software:

    sudo systemctl restart php7.0-fpm
I tend to prefer this syntax because I can perform an action on multiple services with a single command.
Also easier to make aliases instead of functions, if args require to be in the middle of other arguments.