3 ms·
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 mo
by recuter 5y ago
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}'
- lambdaba 5y agoIronically half that code (END...) is valid Ruby!