Flutter TDD Clean Architecture Course [2] – Entities & Use Cases
Video Statistics and Information
Channel: Reso Coder
Views: 65,473
Rating: 4.9718461 out of 5
Keywords: resocoder, tutorial, programming, code, programming tutorial, clean architecture, software development, flutter clean ui, flutter clean architecture, flutter clean code, flutter testing tutorial, flutter tdd, flutter test driven development, flutter crash course, flutter course, flutter, flutter tutorial, flutter dependency injection, flutter state management, flutter bloc library, flutter unit test, flutter mvp, flutter mvvm
Id: lPkWX8xFthE
Channel Id: undefined
Length: 40min 22sec (2422 seconds)
Published: Thu Aug 29 2019
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
/u/MRresoMC , a question regarding your videos. I believe my question is the most relevant under your 2nd video. A couple of statements from your video/article:
presentation
->domain
->data
.Indeed that sounds good. There is 1 technical problem I'm facing: let's assume that
GetConcreteNumberTrivia
use case requires a complex type as it's parameter (because of the number of parameters). That means the method signature should look like so:NumberTriviaRepository#getConcreteNumberTrivia(SomeComplexRequestType param)
.Since dependency flow is from domain to data layer, I'd have to define
SomeComplexRequestType
in data layer to make sure that I don't violate rule 1 (repo implementation is in data layer and data layer can't depend on domain). However, if I do so, the domain layer will not be fully encapsulated, I violate the big advantage of the proposed architecture "total independence of the domain layer".So, my question: if you have to deal with complex data types, what do you recommend, where should they be defined?