• 7 Posts
  • 111 Comments
Joined 1 year ago
cake
Cake day: October 21st, 2024

help-circle




  • There are many modern alternatives to common Unix commands, often written in rust, or provided in Nushell, that showcase that. Here are some common themes I like:

    Good defaults: You shouldn’t have to memorize tar -xzvf just to extract a tar file; The thing you’re most likely to want to do should be the default. But other use cases should still be achievable through the use of flags. Make simple thing easy and difficult things possible.

    Subcommands: It helps separate and discover the different functions of a CLI. Paired with a help subcommand, you can quickly look up information for the subcommand you’re actually interested in.

    Domain specific languages: Many problems already have a solution in the form of a DSL, such as Regex or SQL. My favourite example for this is httpie, which lets you specify the type, body and parameters of an HTTP request without touching any flags.

    I also much prefer long flags over short ones, because they are self-documenting.


















  • Me neither, I only stumbled across this a couple of days ago. I don’t use Bluesky but I heard that it’s not really defederated because of the large amount of resources it requires. Not sure if it applies to ATProto in general. For now I’m sticking with Codeberg because what’s a federated network worth if there’s not much to federate with