I feel mixed emotions when I see a "I created a custom Rust program to do XYZ" a...

@gumnos@bsd.cafe

I feel mixed emotions when I see a "I created a custom Rust program to do XYZ" and it's largely the same as a one-line awk command.

I mean, I appreciate that the person is learning a new programming language, creating tools they want or find useful, and excited to share their work.

But on the other hand, not knowing the classic tools means a lot of duplication of effort when an

awk '!a[$0]++'

would do the same thing, use existing tools on the system, not require an hour-long Rust build-process, and is expandable to doing other things like checking uniqueness of a single field

awk '!a[$3]++'

or only print a particular column

awk '!a[$0]++{print $3}'