5 ms·
I was not intending to say that there can't be huge code bases with go, but java, C# with the tooling, eco system, less verbose and a much better static type sy
by mrath 8y ago
I was not intending to say that there can't be huge code bases with go, but java, C# with the tooling, eco system, less verbose and a much better static type system scale much better. There is still some areas where golang doing great, like CLIs and infrastructure tools. I definitely understand its simile design but I would very unlikely going to use golang where I can use Java.
- cutler 8y agoJava/C# less verbose than Go? In which alternate reality?
- apta 8y agoMy current employer uses golang for the majority of their code base. Absolutely agree that Java would have been more concise. There’s almost nothing in golang that lends itself to writing shorter code. Error checking is verbose and dumb. Need to define interfaces just for the sake of mocking, even if they have a single implementor. No map/filter/takeWhile/etc. meaning a single or 2 line in Java ends up taking 5-10 lines and more, with helper functions littered throughout the code base, making code harder to follow and ending up with more code. Even a simple example like final var a = foo() ? bar() : baz(); Is several lines in golang, which doesn’t even have an analogy to ‘final’ var a int if foo() { a = bar() } else { a = baz() }
- mrath 8y agoI never thought that there will be a modern programming language that is more verbose than Java. But there you go, golang proved me wrong. and Java is getting less verbose with each release. The major pieces of verbosity in Java is auto-generated by IDE anyway.
- jefftk 8y agoI've read a lot of Java, C++, and Python code at work and some Go, and verbosity I've seen is Java > C++ > Go > Python.