News for hackers. Stuff that matters.
Re:Advanced Bash-Scripting Guide (2014) by disgruntledphd2 on Saturday August 20, 2022 @11:33AM (#32532778)
I used to think this way, and still do to a large extent. Unfortunately, we still need bash to build software (docker containers for example) so there's a limit to how much bash we can get rid of, unfortunately.
Re:Advanced Bash-Scripting Guide (2014) by js2 on Saturday August 20, 2022 @03:16PM (#32534474)
Of course, and I still use it in those places where it's required and relatively self contained, or frankly, if it just happens to be the best tool for the job which it sometimes is.

But now that I can expect python3 to be available on the systems I care about, and with the fairly comfortable ergonomics of subprocess.run, I find myself using Python in places I would've previously used bash.

A good heuristic is the moment a bash script needs to use curl + jq, it's time for python. Especially on macOS it's nice having things like plistlib so I can avoid `defaults` and `PlistBuddy`.