Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, this was literally from today:

https://programming.dev/post/22539101

Turn on shellcheck and you'll realise that nobody could get it right without tool assistance. In programming languages with "standard" quoting (Python, JavaScript, Rust, Go, C, etc.) you don't even really need to think about it.

> What are the chances your scripts are still going to work in 2 years? 5 years? 10 years?

100% because I'll maintain them.

> Suppose you’re in a large enterprise embedded project which needs to work for 10 years or more, and the project uses shell scripts for infra tasks. Would you recommend to migrate those to Deno or Python?

Absolutely yes. In fact the longer you expect it to last the stronger my recommendation would be. A shell script with 10 years of tech debt is a scary prospect.



> 100% because I'll maintain them.

What happens if you leave the project? Are your teammates going to maintain the scripts? What happens when one day, the Deno package gets updated and the script blows up? What if Deno becomes proprietary and closed source?

> A shell script with 10 years of tech debt is a scary prospect.

Several well-known executables on some Linux distros are really 20-year-old shell scripts. I haven't really seen them accumulate much tech debt.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: