1 / 48

Faster testing with Kotlin. Android case.

Faster testing with Kotlin. Android case. Justinas Krutulis justinas.krutulis@gmail.com. Agenda. We should write code for humans not to computers. Clean code. Expressive . Fewer lines, that does same thing. Clean code Clean architecture Kotlin Koin.

rustys
Download Presentation

Faster testing with Kotlin. Android case.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Faster testing with Kotlin. Android case. Justinas Krutulis justinas.krutulis@gmail.com

  2. Agenda We should write code for humans not to computers. Clean code. Expressive. Fewer lines, that does same thing. Clean code Clean architecture Kotlin Koin

  3. What would be interesting to know about Kotlin? Examples? Is it better? Could it be used in backend? Thor. https://kotlin.link/. Kotlin spring IDEA support?

  4. What would be interesting to know about MVVM? Examples? What to choose?

  5. Kiss

  6. KissAgenda Commercial for Kotlin, Koin, MVVM testing, couse it works and it’s cool Commercial for movie “Pentagon wars” if we will have time

  7. Helps to clear the thoughts, intent, tests Takes time, refactoring, effort to separate dependencies, extra work. Ref: https://www.planetgeek.ch/wp-content/uploads/2014/11/Clean-Code-V2.4.pdf Clean code

  8. MVVM 1 UI components are separated from business logic 2 Business logic is separated from Database 3 Easy to understand and read 4 A lot of less to worry about lifecycle

  9. Ref:https://github.com/android10/Android-CleanArchitecture-KotlinRef:https://github.com/android10/Android-CleanArchitecture-Kotlin Clean architecture MVVM

  10. Ref: https://github.com/android10/Android-CleanArchitecture Clean architecture MVP

  11. MVVM vs MVP.

  12. MVVM vs MVP vs MVC https://www.simform.com/mvc-mvp-mvvm-android-app-development/

  13. MVVM

  14. MVVM

  15. Contradiction

  16. Contradiction

  17. MVVM vs MVP vs MVC

  18. MVVM vs MVP vs MVC KISS

  19. Why MVVM? Official by android with androidx (jetpack) Easy to seperate and test Less interfaces, less code

  20. MVVM vs MVP. from codebase

  21. Databinding

  22. MVVM officially supported by androidx and Databinding

  23. Kotlin official from 2017

  24. 2019 https://medium.freecodecamp.org/https-medium-com-rahman-sameeha-whats-flutter-an-intro-to-dart-6fc42ba7c4a3 ?

  25. https://insert-koin.io/

  26. https://www.slideshare.net/ssuser80beb5/koin-for-dependency-injectionhttps://www.slideshare.net/ssuser80beb5/koin-for-dependency-injection

  27. Koin vs Dagger

  28. How to write test Faster and Easier?

  29. Less code, less code to read, misinterpreted and less to unit test KISS Clean code Clean architecture MVVM + Single Activity Databinding + LiveData Kotlin + RxJava/Coroutines Koin

  30. Testing

  31. https://proandroiddev.com/writing-integration-tests-in-android-b0436978ed7bhttps://proandroiddev.com/writing-integration-tests-in-android-b0436978ed7b Writing less “Instrumental tests”

  32. Writing even less “Instrumental tests”

  33. Actual implementation

  34. Single activity. Many fragments

  35. Demo https://play.google.com/store/apps/details?id=net.justinas.minitemplate https://gitlab.com/dzastinas/mini-list

  36. Why even the best architecture in the world will not help (Full movie in Youtube)

  37. Communication

More Related