Comment from my group project teammate. You don’t need to comment every line lol

  • riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    6 months ago

    Bash is a shit „language” and everytime i need to write the simplest thing in it I forget which variable expansion I should use and how many spaces are the right amount of spaces. It’s impossible to write nice to read bash, but even in C you can write code that comments itself.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      6 months ago

      It’s perfectly possible to write nice to read bash, and to also make is safe to run and well-behaved on errors.

      But all the three people that can do those (I’m not on the group) seem to be busy right now.

    • AProfessional@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 months ago

      bash sucks but i don’t agree. Some simple rules like regularly use intermediate variables with useful names and never use shorthand arguments goes a long way.