Re:My deployment platform is a shell script
by redman25 on Wednesday April 10, 2024 @09:53AM
(#39990767)
Shell seems great until your tens of lines in googling every other line of obscure error-prone syntax.
[ Parent
| on HN ]
Re:My deployment platform is a shell script
by anonzzzies on Wednesday April 10, 2024 @01:21PM
(#39993284)
… or maybe you are not proficient at shell scripting? I never had this issue, including large projects written in tcl, bash or perl in the 90s when it was more normal to do so.
The modern answer seems to be some kind of dsl with yaml syntax mixed with Unix (and thus bash) snippets which are often incredibly verbose and definitely not easier to read than a well written bash script. The only thing I think of when I see those great solutions is; another greenspun’s tenth rule in action.
Re:My deployment platform is a shell script
by red-iron-pine on Wednesday April 10, 2024 @02:32PM
(#39994132)
bash and other sh related approaches have a lot of "foot guns". python, or powershell, or even C++ are often easier to read and follow.
> are often incredibly verbose and definitely not easier to read than a well written bash script
define well written -- getting into no true scotsman here.
bash is fine for what it was and what it did, and i'm glad to know enough sed and awk to be dangerous, but it's a PITA unless we're forced to use it