by rayxi271828 · 4y ago · 0 comments
Yes, some of my fellow engineers like it for the language itself, but I feel these days it's getting harder to argue that "the team using Kotlin is so much more productive than the team using Java".
Curious what HN thinks about this.
Kotlin has (real, language-level) non-nullable references, which strikes me as a big improvement.
If you do some long, chained property accesses (which imo are the primary sources of NPEs) I can only recommend mapstruct. You basically declaratively write what has to be mapped to what and it will generate at compile-time the necessary, performant Java code with proper null-handling, even n level deep.
So my empirical evidence is that NPEs ”million dollar” fallen victim of inflation :D