News for hackers. Stuff that matters.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by gdevenyi on Saturday July 11, 2026 @01:41PM (#48874016)
> Typescript to bash

Literally the worst of both worlds.

Re:Amber the programming language compiled to Bash/Ksh/Zsh by classified on Saturday July 11, 2026 @02:01PM (#48874176)
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.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by lokar on Saturday July 11, 2026 @06:38PM (#48876494)
Great compared to what? It was great in the ‘90s, not today.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by wpm on Sunday July 12, 2026 @12:30AM (#48878275)
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.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by classified on Sunday July 12, 2026 @03:50AM (#48879218)
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.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by supriyo-biswas on Sunday July 12, 2026 @09:31AM (#48881093)
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
Re:Amber the programming language compiled to Bash/Ksh/Zsh by artemonster on Saturday July 11, 2026 @04:28PM (#48875535)
bash bashing i can understand. whats wrong with ts tho?
Re:Amber the programming language compiled to Bash/Ksh/Zsh by adastra22 on Saturday July 11, 2026 @08:18PM (#48877101)
Everything, when other options are available? The strongest argument for Typescript is that it isn’t JavaScript, which doesn’t apply here.
Re:Amber the programming language compiled to Bash/Ksh/Zsh by lokar on Saturday July 11, 2026 @06:38PM (#48876503)
Everything related to JavaScript is terrible.