Say Goodbye to Repetitive Mapping Functions in Kotlin - Introducing The KConMapper KSP Plugin

  Рет қаралды 2,046

Yanneck Reiß

Yanneck Reiß

Күн бұрын

Пікірлер: 15
@swaminathbera6407
@swaminathbera6407 6 ай бұрын
Amazing teaching, doesn't expect that you know everything beforehand 😀
@vengateshm2122
@vengateshm2122 Жыл бұрын
Thank you for creating a library to avoid this repetitive task of writing mapper function. Great contribution from you. Kudos!
@willi11319
@willi11319 Жыл бұрын
Exactly what I was looking for!
@DeliOZzz
@DeliOZzz Жыл бұрын
This approach would work like a charm for the small projects or a single module projects. In other case you'll introduce dependencies in your domain module on the data layers, which is not so good, obviously.
@inertia_dagger
@inertia_dagger Жыл бұрын
this is great! I wanted to implement something like this myself, because I'm tired of writing mappers in "clean code" codebases
@alphacoder3822
@alphacoder3822 Жыл бұрын
Hey bro your videos are on point and great. Keep posting buddy. Numbers will come. Keep up the grind
@yanneckreiss
@yanneckreiss Жыл бұрын
Thank you for your kind words, that really motivates me 🙂
@atibenglobalsynergy
@atibenglobalsynergy Жыл бұрын
Thank you so much for this
@galaxiegalaxie5003
@galaxiegalaxie5003 8 ай бұрын
Nice work. Does this support kotlin multiplatform.Thank you.
@j2shoes288
@j2shoes288 Жыл бұрын
In the clean code arch. , you have one way dependencies. So, the data layer knows about the domain layer, but not vice versa. So, you should have the converter functions inside the data layer, not domain layer since, the domain layer doesn't know about Dto and Entity, but, the Dto and Entity know about the domain layer .
@SanjayVerma-mf4ch
@SanjayVerma-mf4ch Жыл бұрын
Actually, this is very interesting.
@xSugknight
@xSugknight Жыл бұрын
In your case, couldnt you simply define User as an interface, implement it once (lets say UserImpl) and UserDTO and UserEntity could just take a UserImpl via delegation? No extra library/annotations required and a guarantee that your implementations all follow the contract of the inferface
@CarstenHagemann1
@CarstenHagemann1 Жыл бұрын
We do have really simple mapping classes like that, but often there's at least one conversion. So I don't see the immediate benefit of this for me/my team
@j2shoes288
@j2shoes288 Жыл бұрын
No, this is a BAD ( useless ) library. It's OBVIOUS why. Imagine an entity class ( db ) without db annotation? Imagine a network model ( Dto ) without network ( gson, moshi, jackson etc ) annotations?
@code.visible3066
@code.visible3066 Жыл бұрын
You didn't understood the approach correctly,,,, Your DTO/Entity class will stands where It is,,,, this library gives you mapper functionality like we do it manually..... It. has nothing to do with DTO/Entity annotation....
Top 5 Mistakes That Make Your Kotlin Code a Mess
12:17
Philipp Lackner
Рет қаралды 23 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Mapping a Domain Model to a Network Entity on Android
16:04
CodingWithMitch
Рет қаралды 18 М.
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Philipp Lackner
Рет қаралды 99 М.
Python fundamemtals part 1 (coding)
51:51
AIgineer
Рет қаралды 53
Context Receivers Are Coming to Kotlin!
31:44
Kotlin by JetBrains
Рет қаралды 38 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 138 М.