streamline icon indicating copy to clipboard operation
streamline copied to clipboard

Adopt Bash Style Guide

Open Daemontamer opened this issue 7 years ago • 2 comments

Here's the bash style guide I was referring to:

https://google.github.io/styleguide/shell.xml

Shall we adopt it moving fwd and retrofit our existing stuff as time allows?

Daemontamer avatar Mar 25 '18 04:03 Daemontamer

Sounds good to me. I think some day I will just sit down and crush a red bull and implement this.

Then again... there are like.. bash beautification tools out there... I wonder if one can do that automatically for us?

colleenkhenry avatar Mar 25 '18 19:03 colleenkhenry

If I could chime in, I would like to suggest transitioning away from bash, rather than investing more into bash.

While bash is very useful for projects with little complexity, it become unwieldy as complexity grows. Transitioning over to a language like python would allow for better readability, maintainability, and portability while not affecting the overall efficiency of the tool.

Moving to a language like python would allow for you to easily add argument controls via the argparse library and would allow you to easily adopt plugins for different parts of the pipeline (for example using Shaka Packager for packaging).

vaage avatar Dec 17 '18 00:12 vaage