Learning Kotlin: Introduction

I have recently decided to start learning Kotlin, and have started with the Koans. Koans are simple unit tests that help ease you into learning a new language. The first step was setting this up on Windows and VSCode... though for some reason, I hate myself that much. 😤

Requirements

Using

I’m using VSCode as my editor and the command line to run the unit tests.

Parts

Since this will be ongoing, I’ll break it into a number of parts, listed below (this list will be updated over time):

  1. Hello World
  2. Java to Kotlin Converter
  3. Named Arguments
  4. Default Values
  5. Lambdas
  6. String Templates
  7. Data Classes
  8. Nullable Types
  9. Smart Casts
  10. Extension Functions and Extensions on Collections
  11. Object Expressions and SAM Conversions
  12. Kotlin’s Elvis Operator
  13. Return when
  14. The Awesome Backtick /learning-kotlin-awesome-backtick
  15. Collections
  16. The it Thing
  17. Operators
  18. Operators Don’t Need to Mean One Thing
  19. Destructuring
  20. For Loop
  21. Invoke
  22. Looking at the in Operator & contains
  23. The .. Operator
  24. Todo
  25. by Delegate Properties
  26. The Lazy Delegate
  27. The Observable Delegate (with a slight detour on reference functions)
  28. The Map Delegate
  29. The Vetoable Delegate
  30. The notnull Delegate and lateinit