
The patterns will start simple but become more complex further in the article so make sure you check out all the sections.

However, even if you write Kotlin daily, there still might be some things you did not yet know. I assume you understand basic Kotlin syntax and basic principles like nullable types. Note that this article is aimed at beginners with little Kotlin experience. Stay tuned, read along, and find out why Kotlin is not just less, more concise, and idiomatic code, but also more fun to write :)

After the Kotlin 2021 Premier Online Event taking place just recently and the book "Java to Kotlin: A Refactoring Guidebook" by Duncan McGregor and Nat Pryce coming out, I thought it was a good time to write about Java patterns and how Kotlin can help you implement them or can even make them obsolete!įor all the Java gurus asking themselves: "why even bother with Kotlin when I have Java?" Switching from Java to Kotlin is not just a different syntax and null-safety (which by itself would be the killer argument to switch) but also a different kind of programming.
