E.G, in the Counter snippet, why make some complicated code when Python is designed to make it simple?
import sys, collections
for p in sys.argv[1:]:
try:
with open(p) as f:
for k, v in collections.Counter(f).items():
if v > 1:
print(v, "\t", k, end="")
except Exception as e:
print("dup error: ", e)
I don't buy the argument of simplicity here. Also, if you are going to just do "get", you don't need requests, the stdlib is fine.And I don't get the speed argument either, given his script uses most_common(), that basically sorts the entire dict, which none of the other codes do. Yes Python is likely slower, but let's not push it.
Also the Go code is more complicated, but you can cross compile it and ship it as is. And it's fast.
I get it, TCL is cute, but making up arguments is not selling it.