Git Product home page Git Product logo

chucknorrisjokes's Introduction

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

chucknorrisjokes's People

Contributors

voghdev avatar

Watchers

James Cloos avatar Rafael Bermúdez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.