tim
01/18/2021, 3:27 PMdata class Person(val name: Name, val age: Age)
would have a corresponding data class PersonDto(val name: String, val age: Int)
and then inside an ACL there would be explicit conversions between the two ... maybe something like this Person.toDto()
and Person.fromDto()
.
As we've started moving away from allowing types to be converted implicitly, I'm beginning to fell that the slight increase in transparency isn't worth the additional boilerplate. Any thoughts on this one way or another?tddmonkey
01/18/2021, 3:39 PMtim
01/18/2021, 3:59 PMdomain - business logic/domain specific stuff
infrastructure - mostly repositorys/things that are driven by the domain
interfaces
- acl
- dto
usecases - the functionalities exposed by the service
So all of the dto acl logic is in the same common area and the domain is never exposed to it. And basically inside a use case we do the conversions to/from domain objects/dtos.
Do you take the same approach/view inside your db logic interms of using and ACL/Dtos or do you rely on implicit conversion there?tim
01/18/2021, 4:02 PMtddmonkey
01/18/2021, 4:11 PMcom.business.domain.feature.feature_a
and that would have usecases, domain objects, views etc. all in theretddmonkey
01/18/2021, 4:12 PMtim
01/18/2021, 4:14 PMtddmonkey
01/18/2021, 4:21 PMtim
01/18/2021, 4:24 PMtim
01/18/2021, 4:27 PMtddmonkey
01/18/2021, 4:27 PMtim
01/18/2021, 4:28 PMtddmonkey
01/18/2021, 4:28 PMtddmonkey
01/18/2021, 4:29 PMtim
01/18/2021, 4:30 PMtim
01/18/2021, 4:30 PMtim
01/18/2021, 4:37 PMTyler Hodgkins
01/18/2021, 5:55 PMtim
01/18/2021, 6:05 PMTyler Hodgkins
01/18/2021, 6:07 PMTyler Hodgkins
01/18/2021, 6:14 PMtddmonkey
01/19/2021, 8:23 AMtim
01/19/2021, 9:13 AMtim
01/19/2021, 2:44 PM