4 ms·
Cool project! Interestingly, the actual size of the files is almost inversely distributed compared to the line count: Line count, sorted: C# 246, Java 247, Ty
by simiones 5y ago
Cool project!
Interestingly, the actual size of the files is almost inversely distributed compared to the line count:
Line count, sorted:
C# 246, Java 247, TypeScript 253, Python 264, Go 272
File size, sorted:
Go 5.9KB, TS 6.0KB, Python 6.3KB, C# 6.6KB, Java 6.8KB
Some of this may be down to longer identifiers in Java and C# compared to Go, but also visually it seems there is somewhat more going on in the Java and C# implementations.
I will note that I much prefer writing C#/Java versus Go, and find Go to be generally verbose, but I think that this is not a case for it - the verbosity mostly comes from error handling and lack of generic programming, neither of which is used in this project.
- lostmsu 5y agoYou need to count only non-whitespace characters. The Go version uses tabs, while C# and Java use 4 spaces for indentation.