3 ms·
"Bash is great, but when it comes to writing more complex scripts, many people prefer a more convenient programming language." https://google.github.io/zx/gett
by 1vuio0pswjnm7 3y ago
"Bash is great, but when it comes to writing more complex scripts, many people prefer a more convenient programming language."
https://google.github.io/zx/getting-started https://google.github.io/zx/getting-started
I read this and think "1. Bash is not great. 2. Why assume that I want to write complex scripts."
I like simple scripts. I am embarassed by any complexity. It is the mark of a cluttered mind.
As it happens, there have been and still are others that dislike complexity, though they may be greatly outnumbered.
Right now there is another submission in /active on HN titled, "A 2024 Plea for Lean Software. Why Bloat is Still Software's Biggest Vulnerability"
"I want to end this post with some observations from Niklaus Wirth's 1995 paper:
"To some, complexity equals power. (...) Increasingly, people seem to misinterpret complexity as sophistication, which is baffling-the incomprehensible should cause suspicion rather than admiration."
I've similarly observed that some people prefer complicated systems. As Tony Hoare noted long ago, "[T]here are two methods in software design. One is to make the program so simple, there are obviously no errors. The other is to make it so complicated, there are no obvious errors." If you can't do the first variant, the second way starts looking awfully attractive perhaps."
And scripts are not even systems. The idea of intentionally creating "complex scripts" is indeed baffling.
The HN title could be something like "ZX - A tool for writing complex scripts". Or "ZX - A tool for writing better complex scripts". Instead it's "ZX - A tool for writing better scripts".
- msla 3y ago> I am embarassed by any complexity. It is the mark of a cluttered mind. It is the mark of a cluttered world. Sometimes, there is no simple solution. You have to parse this file, you have to use software to do it, and you can't fix up every little quirk in the file's actual grammar versus the grammar you wish the file had. Tag soup HTML is one example, but there are thousands of others, around the world, doing important things for business and education. Sometimes you get to parse JSON. Sometimes you have to parse SQL.
- tester457 3y agoIn my opinion any bash script longer than a one liner is complex and should be rewritten in another language. Too many footguns.