• @AnUnusualRelic@lemmy.world
    link
    fedilink
    English
    2312 days ago

    So the alternative is:

    • either an obtuse script that works everywhere, or
    • a legible script that only works on your machine…
    • @shortrounddev@lemmy.world
      link
      fedilink
      English
      612 days ago

      I am of the opinion that production software shouldn’t be written in shell languages. If it’s something which needs to be redistributed, I would write it in python or something

      • @AnUnusualRelic@lemmy.world
        link
        fedilink
        412 days ago

        For a bit of glue, a shell script is fine. A start script, some small utility gadget…

        With python, you’re not even sure that the right version is installed unless you ship it with the script.

      • @Hexarei@programming.dev
        link
        fedilink
        311 days ago

        I tend to write anything for distribution in Rust or something that compiles to a standalone binary. Python does not an easily redistributable application make lol

        • @shortrounddev@lemmy.world
          link
          fedilink
          English
          2
          edit-2
          11 days ago

          Yeah but then you either need to compile and redistribute binaries for several platforms, or make sure that each target user has rust/cargo installed. Plus some devs don’t trust compiled binaries in something like an npm package

      • @coldsideofyourpillow@lemmy.cafe
        link
        fedilink
        English
        111 days ago

        On a more serious note, NOTHING with more than a little complexity should be written in shell scripts imo. For that, Python is the best, primarily due to how fast it is to prototype stuff in it.

    • I Cast Fist
      link
      fedilink
      312 days ago

      a script that only works on your machine

      That’s why docker exists :D

    • @shortrounddev@lemmy.world
      link
      fedilink
      English
      112 days ago

      I am of the opinion that production software shouldn’t be written in shell languages. If it’s something which needs to be redistributed, I would write it in python or something