But I replaced that with a web front-end in the filecontroller application instead. There's also a defunct ui project that was a TornadoFX (Kotlin version of JavaFX) application. The filecontroller is a desktop service and front-end. The central controller is a server service with REST endpoints. It's just for fun and for playing around with new techs, though, not meant to be a real product. The basic idea of the project (eventually) is to encrypt files and back them up in the cloud on various providers depending on where you have free space available so you can mostly use free accounts as well as allowing for backups in multiple providers for really important stuff. is my profile, and the cloudbackenc projects are all Kotlin. I have a test project on github if you want to check it out. I use Kotlin with Spring Framework for quite a few things. Spring will still support Java for a long time because they have their legacy customers but it's pretty clear that they are preferring Kotlin these days. Basically it's rapidly becoming the language of choice for that stuff. Now that spring 5.x and spring boot 2.x explicitly support it, it's becoming a lot more mainstream. These days when I open a Java file for some maintenance, I'll pretty much convert it to Kotlin as a first order of business and spend a few minutes cleaning it up. lazy init properties).īut the bottom line is that the switch from Java to Kotlin is very easy. After that It took me a couple of weeks to get comfortable with the language and a few more months more to discover some of the more well hidden features and idioms in Kotlin (e.g. I had code running in production a few hours after that. I just decided to spend a couple of hours on seeing how far I'd get by adding the compiler plugin and converting a few Java classes in one of my projects (spring boot, junit, and some other stuff). Kotlin makes a lot of sense even without explicit support from frameworks. Most Java code becomes a lot nicer after a simple automated conversion to Kotlin followed by some minimal tweaks. Kotlin is a drop-in replacement for Java in most backend projects.
0 Comments
Leave a Reply. |