News for hackers. Stuff that matters.
Re:The Top Programming Languages 2025 by ppeetteerr on Tuesday September 23, 2025 @10:23PM (#45355580)
Java is maturing into a syntactically nice language, albeit slowly, and it's the backbone of many medium and large companies.

You might have trouble finding small companies using anything but JS/Ruby/Python. These companies align more with velocity and cost of engineering, and not so much with performance. That's probably why the volume of interpreted languages is greater than that of "enterprisey" or "performance" languages.

Re:The Top Programming Languages 2025 by ystvn on Wednesday September 24, 2025 @01:23AM (#45356611)
> Java is maturing into a syntactically nice language, albeit slowly, and it's the backbone of many medium and large companies.

I've heard about Java initiatives to improve it, but can you point to examples of how how Java "is maturing into a syntactically nice language"?

I'm tempted to learn it, but wonder whether it would really become nice enough to become a 'go-to' language (over TS in my case)

Re:The Top Programming Languages 2025 by theanonymousone on Wednesday September 24, 2025 @01:46AM (#45356734)
There are some interesting talks and slide decks that I have to search around to find. Here is one: https://speakerdeck.com/bazlur_rahman/breaking-java-stereoty...

Check jbang.dev, and then talks by its author Max Rydahl Andersen. That could be a starting point.

Re:The Top Programming Languages 2025 by gf000 on Wednesday September 24, 2025 @05:55AM (#45358209)
It has virtual threads, that under most circumstances let you get away from the async model. It has records, that are data-first immutable classes, that can be defined in a single line, with sane equals toString and hash. It has sealed classes as well, the latter two giving you product and sum types, with proper pattern matching.

Also, a very wide-reaching standard library, good enough type system, and possibly the most advanced runtime with very good tooling.

Re:The Top Programming Languages 2025 by 62951413 on Wednesday September 24, 2025 @11:36AM (#45361845)
Re:The Top Programming Languages 2025 by ppeetteerr on Wednesday September 24, 2025 @02:26PM (#45364189)
I've always felt it was verbose and the need for classes for everything was a bit of a overkill in 90% of circumstances (we're even seeing a pushback against OOP these days).

Here are some actual improvements:

- Record classes

public record Point(int x, int y) { }

- Record patterns

record Person(String name, int age) { }

if (obj instanceof Person(String name, int age)) { System.out.println(name + " is " + age); }

- No longer needing to import base Java types - Automatic casting

if (obj instanceof String s) { // use s directly }

Don't get me wrong, I still find some aspects of the language frustrating:

- all pointers are nullable with support from annotation to lessen the pain

- the use of builder class functions (instead of named parameters like in other languages)

- having to define a type for everything (probably the best part of TS is inlining type declarations!)

But these are minor gripes

Re:The Top Programming Languages 2025 by xhevahir on Wednesday September 24, 2025 @07:22AM (#45358829)
Aren't a lot of those Java employers stuck on an old version of the language, one that's lacking most of those nice features?
Re:The Top Programming Languages 2025 by ramblerman on Wednesday September 24, 2025 @08:49AM (#45359569)
less and less, with the new release cycles.

What you get is either really old (Java 8 stuck on something nasty like weblogic).

Or companies running either cutting edge or LTS.

Re:The Top Programming Languages 2025 by vips7L on Thursday September 25, 2025 @10:46AM (#45373250)
A lot are, but there is an equal amount that are of modern versions. It’s a big landscape of employers. I’ve already begun moving my team to Java 25 from 21.