Browsing Tag
null safety
2 posts
Kotlin kontra Java – Part 5 – Domain Modelling
The final part of the series: how well can business domains be modelled in Java and in Kotlin – with sealed types, null handling, pattern matching, iteration and tests, using a video store as the example? It ends with the verdict: Java or Kotlin in 2026 – plus an appendix on where Kotlin can trip you up.
Kotlin kontra Java – Part 4 – Language for Safety
Which language makes programs safer – Java or Kotlin? Part 4 of the series compares memory, thread, null, injection and type safety: from JSpecify and NullAway to Kotlin's null-aware operators, the abandoned string templates and type-safe builders with @DslMarker.