3 ms·
I would have said Python. My rule of thumb is that if a bash script is > 10-20 lines or needs a function, then I rewrite it in Python. It's simply way more rea
by seabrookmx 9y ago
I would have said Python.
My rule of thumb is that if a bash script is > 10-20 lines or needs a function, then I rewrite it in Python. It's simply way more readable.
The main downside to using Python is that if you're running on a minimal system, in a container, or on Windows, Python is a large install.
But I don't see how porting Powershell to _nix solves that issue. _nix systems are more common in most web-centric companies nowadays. If you're a company that uses both you're better off installing Python on your Windows boxes IMO since they probably have bigger disks anyways to handle the large OS.
- ZenoArrow 9y ago> "But I don't see how porting Powershell to _nix solves that issue." I'd say the main reason to install PowerShell on Linux is if you want to use the tools for managing Azure. Aside from that, there are other scripting languages that are have a more mature library ecosystems on Linux.