groundzeros2015 14 hours ago

Haven’t checked in on Java in a while?

  • ozim 13 hours ago

    From what I gather everyone is still stuck on Java 8 so no need to check?

    • gf000 3 hours ago

      Even stuck on Java 8 it's less verbose than Go, which everyone seems to love.

      But the majority of projects are on a newer JDK than 8 for quite some years now.

      • the_gipsy 2 hours ago

        Not even latest Java is less verbose than Go.

    • throwaway7783 11 hours ago

      Where do you gather this from? We are a startup, on Java and on 25.

      • pylotlight 4 hours ago

        Why didn't you choose something more modern/sensible. go/kotlin/anything else on the planet?

        • gf000 2 hours ago

          Go is more verbose than Java though, in what way would it be more sensible?

          Also, Java's ecosystem is unparalleled (top 3 in size, depending on domain it usually has the best packages (e.g. typical backend-related functionality)), has stellar performance, a huge developer base, best-in-class IDE support, even LLMs understand it exceptionally well (given how widely represented it is in the training corpus, plus has a decent type system) if that's your thing.

          For a typical backend system, you really have to have a good reason to choose something else at this point.

    • vips7L 11 hours ago

      No, everyone isn’t. You really should check.

    • foo4u 12 hours ago

      This is absolutely untrue. Code from JDK 8 runs fine on JDK 25 (just released LTS). It is true that if you did something silly that locks you into certain dependency versions, you may be stuck, but this is not the majority of applications.

  • auxiliarymoose 8 hours ago

    I tried to check in on Java recently but got a NullPointerException when using the AbstractSingletonProxyFactoryBean !

    • gf000 2 hours ago

      R/ProgrammerHumor quality comment here.

    • OrangeMusic 5 hours ago

      I'll never understand people making fun of verbosity. So you really prefer short, ambiguous, opaque and unpronounceable abbreviations? Really?!

      • auxiliarymoose 4 hours ago

        For me at least, I find it easier to see the shape of algorithms, control flow, and expressions when the variable names are concise. But this also might be because I have found Go to fit my use-cases and thinking style well, and Go programs tend to follow this naming convention.

        For example, if I have a struct `PageEntity` with a field `Id`, and I am iterating over a slice of such IDs, I would prefer using `pid` instead of `pageEntityId` as the variable name. But Java APIs and conventions tend to use these longer names, so I find it takes more thinking to remember the different names instead of quickly seeing the behavior of code at a glance.

        Java also tends to have a lot of inheritance which results in these long glued-together names and makes it harder to follow program flow because behaviors get introduced in multiple different places (i.e., it has the opposite of locality of behavior).

        But those are just my opinions and experiences! I know many people love Java, and it is a versatile and powerful language.

        • gf000 2 hours ago

          That's really funny that you complain about complexity and then use Go which is a significantly more verbose language...