4 ms·
bash is not fit for any moderately complex task. I dont understand its popularity. Normally sane people who like unit testing, CICD, SOLID principles, quality
by x87678r 6y ago
bash is not fit for any moderately complex task.
I dont understand its popularity. Normally sane people who like unit testing, CICD, SOLID principles, quality tools end up with a bunch of crappy scripts holding everything together. Please avoid.
- chubot 6y agohttps://www.oilshell.org/blog/2018/01/28.html#shouldnt-we-discourage-people-from-writing-shell-scripts https://www.oilshell.org/blog/2018/01/28.html#shouldnt-we-di...
- peterwwillis 6y agoIt's fantastic for simple tasks, which is why so many people use it. It also turns out that many complex tasks can be reduced to a collection of simple tasks, otherwise known as "a bunch of crappy scripts". I encourage all my teams to avoid built-in CI/CD features and plugins and just script what they want in a Docker container. It ends up being easier to maintain, breaks less often, and is more portable.
- amelius 6y ago> I dont understand its popularity. I think the only reason people use the shell for scripting is that ls -lsa /tmp is simpler to write than execute(["ls", "-lsa", "/tmp"]) or even execute("ls -lsa /tmp") > Normally sane people who like unit testing, CICD, SOLID principles, quality tools end up with a bunch of crappy scripts holding everything together. Please avoid. Totally agree!