Live data from Hacker News

Navi- an interactive cheatsheet tool for the command line

github.com

1–10 of 17 posts

Re: Navi- an interactive cheatsheet tool for the command line

#4
post #3

It’s quite insane the amount of nice tooling people have been building thanks to Rust. I’m wondering why is it that Rust transitioned us to a new era for open source. My bet is the package manager.

As far as I'm concerned, my preference when learning a new language is to build (in order of preference):

* a CLI tool

* a backend service

* a plugin to an existing tool

* an HTTP API / web app

You will note that a basic CLI tool requires nothing but arg parsing to get started, no complicated library or abstraction layer, while as you advance in the list above, you will most certainly use more libs and less of the raw language constructs.

Also, in the case of Rust and other compiled languages, ease of distribution as a binary rather than a package or some form of arbitrarily complicated installation method certainly helps.

YMMV of course but this is my approach and maybe it explains a bit of the trend you're wondering about.

Re: Navi- an interactive cheatsheet tool for the command line

#5

How does this stack up versus cheat.sh ? I really should be making use of one of these and I would prefer to learn the most useful.

also look at cheat. combines community maintained and custom cheat sheets configured as simple text files.

https://github.com/cheat/cheat

Re: Navi- an interactive cheatsheet tool for the command line

#6
post #4
post #3

It’s quite insane the amount of nice tooling people have been building thanks to Rust. I’m wondering why is it that Rust transitioned us to a new era for open source. My bet is the package manager.

As far as I'm concerned, my preference when learning a new language is to build (in order of preference): * a CLI tool * a backend service * a plugin to an existing tool * an HTTP API / web app You will note that a basic CLI tool requires nothing but arg parsing to get started, no complicated library or abstraction layer, while as you advance in the list above, you will most certainly use more libs and less of the ra…

I think most of the same is true for Go. These languages are perfect for making CLI/TUI tools

Re: Navi- an interactive cheatsheet tool for the command line

#7
post #4

Earlier quoted context omitted.

As far as I'm concerned, my preference when learning a new language is to build (in order of preference): * a CLI tool * a backend service * a plugin to an existing tool * an HTTP API / web app You will note that a basic CLI tool requires nothing but arg parsing to get started, no complicated library or abstraction layer, while as you advance in the list above, you will most certainly use more libs and less of the ra…

I think most of the same is true for Go. These languages are perfect for making CLI/TUI tools

Absolutely. My initial comment was using Rust as an example only. It also applies to Go.

But not to JS or Python, to be clear.

Re: Navi- an interactive cheatsheet tool for the command line

#8
post #3

It’s quite insane the amount of nice tooling people have been building thanks to Rust. I’m wondering why is it that Rust transitioned us to a new era for open source. My bet is the package manager.

I wouldn't say it's a new era of open source, there's nothing novel about licensing from rust. But from a tool perspective both rust and golang support easy static binary creation and IMHO that's why you see both of them being popular with modern CLI tools.

Gone are the days of packaging up distro-specific binaries, or worse yet depending on some system installed script interpreter (and all the myriad of ways it can be broken or out of date on your user's machines). Now you just download a single executable, put it in your path, and you're done. It will always work--today, tomorrow, ten years from now. It's so easy and reproducible you can even just commit the tools into your source repo if you want.

Re: Navi- an interactive cheatsheet tool for the command line

#9
post #3

It’s quite insane the amount of nice tooling people have been building thanks to Rust. I’m wondering why is it that Rust transitioned us to a new era for open source. My bet is the package manager.

Honestly, I think part of this perception is the fact that things developed in Rust are more likely to advertise themselves as such. For example, I know that micro text editor is developed in Go only because I checked. I have no need to know this as an end-user, but many Rust-based projects seem quite eager to highlight that.

Re: Navi- an interactive cheatsheet tool for the command line

#10
post #3

It’s quite insane the amount of nice tooling people have been building thanks to Rust. I’m wondering why is it that Rust transitioned us to a new era for open source. My bet is the package manager.

I wouldn't say it's a new era of open source, there's nothing novel about licensing from rust. But from a tool perspective both rust and golang support easy static binary creation and IMHO that's why you see both of them being popular with modern CLI tools. Gone are the days of packaging up distro-specific binaries, or worse yet depending on some system installed script interpreter (and all the myriad of ways it can…

> But from a tool perspective both rust and golang support easy static binary creation […]

Honest question: As someone who knows C++ and CMake, what Rust and Go do to make it easier?

Post reply on HN