On Thu, 12 May 2016, Yves Dorfsman wrote:
A lot of people love to hate bash, and there are good reasons for it, but it
seems that there isn't an obvious replacement for it.
At some point it looked like perl was going to be it, then depending on the
local preferences some shops use either python or ruby, heavy JVM shop often
use groovy, while more and more shops now even use js or go...
I find bash (or any other UNIX shell) much more natural for simple scripts, I
don't even mind all gotchas (set -e, super weak typing, every var is gobal,
etc..), but do hate how bad it is to manipulate data, and the difficulty to
organize code.
What do *you* use? Do you see any clear winner to replace it on the horizon?
Use the right tool for the right job.
If the job is to run a bunch of commands, Bash is probably the right answer
If the job is to do a bunch of data manipulation, Perl/Python/Ruby/etc can be
the right answer.
A lot of it depends on the particular skillset your team has. If you are a Chef
shop where everyone is writing things in Ruby to work in Chef, then it's
probably a good choice for you.
The problem is that over time, scripts tend to get more complex as they handle
more and more special cases. It's easy to end up with a monster bash script that
really should be something else, because it started small and grew over time.
http://xkcd.com/1667/
David Lang
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/