This posting was motivated by the elegant Kotlin implementation that Christian Hujer posted to Github today (for Conway's Game of Life) - which led me to spend a little time today revisiting Kotlin.
The conciseness of the Kotlin language is notable when comparing Christian's two implementations: Kotlin vs. Java.
References:
- https://kotlinlang.org/
- https://github.com/JetBrains/kotlin
- Kotlin Language Reference (v1.3)
Setup Steps:
0.0 Precondition:
- JDK 1.8 installed
- Eclipse 4.14 (2019-12) installed
1.0 Install the Kotlin Eclipse Plugin
2.0 Kotlin Preferences: Building
- Check box to enable incremental compiler usage.
3.0 Kotlin Preferences: Code style
- Accept default Code style
4.0 Kotlin Preferences: Compiler
- Configure JVM target version: 1.8
- Configure JDK Home: <your path to JDK 1.8>
5.0 Create a new Kotlin Project (e.g. "HelloWorld")
6.0 Verify that your Project's Properties "Java Build Path > Libraries" has Java JRE 8 configured
7.0 Create a Kotlin File
8.0 Name the file (e.g. "HelloWorld")
9.0 Create the "main" function
10. Remember to "Run-As" a Kotlin Application
Additional Reading:
Building RESTful APIs with Kotlin
- https://kotlinlang.org/docs/tutorials/spring-boot-restful.html
- https://medium.com/hacktive-devs/build-restful-web-services-with-spring-boot-and-kotlin-8190bd156722
- https://dzone.com/articles/kotlin-spring-bootspring-data-h2-db-rest-api
- https://auth0.com/blog/developing-restful-apis-with-kotlin/
No comments:
Post a Comment