Sample project to render data from http://chucknorris.io/
Used to practice Test Driven Development in Kotlin.
- Used in the following workshops / live codings:
2018
It's been a great year.
Android ecosystem has improved, Kotlin has improved, a lot of valuable resources (online courses, books) have been released, compilation times have been noticeably reduced, and an awesome set of tools have been developed to make our lives a bit happier.
One of these tools is arrow-kt, a functional companion to Kotlin standard library. So the codebase for this entire project has been refactored to arrow-kt, replacing the good-old homemade Disjunction
using a Pair
of values.
Also, KotlinTest brings some fresh air to the good old JUnit
for naming Tests. Its nomenclature is probably the sweetest one ever made. Tests can be named with Strings that can be as long as we want, and can also be splitted in various lines. Any requirement can be specified in as much depth as one may need.
mockito and mockito_kotlin make the mix even tastier.
All the codebase has been refactored to KotlinTest, improving readability as well as removing some non-elegant hacks like lateinit
vars.
And best of all, without losing the green :-)
Just refactor, refactor, refactor...