• GhostlyPixel@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 month ago

    Really cool tool

    Her mentions of awk reminded me of a guy at my last job who was an absolute god with awk, but making changes to scripts he made were a nightmare because no one else could figure out what he was doing, and everything crashed and burned from small changes.

    • mesamune@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      1 month ago

      Sometimes a small python script that is readable is better for long term support.

      • QuazarOmega@lemy.lol
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        1 month ago

        Sometimes

        Always*
        Shell scripting for serious tasks should crash and burn, wherever possible at least

        • LiveLM@lemmy.zip
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          5
          ·
          edit-2
          1 month ago

          For all that I shit talk Microsoft, Powershell does seem better suited for production tasks than bash and friends…

          • QuazarOmega@lemy.lol
            link
            fedilink
            arrow-up
            2
            ·
            1 month ago

            Absolutely, the syntax and API isn’t exactly easy, but it is miles better because it’s both more familiar to other programming languages and because it is verbose.
            I argue that the complaint some have about its verbosity is of little meaning, those people have just used the shell so much that they naturally remember a lot of commands, what they’re used for and their specific syntax, but for a beginner it’s difficult to string everything together, because a lot of tools are of independent origin. Regardless, Powershell should by default have quite a few aliases to the commands/functions with long names so it’s not like you can’t have the best of both worlds