[–] 2 points 9 months ago

What I understood from the article, is that they are going to publish articles on what changed from one LTS to the next, starting with 8 to 11.

My point was that such articles already exist^1^3, so I see little point to do it, except for Search Engine Optimisation, which seems likely since PVS Studio sells a static analyser. And looking through OP's post history I see that they post an awful lot of articles from them, which might imply they are affiliated to them.

  • source
  • parent
  • context
  • [–] 1 point 9 months ago (2 children)

    This is the first article in a series on what developers can expect when upgrading between LTS versions of Java.

    I understand the goal of this series, but I'm pretty sure it has been done multiple times already.

  • source
  • [–] 10 points 10 months ago (2 children)

    No, the Community Edition still exists and is available from github. They doesnt want people to use that though, since they want people to use the "free" Ultimate Edition with the colorful subscription link in the face of the user.

  • source
  • [–] [S] 1 point 1 year ago

    Unlike Java’s Optional, which is a library feature, JPlus provides null-safety at the language level. It allows developers to write code where null-safety is enforced consistently, without wrapping every value in an Optional. In that sense, JPlus brings the same kind of safety and clarity that Kotlin offers but keeps full compatibility with Java syntax and tooling.

  • source
  • parent
  • context
  • [–] 1 point 1 year ago* (1 child)

    Modern Java already has null safety via the Optional class. If a developer is too lazy to use that, what makes you think they would use JPlus?

    In my opinion this one is a bad selling point, because you're really just offering a cleaner looking alternative to what's already there, but you're not focusing on that, you're presenting it as if it solves a problem, which it doesn't.

  • source
  • [–] [S] 1 point 1 year ago

    Kotlin is great for null-safety, but Kotlin isn’t a superset, you can’t just compile a java file with kotlin and have it work.

    JPlus allows you to enforce null-safety without rewriting your existing Java code, which can be easier for teams working in legacy projects or who prefer staying in pure Java.

  • source
  • parent
  • context
  • [–] 2 points 1 year ago

    Ah, interesting. I haven't kept up with the newest Java changes, so you kind of answered that backwards for me. Being able to just use IO.println() is already pretty good and for sure what I'd prefer over having to add an import. Seems to also be a new addition in Java 25, so I guess, Hello World looks a lot different all of a sudden.

    My code was merely a demonstration that just println is possible now. Like you, I'd prefer IO.println in "real" code. My bar for static imports is extremely high.

    Also interesting that this kind of static import doesn't work with System.out.println, I'm guessing because out is already a field of System rather than a package or type. It can be used to write it as out.println, but yeah, not much of a point anymore when IO.println exists.

    Static imports are only for static fields and methods. System.out::println is an instance method.

  • source
  • parent
  • context
  • [–] 3 points 1 year ago (1 child)

    Ah, interesting. I haven't kept up with the newest Java changes, so you kind of answered that backwards for me. Being able to just use IO.println() is already pretty good and for sure what I'd prefer over having to add an import. Seems to also be a new addition in Java 25, so I guess, Hello World looks a lot different all of a sudden.

    Also interesting that this kind of static import doesn't work with System.out.println, I'm guessing because out is already a field of System rather than a package or type. It can be used to write it as out.println, but yeah, not much of a point anymore when IO.println exists.

  • source
  • parent
  • context
  • [–] 3 points 1 year ago

    Sure, but I think the argument in favor of this feature is that the overwhelming majority of people picking up programming for the first time tend to be beginners, so if it helps them learn the basics before having to grapple with OOP then it is worthwhile.

  • source
  • parent
  • context
  • [–] 9 points 1 year ago (8 children)

    You mean this?

    Now Java supports top-level instance main methods and class-less compact files. That means now the following declaration is valid:

    void main() {
        System.out.println("Hello from Java 25!");
    }
    
  • source
  • [–] 1 point 1 year ago

    A whole bunch of stuff I don't really care about: compact source files, instance main methods, module imports

    and even more I really want: flexible constructor bodies, primitive type patterns, scoped values, AOT stuff, compact object headers.

    I mostly hope I get to move my apps to it now. When I asked for changes to allow Java 21 I was told we'd go to 25 instead, so 🤞

  • source
  • view more: ‹ prev next ›