ba.sh: A minimal pattern for organising bash code
“Simplicity is the ultimate sophistication.” (c) Leonardo da Vinci
When you hear “bash OOP framework”, what comes to mind? Probably complexity, overhead, fighting the language. But what if it didn’t have to be that way? If you’ve written bash scripts for any length of time, you know how it can go. It starts simple: a few commands in a file. Then you add a function. Then another. Then some variables. Before you know it, you have 500 lines of tangled code where everything can access everything, functions have names you don’t remember, and you’re scared to change anything because you don’t know what might break.
[Read More]