https://github.com/uberto/kss
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
-
clone/fork the repository
-
./gradlew build (it should download dependency, compile and then fail with the first test)
-
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
-
try the functional kata exercises after the intro
-
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
You can see my solutions in the branch solutions