DTO's and Entities in Software Architecture (Android)

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 46

  • @bardyamomeni5756
    @bardyamomeni5756 3 роки тому +2

    👌🏻 loving it now, dto is way better

  • @aminlotfolahi3470
    @aminlotfolahi3470 3 роки тому +4

    but sometimes we have nested DTO's ,like a movieDtO with list of CastDto and each CastDto holds a characterDto (like the movie database TMDb) . then mapping becomes complicated

  • @felipefranco7444
    @felipefranco7444 3 роки тому

    engagement 10

  • @ringoaikocascade
    @ringoaikocascade 3 роки тому +2

    Come on people! Like the video! EVEN IF each person is watching this 5 or 10 times, likes would be much higher.

  • @therealmujtaba
    @therealmujtaba 3 роки тому +2

    You are the best Mitch.
    The name that you just butchered lol is pronounced as M'ah-dee.

  • @ChrisAthanas
    @ChrisAthanas 3 роки тому +2

    Endadgerment prolly spelled wrong

  • @venkatesh4307
    @venkatesh4307 3 роки тому +4

    I'm glad to here that you are willing to do another project with jetpack compose 👍👍

    • @sagecristian8144
      @sagecristian8144 3 роки тому

      you prolly dont care but if you're stoned like me during the covid times then you can watch all the latest movies and series on InstaFlixxer. I've been watching with my gf for the last couple of months xD

    • @kelvinleonidas3449
      @kelvinleonidas3449 3 роки тому

      @Sage Cristian yup, have been watching on instaflixxer for years myself :)

    • @lionelzaid3946
      @lionelzaid3946 3 роки тому

      @Sage Cristian yup, I've been watching on instaflixxer for since december myself :)

    • @venkatesh4307
      @venkatesh4307 3 роки тому +1

      I don't know why are you bringing these irrelevant stuff into comments 😠😠😠

  • @muhammadshayankhan3066
    @muhammadshayankhan3066 3 роки тому +3

    Great efforts, love the vids.

  • @RakeshPatel-zh7ds
    @RakeshPatel-zh7ds 3 роки тому +1

    Thanks for the Wikipedia plug! We should support these things.

  • @vengateshm2122
    @vengateshm2122 3 роки тому +1

    Please add unit testing video at the end of the series. So it will be a complete meal.

  • @junecnol79
    @junecnol79 3 роки тому +1

    RecipeDto for network(data transfer object)
    RecipeEntity for database
    Recipe for domain

    • @FutureAllenNL
      @FutureAllenNL 3 роки тому

      I have understood this structure but I still don't understand how it fits in with the use of repositories. Is a repository supposed to return a recipe? Otherwise wouldn't the application now be aware of the data source which is what the repository trying to decouple?

  • @nostranostra1176
    @nostranostra1176 3 роки тому +2

    Great vid 💪

  • @roshanfx369
    @roshanfx369 3 роки тому +1

    Nice

  • @lzn0830
    @lzn0830 3 роки тому +1

    Great vid! Do you think having DTO, Entity and etc will result in many unnecessary adapter/converter extensions between these similar data classes? Wdyt?
    Especially if we add a custom view which takes in another data class, it will require maybe another set of extension functions to convert between the Entities between the UI data classes.

    • @codingwithmitch
      @codingwithmitch  3 роки тому

      No everything comes from the use cases or repository. All the conversions are done by the time the model gets to the viewmodel

  • @aa-ed1ej
    @aa-ed1ej 3 роки тому

    There is also a cool shortcut SHIFT+F6, instead of right click -> refactor -> rename.

  • @freedomchuks
    @freedomchuks 2 роки тому

    Looking at this right now I saw that your DTO was mutable ,I think it best immutable for safety and data consistency

  • @Hacker-x
    @Hacker-x 3 роки тому +1

    Mitch.. How are you? 😎

  • @NguyenTran-uv6mu
    @NguyenTran-uv6mu 3 роки тому

    Hi mitch, i wanna ask you a question. Why don't we use auto mapper in this case but making a lot of efforts to map models manually like that?

    • @bitwisedevs469
      @bitwisedevs469 2 роки тому

      How to do this auto mapping? I think developers hate to do this stuff due to this manual mapping part which feels like redundant. I am using JSON to Kotlin extension for creating DTOs either using Gson or Moshi which really saves a lot of time but now with this manual mapping It becomes a burden.

  • @tanjimahmed213
    @tanjimahmed213 3 роки тому

    i'm in love with your tutorials

  • @danyelsh874
    @danyelsh874 2 роки тому

    thanks mitch...

  • @kamelmohammad1961
    @kamelmohammad1961 3 роки тому

    Thanks Mitch

  • @HienNguyen-xn7tr
    @HienNguyen-xn7tr 3 роки тому +1

    First

  • @terencejumba1939
    @terencejumba1939 3 роки тому

    nice

  • @tom-wz5le
    @tom-wz5le 3 роки тому

    Thanks

  • @ajaydeepak9739
    @ajaydeepak9739 3 роки тому

    Thanks for doing this

  • @eiphyuphwe9269
    @eiphyuphwe9269 3 роки тому

    Thank you so much.

  • @billyanderson2218
    @billyanderson2218 3 роки тому

    Very nice video

  • @armandoavila4615
    @armandoavila4615 3 роки тому +1

    Great video, thank you! That's why I commented about interfaces instead of data classes as domain models, you avoid the need of using Mappers because every Entity, Dto, Dao is going to be implementing the interface, so you just need to return de recipe interface on your methods instead of a specific implementation, but I think you're right, I don't know the scalability nor flexibility of my way, I'll switch to Mappers 😂, will you add UseCases to the project?

  • @vengateshm2122
    @vengateshm2122 3 роки тому

    Could you skip setting up retrofit in your future videos. You have shown that umpteen number of times.