kss icon indicating copy to clipboard operation
kss copied to clipboard

Exercises to learn Kotlin a test at a time

http://github.com/uberto/kss

Have Fun and Learn Kotlin!

Exercises to learn Kotlin a test at a time

Used the first time at London Workshop Day for Kotlin: The Server Side Workshop on 28th of July 2018

https://medium.com/@ramtop/have-fun-and-learn-kotlin-25daa2e366c0

Instructions:

  1. clone/fork the repository

  2. ./gradlew build (it should download dependency, compile and then fail with the first test)

  3. fix the tests starting from the intro01 package and going in order

  • all tests must pass
  • you can change any line in the test but not the assertions
  • follow the guidelines in the comment
  • enjoy experimenting with the language
  1. try the functional kata exercises after the intro

  2. tweet me at @ramtop when finished! :)

Any feedback is welcome.

#Hints: to run all test of single package from command line:

./gradlew test --tests com.ubertob.kotlin.kss.intro01.*

You can check my blog posts on Kotlin:

  • https://medium.com/@ramtop/kotlin-scope-functions-c8c41f09615f

  • https://medium.com/@ramtop/kotlin-pearls-sealed-class-override-b951dcd752c6

  • https://medium.com/@ramtop/kotlin-pearls-lambdas-with-a-context-58f26ab2eb1d

  • https://medium.com/@ramtop/kotlin-pearls-3-its-an-object-it-s-a-function-it-s-an-invokable-bc4bfed2e63f

Solutions:

You can see my solutions in the branch solutions