News for hackers. Stuff that matters.
Re:Show HN: pgcmd – An alternative to psql with JSON output by paulcarroty on Thursday August 22, 2019 @03:11AM (#20765428)
Go rewrite it in your right language, nobody cares about haters.
Re:Show HN: pgcmd – An alternative to psql with JSON output by rswail on Thursday August 22, 2019 @03:49AM (#20765645)
This wasn’t a hate post. It was a legitimate question. My systems have python by default. Why do I want to add another dependency for node plus it’s inherent requirement for internet access to drag all the dependencies?
Re:Show HN: pgcmd – An alternative to psql with JSON output by dewey on Thursday August 22, 2019 @03:55AM (#20765680)
The answer is: because the author of the tool is comfortable in the language, wrote it for their use case and have NPM and node already set up. They were nice enough to share it so other people can use it too or port it to their favorite language.
Re:Show HN: pgcmd – An alternative to psql with JSON output by koolba on Thursday August 22, 2019 @09:38AM (#20767878)
Sure they have python, but which version of python do they have? 2? 3? 3.5? 3.7?

Arguably writing command line tools in Node.js has similar problems (8? 10? 12? 12.9?) though it has the advantage that not having a baked in version into your OS distribution means you have to install one yourself (which hopefully will match).

I think Go is a better choice for this type of thing as the end result is a copy-and-run-anywhere staticly linked binary.

Re:Show HN: pgcmd – An alternative to psql with JSON output by slantyyz on Thursday August 22, 2019 @09:17AM (#20767685)
>> This wasn’t a hate post. It was a legitimate question.

Seen through a different lens, it's actually a compliment.

The poster sees the utility in the tool, even though it's not built on one of the poster's preferred platforms.

But the great thing is that the OP shared the source code on Github, so it can be ported to other platforms... if one is motivated enough to do so.

Re:Show HN: pgcmd – An alternative to psql with JSON output by gramakri on Thursday August 22, 2019 @01:15PM (#20770298)
> it’s inherent requirement for internet access to drag all the dependencies

Isn't this required by package managers of all languages? pip/compose/gems all require internet access.