• alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      i need to get familiar with fish. i’ve studied the syntax but i still have hardly used it, and if you really want to learn how to code something, you gotta keep typing it until it’s in your muscle memory.

      • Herzenschein@pawb.social
        link
        fedilink
        arrow-up
        8
        ·
        3 months ago

        While I do like fish syntax, you don’t really need to learn it. You can just use it for your interactive use in the terminal while writing your scripts in bash.

        • null@piefed.nullspace.lol
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 months ago

          This is the way. I’ve never even attempted to script anything in fish, but it’s just a great interactive shell OOTB. I think at most I have a colorscheme and an alias or 2.

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            3 months ago

            Scripting in fish is so much better than bash, holy. Reduced my scripts’ LOC by probably 50% and made them actually legible when coming back to them 6 months later. I converted all my personal scripts from bash to fish.

        • Lena@gregtech.eu
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          Yeah that’s what I do to, I don’t need to write complex scripts anyway. Fish’s syntax seems interesting though.

        • alias_qr_rainmaker@lemmy.worldOP
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          Python is my #1 language. It’s the one I always code in. But I also know javascript and bash/zsh (also Ruby but I haven’t written any ruby for years, so I’d need a refresher)

          • luciferofastora@feddit.org
            link
            fedilink
            arrow-up
            1
            ·
            3 months ago

            At my previous job, I had only barebones beginner skills in Java and absolutely no idea of Java EE when I started. I reckon you’d get back in the flow with Ruby quickly enough.

            But also, python is nice.