3 ms·
Yup and something rarely mentioned is lack of good testing frameworks and all the pitfalls when you try to make something portable I will admit Python doesn't
by nijave 6y ago
Yup and something rarely mentioned is lack of good testing frameworks and all the pitfalls when you try to make something portable
I will admit Python doesn't have great, simple primitives for shell-like tasks but you can create a few functions to make a simple sh("") wrapper.
With Ruby's backtick execution syntax you can blend in shell/system utilities pretty easily. Unfortunately, Ruby isn't installed on as many systems by default, afaik
Here's a Ruby equivalent of looping through mp3 files in the current directory
```
Dir["*.mp3"].each do |file|
puts file # print the file name
end
```