this post was submitted on 28 Aug 2023
86 points (94.8% liked)

Rust

5777 readers
55 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

I didn't know I needed it, but what I know is that I will download it.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 1 year ago (1 children)

This was posted a few days ago. It's a great collection.

[–] snaggen 12 points 1 year ago (1 children)

bat and rg I actually have already.... but now you make me waste so much time fiddling with all these ;)

[–] BatmanAoD 5 points 1 year ago* (last edited 1 year ago) (1 children)

fd saves me so much time. I actually understand find better than I wish I did, and fd is just so, so much easier.

[–] [email protected] 1 points 1 year ago (1 children)

The advantage of both rg and fd are that they use the Perl-compatible regex syntax that almost every contemporary programming language uses. There's only one thing to learn.

[–] BatmanAoD 1 points 1 year ago

That, and the use of gitignore and other heuristics to ignore many files by default.

Plus, unlike grep, find is just...awkward. The directories to search must be prior to any search arguments (and . is not the default, it must be specified explicitly), and using a search pattern is treated as one of many special cases requiring one of a variety of flags rather than the obvious default operation.

It's a powerful DSL, but...not a convenient one by any stretch of the imagination.