• 0 Posts
  • 818 Comments
Joined 3 years ago
cake
Cake day: November 14th, 2023

help-circle

  • To be clear, I understand the appeal of Fish and its reason to exist.

    Oh yeah, you were clear about that, not to worry. 😊

    I actually have plans to install Fish again and see how it goes.

    Nice, I hope you do! You’re welcome to join The School! 😄

    I just brought up these shells to make a point about Fish being different and that I categorize it like those.

    Yeah, I get you. Definitely a reasonable way of looking at it, too.

    Personally I find fish to be a general-purpose shell, despite the fact that it is not POSIX-compatible. So in my mind it’s in the same category as bash, csh, zsh, ksh, etc. It just does things very differently. 😄 But that’s just my personal mental model.

    Anyway I’m here if you ever want some tips on how to do stuff idiomatically in fish, if you ever do decide to get started. 👍🤝 Hit me up in the DMs or something.





  • if I was using a different language that is no longer compatible with POSIX or Bash, then why would I use Fish instead any other language? Why not Xonsh (Python) or Nushell in example?

    I think this is a great question, and the answer is probably more nuanced and personal, even per use case.

    I use fish because of its simplicity, period. And it had all the features I wanted from zsh built-in, with zero or simpler (actually understandable) configuration.

    I don’t help anyone with bash or write or share scripts, so I don’t have that issue where I need to juggle multiple shells, which is lucky for me perhaps. 😌

    But those other steps you mentioned probably are a bit more niche, let’s say. I think nushell is more tailored to people using the shell to process a lot of data. Digging through logs, perhaps. Debugging systems, or systems management/maintenance. Then it’s really handy to be able to process output as data tables, with proper sorting capabilities etc. Nushell is really powerful for that. I actually have it installed because it’s already useful sometimes but I barely know any of its specific commands. 😅

    Anyway, the choice of shell really is very personal. For me, fish and bash share the same purpose of being used both interactively and as general-purpose scripting languages. And since fish is better in my opinion I chose it. But if I had other use cases, maybe a different job with different requirements, I would make nushell my default. 😁


  • I instantly fell in love with the design choices of fish. It does things differently and more simply than bash. The syntax is actually readable linguistically compared to bash. Very conscious choices, and there’s usually just one way of doing things, and they just make sense.

    I converted all my scripts from bash to fish. They are 50% less LOC, have zero comments in them, and I can actually come back a year later and instantly make an edit because I can actually read what the code does. In my bash scripts I did have comments, and I still had to bring up the manual to make an edit…

    Fish’s language really is very small, you basically can actually fit its entire syntax footprint in your brain’s working memory. It’s great to work with. Highly recommend giving it a more serious shot for anyone who is curious of a better world. 😊









  • This isn’t even what I meant by “how it works”. I mean that it’s basically a machine that outputs whatever next text that would be the most probabilistic given the previous text and input.

    So the basics of how it works. Not exactly how it works.

    Most people don’t know the basics of AI and how it works in that sense. They hear AI and think “I Robot” and think the computer is actually talking to them and giving them something that a “brain” has “reasoned” about, which is not the case.