Java 21 makes me like Java again
351–360 of 777 posts
Re: Java 21 makes me like Java again
#352Nice article as someone familiar with sum types but not sum types in Java. I don't know if sum types alone are enough to get me to like Java, pervasive nullability is still around and even rears its head multiple times in this article.
Nullable is a huge issue in Java, but annotation-based nullability frameworks are both effective and pervasive in the ecosystem (and almost mandatory, IMO). I'm really excited about https://jspecify.dev/ , which is an effort by Google, Meta, Microsoft, etc to standardize annotations, starting with @Nullable.
Re: Java 21 makes me like Java again
#353Earlier quoted context omitted.
You must be really lucky then. In my previous job, inheritance and abstract classes were everywhere. Coupled with dependency injection frameworks that "worked like magic", it was really hard to follow the code inside that big, monolithic app. It made me never want to work with Java ever again.
I've never been a big fan of dependency injection. It solves a problem with unit testing in Java, sure, but the reality is that Java could have done some nifty things to help alleviate that as well.
Re: Java 21 makes me like Java again
#354Earlier quoted context omitted.
Nullable is a huge issue in Java, but annotation-based nullability frameworks are both effective and pervasive in the ecosystem (and almost mandatory, IMO). I'm really excited about https://jspecify.dev/ , which is an effort by Google, Meta, Microsoft, etc to standardize annotations, starting with @Nullable.
I hope they succeed. So many people have tried.
Persuading Java devs not to use nulls is hard.
Re: Java 21 makes me like Java again
#355Earlier quoted context omitted.
Exception handling and generics are missing key pieces from go. But adding them will make go look like java. I just wish java would add null safety in the type system in a first citizen way. For enterprise use java has no competitors. You have c# which is microsoft trying to estabilish nash equilibrium fu*ing the developers. I am a bit worried about ever increasing complexity and a steep learning curve, but seems lik…
Afaik, no language as great of exceptional handling as Java. I prefer Go but I have to admit, Java's checked exception handling is amazing.
Frankly, Id rather have a result and optional/nullable type like in rust/kotlin than deal with exceptions in any capacity.
Re: Java 21 makes me like Java again
#356Earlier quoted context omitted.
Go's major selling point to me is that you can ship one binary, nothing beats that. Python, Node, Java all have to pre-install lots of dependencies before you can use them, fine for developers, not so great if you want to distribute software for people who are not software savvy, who typically just wants to download one file, install and start using it. c and c++ can also do one executable, but, it is not as portable…
How do you distribute a Go library? How do you distribute a Go library that has dependencies?
Re: Java 21 makes me like Java again
#357Does it add value types?
Re: Java 21 makes me like Java again
#358[flagged]
As someone writing code on Java since v1.0 and making tech strategy decisions on the C-level, I consider myself sane and experienced enough to say that Java is something that will do the job well and can be the primary choice for startups and new projects. Kotlin as a platform is not mature enough to deserve the same qualification.
I mean, of course, Java has been here since forever and we've made careers out of programming for JVM. I'm wondering if you are referring to a specific maturity issue, or just want to highlight that Java was here for longer... if it's the latter, I don't think it can be a valid argument against Kotlin or in favor of Java.
Re: Java 21 makes me like Java again
#359Earlier quoted context omitted.
> ideology built on top of the idea that inheritance is really good idea and belongs everywhere. Those are two different ideas.
I used the word "and" to indicate that, yes.
Starting that single though with "The" indicates to me that you don't think those are two different ideas.
Compare:
the idea that inheritance is really good idea and belongs everywhere.
With: the idea that inheritance is really good idea. and belongs everywhere.Re: Java 21 makes me like Java again
#360[flagged]
We wish! We're stuck in the Java job market, reading Java praise pieces like this... Oh boy! Java's getting structs?