Settings

Theme

Show HN: Lwc, a live-updating version of the Unix wc command

github.com

5 points by timdp 8 years ago · 9 comments

Reader

chatmasta 8 years ago

Great idea and looks awesome, but why javascript for a shell utility? :(

  • timdpOP 8 years ago
    • chatmasta 8 years ago

      Awesome! 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.

      • timdpOP 8 years ago

        You weren't the one being rude. I've got thick skin, and you made a good point anyway. Glad you like it. :-)

  • stephenr 8 years ago

    Because it’s 2018 and

        while true; do wc foo; done 
    
    Doesn’t get attention from hipster developers.
    • timdpOP 8 years ago

      Or 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 8 years ago

        So, 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.

        • chatmasta 8 years ago

          This comment chain was really uncalled for and quite rude. There’s no need to turn technical criticisms into direct personal attacks on someone sharing his work.

        • timdpOP 8 years ago

          No, I write utilities that make my life easier. I'm open to that combination though.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection