Hacker News new | ask | show | jobs
by shepherdjerred 766 days ago
Go and Python are both fine languages, but they aren't great replacements to Java (for me).

I think Go will be a great language in 5-10 years. The authors of the language wanted to make something minimal, and they did a great job of that, but it was too barebones, though they are rectifying this by adding in critical features (like IMO, generics)

I like Python for small scripts, but I feel like I'm constantly fighting the language when managing dependencies, dealing with init scripts, or figuring out which of the 10 ways I should use to perform a common task.

I don't think there is a great replacement for Java. TypeScript with Bun or Deno might be the closest alternative right now, at least for me.

1 comments

Have you looked at Scala? I like it on the language level but it can be more complex than Java.
This is something I should look into. I've always felt that if I reach for Scala I might as well use a "real" functional language like Haskell, but maybe I'd find Scala to strike the right balance.
Personally the functional zealots are what put me off of Scala. I’m a firm believer that you need to use the appropriate style for your problem; oo, functional, or procedural. I also really like exceptions and don’t want to go in Result hell.