DEV Community

Discussion on: writing quick and dirty scripts using bash

Collapse
 
ondrejs profile image
Ondrej

I genuinely admire how you DevOps people have nerves from steel with scripting in Bash/Zsh/Fish/other shells. I always avoid it at all cost and use for (client & server-side) scripting Ruby or Python because it seems to me much easier.

Collapse
 
intricatecloud profile image
Danny Perez

Ruby/JS are my go-tos for anything more than 20 lines of bash. I don't know of that many people that actually enjoy writing bash (though I have met a few). I generally only do it out of necessity for small things.

The company I work at has a mix of languages in use among engineers which means some of ruby, python2, python3, and js. Each one tries to avoid installing the other. The easiest way to convince these teammates to use some tools is to just say "it only uses bash."

...then one day we needed to introduce some python scripts into our bash scripts, and all hell broke loose with people's python installation. obligatory XKCD - python environments

Collapse
 
ondrejs profile image
Ondrej

"The company I work at has a mix of languages in use among engineers which means some of ruby, python2, python3, and js. Each one tries to avoid installing the other. The easiest way to convince these teammates to use some tools is to just say "it only uses bash." "
That is pretty clever :D