News for hackers. Stuff that matters.
Re:Go: What We Got Right, What We Got Wrong by dharmab on Thursday January 04, 2024 @07:10PM (#38874007)
Why would those require 6 separate files?
Re:Go: What We Got Right, What We Got Wrong by theshrike79 on Friday January 05, 2024 @02:53AM (#38876767)
Interface, actual implementation, Factory, FactoryImpl, you get the idea.

Java lends itself to over-engineering more than most languages. Especially since it seems that every project has that one committer who must be getting paid per line and creates the most complex structures for stuff that should've been a single static function.

Re:Go: What We Got Right, What We Got Wrong by zimpenfish on Friday January 05, 2024 @04:04AM (#38877121)
They don't; you could put it all in one file but people tend to separate interfaces from implementation from types from ...