Re:Ask HN: How do you stay focused while it's compiling?
by baccheion on Thursday November 17, 2016 @04:52PM
(#12982053)
A 10x reduction isn't uncommon, unless the code wasn't doing much (or wasn't very large) to begin with. Either way, the reduction is quite significant.
Where have you seen Go codebases being larger than Java's (with both providing the same amount of functionality)?
Re:Ask HN: How do you stay focused while it's compiling?
by Cyph0n on Thursday November 17, 2016 @05:10PM
(#12982206)
Primarily common snippets or tasks I felt were a bit verbose in Go compared to Java, or at least as verbose as Java.
> A 10x reduction isn't uncommon, unless the code wasn't doing much (or wasn't very large) to begin with. Either way, the reduction is quite significant.
I'll shoot your question back at you: do you have any specific examples to back your claim?
I don't like Java either to be frank, but I'm defending it because I'm not convinced by your original claim, i.e., Java has long compile times and is 10x more verbose.
Yes, but you won't get a 10x reduction in LOC as you claim. The point is that LOC reduction is usually not "for free".
> As for equivalent codebase sizes, do you mean literal lines of code, or having them provide the same functionality? I look mainly at equivalent functionality, as 1000 lines in Python can easily be doing much much more than 1000 lines in Java.
Functionality. Of course it can, but you sacrifice performance.
> Even with slower compile times, it's likely Go still compiles much faster than Java, while also resulting in a smaller, more manageable codebase.
From what I've seen of Go, you typically need more LOC to achieve the same task compared to Java.