by excepttheweasel · 9y ago · 0 comments
But I wonder how it really scales on a large code base like this? Some of the best projects I've worked on leverage usability more effectively to create a sort of vocabulary. They're far more concise, there is rarely more than one source of truth, they're far easier to change and improve. Does this hold true for 540,000 lines of go code?
Doesn't this article speak to this? It mentions juju has over a million lines.
All the author is doing is relating their success using Go, which is great, but there is no comparison to how it would have fared in another language, except his previous frustrations with C#, on other projects, I guess.
https://groups.google.com/forum/?fromgroups=#!topic/golang-n...
I fail to see how that is saying that abstraction and usability are overrated. They're not. They're important.
https://en.wikipedia.org/wiki/Component-based_software_engin...
https://www.amazon.com/Component-Software-Object-Oriented-Pr...
I can not write a function dealing with arbitrary values.
Somethind I’d do in Java with
public static <T extends IIncrementable> T increment(T val) { val.increment(); return val; }
is impossible to do in Go.You can not abstract over types, and write metric fucktons of duplicated code. I’ve tried porting some of my Java code, and it quickly grew to some classes being duplicated hundreds of times, once for every type. Fixing bugs became a nightmare.
Who would have thought. Maybe a rewrite would have been more appropriate.
But I still ended up with the same classes replicated hundreds of times.
Polymorphic code is not possible in any other way in go – you always have to duplicate the code.