Skip to content

Sample project to render data from http://chucknorris.io/ - used in various workshops and talks

License

Notifications You must be signed in to change notification settings

voghDev/ChuckNorrisJokes

Repository files navigation

ChuckNorrisJokes

Sample project to render data from http://chucknorris.io/

Used to practice Test Driven Development in Kotlin.

Kotlin

  • Used in the following workshops / live codings:
    • "Effective TDD on Android with Kotlin" @ GDG DevFestGRX 2017 - Video, Slides
    • "Effective TDD on Android with Kotlin" @ MADGEvents. Madrid (Spain) - Video available soon, Slides
    • "Effective TDD on Android" @ Mobilization8. Lodz (Poland) - Video, Slides

Demo

Screenshot

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...

About

Sample project to render data from http://chucknorris.io/ - used in various workshops and talks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages