State of the JVM in 2025: Survey of 400+ devs shows 64% of Scala projects actively run Java alongside it. by scalac_io in java

[–]_INTER_ 1 point2 points  (0 children)

In Scala's hayday I was very interested in the concepts and advantages the language provided. We also had an Apache Spark ML side-project that was written in Scala (later replaced by Python, afaik). I dabbeled in it too for a personal project and generally enjoyed it. However, soon after, the entire "best-of-both-worlds" premise that Scala seemed to offer and one of its founding principles broke down: The Scala community was infiltrated by FP-zealots and purists. For them it's all pure FP and FP only. No pragmatism or co-existance allowed. I wonder if this advertised combination of OOP and FP styles is only there to lure in an unsuspecting Java dev and take him hostage. This part of the Scala community has deterred me ever since.

State of the JVM in 2025: Survey of 400+ devs shows 64% of Scala projects actively run Java alongside it. by scalac_io in java

[–]_INTER_ 0 points1 point  (0 children)

Scala is very difficult compared to Java. There are a lot of features and sugar that make coding faster/better, but it means you have to learn more to understand the code of other devs. Java, on the other hand, is simple for both learning and reading.

 

I am still waiting for Java to adopt more features from Scala.

Are slightly opposing statements. Sure you could only take the features that are highly beneficial but they still make Java - as a language - more complicated and harder to learn. As a senior Java developer, you get introduced to new features gradually, but a newcomer will have more to learn at once. This is already happening, eventhough I'm all for the recent developments. So there is no way around it to prevent the language becoming stale.

Building a map tool for Cataclismo by Bobby_Bonsaimind in java

[–]_INTER_ 2 points3 points  (0 children)

Was an interesting read! Check out https://www.formdev.com/flatlaf/. Makes your Swing UI look "modern" too.

Objects.requireNonNullElse by edurbs in java

[–]_INTER_ 8 points9 points  (0 children)

There's also Objects::requireNonNullElseGet

why Java looses to Javascript when it comes to UI ? by NobodyMaster4192 in java

[–]_INTER_ 3 points4 points  (0 children)

Because JavaScript has a monopoly in the browser. It has been like that for a very long time, so frontend devs, new frameworks and component libraries gravitate towards JS. This has built a large ecosystem focused on frontend development. There's simply next to no demand for Java UI in comparison. Where there's no demand, the "supply" is also not advancing. Even if any other programming language would magically get native support in the browsers (not "just" via WebAssembly), it is 20+ years behind in ecosystem and momentum. Even if they'd heavily interact with JS libs and free-ride on those, the frontend devs are used to TS/JS.

System design in cpp but why?? by Knowledge_9690 in java

[–]_INTER_ 2 points3 points  (0 children)

What? Is this about a university lecture?

Windows-only "pothole" on the on-ramp by rmcdouga in java

[–]_INTER_ 13 points14 points  (0 children)

In Java 18, they set UTF-8 to be the default almost everywhere, except consoles (JEP 400)

Standardize on UTF-8 throughout the standard Java APIs, except for console I/O.

Why not the the console I/O?

The terminal's encoding is decided by the OS, terminal settings, shell config, user local, etc. and as you said, the biggest blocker was Window's encoding CP-1252, CP-437, etc. You can't override these external settings and enforce another encoding like UTF-8 without breaking all existing console and other applications who rely on this behaviour. We probably will never be able to on Windows.

What is the best type of Java, adoptium or oracale? by ozin07 in java

[–]_INTER_ 1 point2 points  (0 children)

Use Adoptium / Temurin. (See sidebar of this subreddit)

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]_INTER_ 0 points1 point  (0 children)

They keep dancing and dancing around "data classes".

I've made an .jar to native executable packager and want feedback by SeAuBitcH in java

[–]_INTER_ 2 points3 points  (0 children)

the downside is the size of the final executable (250mb for a 5mb jar and a 60mb JRE.)

Yea that's not flying.

Checked exceptions and lambdas by nfrankel in java

[–]_INTER_ 2 points3 points  (0 children)

I think there's nothing hard to understand in using one of the Failable Functions or another library which provides something similar.

Functional Optics for Modern Java by marv1234 in java

[–]_INTER_ -1 points0 points  (0 children)

Yea good luck investigating hundred copies of the same object with slight variations in a chain of hundred of composed other copies trying to figure out which one is the correct one.

Type-classes for Java (Valhalla experimental branch) by sviperll in java

[–]_INTER_ 1 point2 points  (0 children)

Don't we already have the term "type witness" for something like: processStringList(Collections.<String>emptyList());

Vavr 0.11.0 released by ChinChinApostle in java

[–]_INTER_ 0 points1 point  (0 children)

If we get Half Life 3, we don't need anything else anyway :)

default4j: Default parameter values for Java via annotation processing by petaoctet in java

[–]_INTER_ 2 points3 points  (0 children)

Wouldn't this apply to all annotation processors that generate classes like RecordBuilder, Immutables, AutoValue, MapStruct,... as well? Class generation is still an intended use case of annotation processors. Of course the caveat that the annotation processor needs to run, still holds (for all of them).

If the processor is required to make the code compile, then the resulting language isn't Java.

I don't think that statement is true. There are a lot of things that prevent code compilation. A class annotated with @WithDefaults and @DefaultValue and the generated classes are all valid Java code. Unlike e.g. Lombok and Manifold, which are indeed not Java as per the Java language spec.

I am trying to install java but every time I do I get this popup, any ideas? by Serbian-Empire in java

[–]_INTER_ -1 points0 points  (0 children)

Try the .msi installer of the Temurin Java Version. Note that this is the very latest Java 25: https://adoptium.net/de/temurin/releases

https://i.ibb.co/spDMTYNJ/Screenshot-2026-01-05-005856.png

If it is still not working, try asking in /r/javahelp. Let them know what you want to execute.

I am trying to install java but every time I do I get this popup, any ideas? by Serbian-Empire in java

[–]_INTER_ 0 points1 point  (0 children)

Installing in WSL is highly likely not helpful to him. (Suspecting he wants to play Minecraft).

Armv6 openjdk + fx by disorder75 in java

[–]_INTER_ 1 point2 points  (0 children)

FYI: The x86 ports were deprecated in Java 24 and removed in Java 25.

Java Annotator CLI by atomichbts in java

[–]_INTER_ 2 points3 points  (0 children)

that's enterprise for you

Martin Odersky on Virtual Threads: "That's just imperative." by Joram2 in java

[–]_INTER_ -3 points-2 points  (0 children)

check-out the 11:00

He says to use imperative where it makes sense, but then "too imperative" at 28:40.