Hacker News new | ask | show | jobs
by theshrike79 816 days ago
I usually go with the Google Shell Style Guide: https://google.github.io/styleguide/shellguide.html

  * If performance matters, use something other than shell.
  * If you are writing a script that is more than 100 lines long, or that uses non-straightforward control flow logic, you should rewrite it in a more structured language now. Bear in mind that scripts grow. Rewrite your script early to avoid a more time-consuming rewrite at a later date.
  * When assessing the complexity of your code (e.g. to decide whether to switch languages) consider whether the code is easily maintainable by people other than its author.