In a general purpose programming language there's a lot of overhead for doing the same things.
For maintainability, there are now linters for shell languages that can help making the job easier.
Obligatory in case anyone hasn't seen it:
https://www.shellcheck.net/
Works as a web app or local tool.
A good idea to double check using a text editor.
http://thejh.net/misc/website-terminal-copy-paste
In a general purpose programming language there's a lot of overhead for doing the same things.
For maintainability, there are now linters for shell languages that can help making the job easier.