Most active commenters
  • gf000(6)
  • keb_(3)
  • aatd86(3)

←back to thread

Go is still not good

(blog.habets.se)
644 points ustad | 22 comments | | HN request time: 0s | source | bottom
Show context
the_duke ◴[] No.44983331[source]
I personally don't like Go, and it has many shortcomings, but there is a reason it is popular regardless:

Go is a reasonably performant language that makes it pretty straightforward to write reliable, highly concurrent services that don't rely on heavy multithreading - all thanks to the goroutine model.

There really was no other reasonably popular, static, compiled language around when Google came out.

And there still barely is - the only real competitor that sits in a similar space is Java with the new virtual threads.

Languages with async/await promise something similar, but in practice are burdened with a lot of complexity (avoiding blocking in async tasks, function colouring, ...)

I'm not counting Erlang here, because it is a very different type of language...

So I'd say Go is popular despite the myriad of shortcomings, thanks to goroutines and the Google project street cred.

replies(7): >>44983372 #>>44983413 #>>44983414 #>>44983469 #>>44983501 #>>44983524 #>>44983597 #
zwnow ◴[] No.44983372[source]
What modern language is a better fit for new projects in your opinion?
replies(5): >>44983386 #>>44983445 #>>44985494 #>>44989834 #>>45025592 #
1. gf000 ◴[] No.44983445[source]
For web frontend: js

For ML/data: python

For backend/general purpose software: Java

The only silver bullet we know of is building on existing libraries. These are also non-accidentally the top 3 most popular languages according to any ranking worthy of consideration.

replies(4): >>44983471 #>>44983521 #>>44983598 #>>44984319 #
2. tedk-42 ◴[] No.44983471[source]
I'd swap java with go any day of the week. I never liked how much 'code-padding' is required with java `public static void main`
replies(4): >>44983534 #>>44983539 #>>44984770 #>>44985673 #
3. zwnow ◴[] No.44983521[source]
Java, lol. Enterprise lang with too many abstractions and wrongly interpreted OOP. Absolutely not.
4. gf000 ◴[] No.44983534[source]
It's rich to complain about verbosity coming from Go.

Nonetheless, Java has eased the psvm requirements, you don't even have to explicitly declare a class and a void main method is enough. [1] Not that it would matter for any non-script code.

[1] https://openjdk.org/jeps/495

5. kasperni ◴[] No.44983539[source]
For Java 25 which is planned to be released in a couple of weeks:

----- https://openjdk.org/jeps/512 -----

First, we allow main methods to omit the infamous boilerplate of public static void main(String[] args), which simplifies the Hello, World! program to:

  class HelloWorld {
    void main() {
      System.out.println("Hello, World!");
    }
  }
Second, we introduce a compact form of source file that lets developers get straight to the code, without a superfluous class declaration:

  void main() {
    System.out.println("Hello, World!"); 
  }
Third, we add a new class in the java.lang package that provides basic line-oriented I/O methods for beginners, thereby replacing the mysterious System.out.println with a simpler form:

  void main() {
    IO.println("Hello, World!");
  }
replies(1): >>44986880 #
6. myaccountonhn ◴[] No.44983598[source]
What about php/ruby for web?
replies(1): >>44983725 #
7. gf000 ◴[] No.44983725[source]
An expert Ruby programmer can do wonders and be insanely productive, but I think there is a size from which it doesn't scale as nicely (both from a performance and a larger team perspective).

PHP's frameworks are fantastic and they hide a lot from an otherwise minefield of a language (though steadily improved over the years).

Both are decent choices if this is what you/your developers know.

But they wouldn't be my personal first choice.

8. keb_ ◴[] No.44984319[source]
Absolutely no on Java. Even if the core language has seen improvements over the years, choosing Java almost certainly means that your team will be tied to using proprietary / enterprise tools (IntelliJ) because every time you work at a Java/C# shop, local environments are tied to IDE configurations. Not to mention Spring -- now every code review will render "Large diffs are not rendered by default." in Github because a simple module in Java must be a new class at least >500 LOC long.
replies(2): >>44984432 #>>44985946 #
9. gf000 ◴[] No.44984432[source]
When did you last touch java, before 2000?

Local environments are not tied to IDEs at all, but you are doing yourself a disservice if you don't use a decent IDE irrespective of language - they are a huge productivity boost.

And are you stuck in the XML times or what? Spring Boot is insanely productive - just as a fact of matter, Go is significantly more verbose than Java, with all the unnecessary if errs.

replies(1): >>44985439 #
10. lenkite ◴[] No.44984770[source]
Every function call is 3-5 lines in Go. For any problem which needs to handle errors, the Go code is generally >2x the Java LOC. Go is a language that especially suffers from the "code padding" problem.
11. keb_ ◴[] No.44985439{3}[source]
> When did you last touch java, before 2000?

August 22, 2025.

Local environments are not literally tied to IDEs, but they effectively are in any non-trivially sized project. And the reason is because most Java shops really do believe "you are doing yourself a disservice if you don't use a decent IDE irrespective of language." I get along fine with a text editor + CLI tools in Deno, Lua, and Zig. Only when I enter Java world do the wisest of the wise say "yeah there is a CLI, but I don't really know it. I recommend you download IntelliJ and run these configs instead."

Yes Spring Boot is productive. So is Ruby on Rails or Laravel.

replies(2): >>44985709 #>>44986821 #
12. wing-_-nuts ◴[] No.44985673[source]
Always find 'java is verbose' to be a novice argument from go coders when there is so much boilerplate on the go side of things that's nicely handled on the java side.
13. wing-_-nuts ◴[] No.44985709{4}[source]
>Only when I enter Java world do the wisest of the wise say "yeah there is a CLI, but I don't really know it. I recommend you download IntelliJ and run these configs instead."

Then they obviously don't know their tooling well, and I would hesitate to call a jr 'the wisest of the wise'

14. mdaniel ◴[] No.44985946[source]
I know, both proprietary and enterprise, right? https://github.com/JetBrains/intellij-community/blob/idea/20... (I would also link to the Apache 2 copy of PyCharm but it wouldn't matter to folks who just enjoy shitting on professional tools)
replies(1): >>44986275 #
15. keb_ ◴[] No.44986275{3}[source]
That's the community edition. Cute and snarky comment, though.
16. gf000 ◴[] No.44986821{4}[source]
Any production-grade project will use either Maven or Gradle for builds. There are CI/CD pipelines, lints, etc, how would all these work if you could only build through an IDE?

Sure, there are some awfully dated companies that still send changed files over email to each other with no version control, I'm sure some of those are stuck with an IDE config, but to be honest where I have seen this most commonly were some Visual Studio projects, not Java. Even though you could find any of these for any other language, you just need to scale your user base up. A language that hasn't even hit 1.0 will have a higher percentage of technically capable users, that's hardly a surprise.

17. aatd86 ◴[] No.44986880{3}[source]
so getting closer to Go's syntax, n'en déplaise à certains, apparently. :-)
replies(1): >>44987374 #
18. gf000 ◴[] No.44987374{4}[source]
Except for the extra 3 lines of if err for every statement..
replies(1): >>44988383 #
19. aatd86 ◴[] No.44988383{5}[source]
Perhaps that it is coming sooner than you think... It all started with adding Value types, now syntactic refinements à la Go... Who knows? :-) You'll be very happy.

edit: hold on wait, java doesn't have Value types yet... /jk

replies(1): >>44991172 #
20. Capricorn2481 ◴[] No.44991172{6}[source]
> syntactic refinements à la Go

An oxymoron if I've ever heard one.

replies(1): >>44991579 #
21. aatd86 ◴[] No.44991579{7}[source]
???!

refinement: the process of removing impurities or unwanted elements from a substance.

refinement: the improvement or clarification of something by the making of small changes.

public static void in a class with factory of AbstractFactoryBuilderInstances...? right..? Yes, say that again?

We are talking about removing unnecessary syntactic constructs, not adding as some would do with annotations in order to have what? Refinement types perhaps? :)

replies(1): >>44992747 #
22. Capricorn2481 ◴[] No.44992747{8}[source]
> public static void in a class with factory of AbstractFactoryBuilderInstances

That's not syntax. Factory builders have nothing to do with syntax and everything to do with code style.

The oxymoron is implying syntax refinements would be inspired by Go of all things, a language with famously basic syntax. I'm not saying it's bad to have basic syntax. But obviously modern Java has a much more refined syntax and it's not because it looks closer to Go.