3 - Kotlin Android Tutorial | Domain, Use Case (Interactor), Companion Object, Clean Architecture

preview_player
Показать описание
Enjoy my teaching style? Looking for a comprehensive introduction to Kotlin, Android, and Programming in general? If so, consider picking up my introductory course to Programming Fundamentals with Kotlin and Android on Udemy; I don't think you'll be disappointed:

Welcome to part 3 of my Kotlin Android Tutorial. In this lesson, we design a domain layer to describe what our application needs to do (Use Cases), and what kind of information it needs to represent (Domain Model). Other topics include Kotlin Companion Objects, RxJava 2, and error handling.

Timestamps:
0:00 Intro
1:30 Describing the Problem Domain/Statement of a Calculator
3:00 The Architecture and Purpose of a Use Case (Interactor)
5:02 Writing a Data Model (bonus: Static Factory Methods in Kotlin)
9:30 Making a Scheduler Interface (necessary for being able to execute RxJava code in JVM based Unit Tests)
12:32 Coding our EvaluateExpression Use Case
24:09 Adding some Exception Handling
27:30 Summary and Outro

Livestream link:

Рекомендации по теме
Комментарии
Автор

17:43 where he gets angry for a couple of seconds!!

csabii
Автор

In a complex case, like when a user clicked the Add file button and in this after getting a uri from result where should we check whether that file exist? In viewmodel or in datasource.

bagadeshkumarr
Автор

Good job, Ryan, seems like I'm lagging behind the time, I used to write the business logic in my viewModel and Repository and I was so wrong that when I realized it should be part of useCase I have multiple methods in same useCase, however this video have cleared lots of doubts I had, thanks again.

AjayDewari
Автор

I wanna to ask, can i save a value to usecase ? It mean i declare global var to save value in usecase

billyanderson
Автор

Great job! Can't wait for another episode!

wiktorkalinowski
Автор

Had some confusion, you cleared it up, Thank you very much. <3

hiteshchalise
Автор

Nice video. i have a question. Does CalculatorExpression belong to model?

apptest
Автор

Now that I leveled up, I can finally understand the graphs and the need for use cases lol

Monarch_
Автор

U r champ..
Amazing series... looking forward..

bjugdbjk
Автор

Thanks for your videos, it helps me a lot...

juanesdev