News for hackers. Stuff that matters.
Re:Sorbet and 100% cov makes Ruby refactoring possible by recuter on Monday April 25, 2022 @05:01PM (#31160538)
Well, the go one would compile to an easily deployable binary and actually be able to, you know, count a whole lot of words quickly. But the ruby one is much more terse and quicker to write.

I say we go back to awk and get the best of both worlds:

  '{num+=NF} END{print num+0}'
Re:Sorbet and 100% cov makes Ruby refactoring possible by lambdaba on Monday April 25, 2022 @07:00PM (#31161938)
Ironically half that code (END...) is valid Ruby!