You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5 years ago, I have switched from Java to Kotlin, and have been very happy for that since then.
And it is very likely that once you try it, you won't want go back to Java:
Kotlin is 100 % runtime compatible with Java (personally, I haven't found any issue on numerous projects),
both ways - can consume Java libraries, but also the produced artifacts are standard Java JARs.
Kotlin is very logical, therefore fast to write in. It prevents several common pitfalls done by Java developers, esp. regarding nullability.
It is way simpler to work with collections, use streams, use AutoCloseables, handle nulls, use threads, etc.
Kotlin is 90 % readable by a Java developer right away. I have learned Kotlin in around 2 weeks by just finding out the bits that I did not understand.
Kotlin's syntax, features, and the standard library, allows a typical Java code to be reduced by around 40 % (my experience), encouraging the developers to refactor, leading to easier tech debt elimination.
Switching to Kotlin is simple, and can be done gradually - Java and Kotlin source code can coexist in the same project, even module.
I offer my experience with Kotlin to port the entire JBake, if there's a consensus.
My motivation is that I would like to develop JBake (once again), but I don't want to spend time on writing all the Java boilerplate.
I have developed a few features for JBake myself few years ago, but then a rewrite came, and I never found time to port them (since the architecture back then required the features to be coded directly into JBake. But with Kotlin, it would be way easier.
Let me know how you like the idea, and I could adjust the build and convert some classes, to give you the idea of how it would look in Kotlin.
If you have doubts, then please comment bellow, why, so that I can have a chance to react and perhaps shed some light on whatever may be unclear.
The text was updated successfully, but these errors were encountered:
Hi all,
5 years ago, I have switched from Java to Kotlin, and have been very happy for that since then.
And it is very likely that once you try it, you won't want go back to Java:
both ways - can consume Java libraries, but also the produced artifacts are standard Java JARs.
Switching to Kotlin is simple, and can be done gradually - Java and Kotlin source code can coexist in the same project, even module.
I offer my experience with Kotlin to port the entire JBake, if there's a consensus.
My motivation is that I would like to develop JBake (once again), but I don't want to spend time on writing all the Java boilerplate.
I have developed a few features for JBake myself few years ago, but then a rewrite came, and I never found time to port them (since the architecture back then required the features to be coded directly into JBake. But with Kotlin, it would be way easier.
Let me know how you like the idea, and I could adjust the build and convert some classes, to give you the idea of how it would look in Kotlin.
If you have doubts, then please comment bellow, why, so that I can have a chance to react and perhaps shed some light on whatever may be unclear.
The text was updated successfully, but these errors were encountered: