Re:Lessons learned porting 50k loc from Java to Go
by rsynnott on Saturday April 06, 2019 @11:27AM
(#19591199)
If anything, I’d say that due to a lack of generics, and more verbose exception handling, go codebases tend to be somewhat longer than java ones.
[ Parent
| on HN ]
Re:Lessons learned porting 50k loc from Java to Go
by sheeshkebab on Saturday April 06, 2019 @04:09PM
(#19592739)
Go error handling is a little bit more verbose, although I find it more readable and consistent than checked exceptions in Java, that everyone seems to find a way to abuse or ignore (wrap into catch all).
Go codebases do tend to be a little shorter due to lack of getters/setters... and generics are not used that often in production codebases anyway, relative to all the rest of typical code (that’s procedural anyway).
Re:Lessons learned porting 50k loc from Java to Go
by adamnemecek on Saturday April 06, 2019 @10:30PM
(#19594415)
> generics are not used that often in production codebases anyway
no.