News for hackers. Stuff that matters.
Re:Lessons learned porting 50k loc from Java to Go by apta on Saturday April 06, 2019 @02:34PM (#19592263)
> go codebases are not shorter (by much) than java's.

They're usually longer. See: no generics, error handling, among other things.

Re:Lessons learned porting 50k loc from Java to Go by hactually on Saturday April 06, 2019 @08:29PM (#19593952)
what do generics have to do with making it longer?

If you want to argue 'usually' then you could consider all the build scripts and XML files, class boilerplate and exception code of Java to be 'usually longer'.

Please don't troll.

Re:Lessons learned porting 50k loc from Java to Go by apta on Saturday April 06, 2019 @09:03PM (#19594094)
> what do generics have to do with making it longer?

Code duplication, just one example: https://godoc.org/github.com/cznic/mathutil#Max

Even with exception handling code, Java is shorter. Build scripts are not part of this discussion.

Re:Lessons learned porting 50k loc from Java to Go by svick on Friday April 19, 2019 @10:41AM (#19699997)
Except Java's method that does the same (Math.max) does not use generics and instead has overloads for the various numeric types it supports.