4 ms·
Great idea and looks awesome, but why javascript for a shell utility? :(
by chatmasta 9y ago
Great idea and looks awesome, but why javascript for a shell utility? :(
- stephenr 9y agoBecause it’s 2018 and while true; do wc foo; done Doesn’t get attention from hipster developers.
- timdp 9y agoOr because JS is my primary language. I was actually already planning to port it to Go as an exercise. You're welcome to beat me to it.
- stephenr 9y agoSo, you rewrite every possible utility that isn't written in JS? It seems hard to believe that your initial problem couldn't have been solved with some combination of pv, a while loop and wc.
- timdp 9y agoFYI, Golang port: https://github.com/timdp/lwc-golang https://github.com/timdp/lwc-golang
- chatmasta 9y agoAwesome! Kudos to you. I wasn’t trying to be discouraging by questioning why JS; I just like to keep my shell scripts dependency free. The frowny face was meant as commentary on the trend of using JS when it might be overkill. Sorry if that wasn’t clear. But the go port looks nicely done, and with a fast turnaround time! :) I will be using it, so thanks. Also, welcome to HN.
- timdp 9y agoYou weren't the one being rude. I've got thick skin, and you made a good point anyway. Glad you like it. :-)