5/8/2023 0 Comments Java to kotlin converterYou can have a look at this simple Spring Boot + Spring Data JPA Kotlin project to see more concretely what it looks like. Kotlin has been designed to play well with the Java ecosystem, and it seems to me that it shares the same pragmatic, innovative and opinionated mindset as Spring Boot, so they play well together. Also have a look to these simple Kotlin exercices to have a quick overview of the language. You will find a lot of useful links to improve your Kotlin knowledge in this Kotlin digest 2015 blog post. Allows to extend existing libraries without having to inherit from the class or use any type of design pattern such as Decorator.Code is easy to read, efficient to write.Built-in immutability and null safety support.Java interop is a first class concern and great.Easy to learn: a Java developer can quickly understand most of the language (this quick comparison to Java is worth to read).Relatively lightweight standard library compared to other languages.Kotlin is a statically typed language, but thanks to its clever type inference, it allows you to write code as short and expressive as dynamic language with performances close to pure Java projects.I won't go too much in details about all Kotlin features ( PDF, HTML), but I would like to highlight the ones I find the most interesting: ![]() It runs on top of the JVM (but not only), it is an object oriented language that includes many ideas from functional programming. ![]() ![]() Kotlin is a language created by JetBrains. This blog post is also an opportunity for me to explain why I find this language interesting, to show you a sample project in detail and to give you some tips. Just in time for Kotlin 1.0 release, we are adding support for Kotlin language to in order to make it easier to start new Spring Boot projects with this language. Update: a comprehensive Spring Boot + Kotlin tutorial is now available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |