Comment by game_the0ry

5 hours ago

npm as a distribution tool works well and typescript has types.

Any reason why it should not be written in nodejs?

I always thought nodejs was a weird choice for CLI tools.

For web stuff, sure.

But for CLI, it never made sense to me. Especially when Python and Go exist.

  • > But for CLI, it never made sense to me. Especially when Python and Go exist.

    But why? Not saying node is better, just want to know where you are coming from for my own knowledge.

    Bc I would have picked typescript + node too. It has types (where python just has type hints) and a lot of developers know it already (where go is more niche).

    • I guess the reasons are that I feel (no data to back this up) that having a Python runtime available is much more probable than having a nodejs runtime around.

      I was going to say you cannot easily distribute a nodejs based CLI app, but that’s of course not true. devcontainer-cli is a nodejs app and so are many of the coding agent harnesses.

      Yeah, thanks for pushing back. I guess my view was irrational.