Hacker News new | ask | show | jobs
by gdevenyi 19 days ago
> Typescript to bash

Literally the worst of both worlds.

2 comments

Bash is great for orchestrating other Unix tools into an automated workflow. Only when that workflow requires stuff that Bash doesn't have is it time to break out Python. Integrate Shellcheck into your editor, and you get automated help for writing more reliable Bash.
ShellCheck is like a spaz hall monitor, filling my editor with useless warnings about what it believes are best practices. I thank my stars I mostly write shell scripts in zsh which it doesn't support.
It does have some "false positives" but by and large I find it helpful. I never saw a script misbehave where I followed Shellcheck's advice.
Shellcheck has good heuristics, like making mistakes with for and subshell variables. I’ve never found its heuristics to be off-base, and when it can’t genuinely tell because of some context that is only known to you, you can opt out via # shellcheck disable=SCxxxx
Great compared to what? It was great in the ‘90s, not today.
bash bashing i can understand. whats wrong with ts tho?
Everything, when other options are available? The strongest argument for Typescript is that it isn’t JavaScript, which doesn’t apply here.
Everything related to JavaScript is terrible.