Re:Show HN: Rb – Turns Ruby into a command line utility
by Annatar on Wednesday August 15, 2018 @02:40AM
(#17764144)
It’s arcane only if you don’t know C. If you’re on a UNIX-like or a true UNIX system, not knowing C will come to haunt you with a vengeance sooner or later.
Re:Show HN: Rb – Turns Ruby into a command line utility
by DarkWiiPlayer on Tuesday August 14, 2018 @04:47AM
(#17756339)
> The best tool for the job sometimes is the tool you know best.
That's like hammering in screws because you know your hammer and screwdrivers seem arcane to you.
For ad-hoc stuff `ruby -e` is more than enough, and if you want to write a program once and use it a lot, it's worth investing the time in doing it the way it works best, which in this case, would be a (fast) language like awk that makes it easier to process line-by-line instead of reading until EOF and making the rest of the pipeline wait.
I think that's relative and it certainly hasn't been my experience. If I program in Ruby, Node, Python, etc for 8 hours of every day, it makes sense that I would reach for that over a command line tool with a syntax that looks a bit arcane. The best tool for the job sometimes is the tool you know best.