• alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      19 hours 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.

        • alias_qr_rainmaker@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          ·
          7 hours 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 hours 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.

      • Herzenschein@pawb.social
        link
        fedilink
        arrow-up
        13
        ·
        19 hours 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
          ·
          16 hours 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
            1
            ·
            edit-2
            24 minutes 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.

        • Pika@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          18 hours ago

          this is basically what I did until I dropped fish for zsh because of annoyances with how it functioned.

          Scripting in fish is obnoxious though if you learned bash first, heavily recommend staying far away 😂

          Hard recommend staying in bash or at least zsh, at least you maintain compatibility with others if you ever decided to share your scripts.

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            22 minutes 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.

            What makes it “obnoxious”??

          • BlueBockser@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            13 hours ago

            I tried using zsh again after having used fish for a while, but I just couldn’t do it. Trying to configure the ergonomics that fish ships OOTB into zsh was a pain, and I couldn’t get it to a satisfactory level.

            Regarding scripts, you don’t have to use the fish scripting language. Just keep writing your scripts in Bash, and as long as you use a shebang, it’ll work fine in fish.

            • Pika@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 hours ago

              Yeah, that was what I was saying it wasn’t super clear. I was saying, just keep your scripts in Bash because it has better compatibility 👀

        • Lena@gregtech.eu
          link
          fedilink
          English
          arrow-up
          1
          ·
          18 hours ago

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