Of Controllers, Presenters & ViewModels in Clean Architecture

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

КОМЕНТАРІ • 8

  • @richardcarruthers1990
    @richardcarruthers1990 9 місяців тому

    This is clear and a lot of fun. Thank you!

  • @Brendan2Alexander
    @Brendan2Alexander Рік тому

    Good video. Wish I'd learned this earlier in my career. There is a lot of busy work to create an adapter later but is so worth it. Now I can massage and evolve the inner layers and the adapters will show errors when there is mismatch which can easily be fixed.

  • @cheeseburger1884
    @cheeseburger1884 Рік тому

    Very nice. Thank you!

  • @xemnasnoheart4629
    @xemnasnoheart4629 Рік тому

    First off, I want to say that your videos are really great, so keep it up! Second, I have a question: Suppose you want to retrieve all planned WorkItems for the next 7 days. What kind of object should the controller return in that case? Is that an IEnumerable, or a VM like WorkItemCollectionVM that contains a collection of WorkItemVM objects?

    • @AboutCleanCode
      @AboutCleanCode  Рік тому +1

      @xemnasnoheart4629 First: thx a lot for your feedback!
      Regarding your question: both options would be fine from my perspective. I would suggest to keep it simple, so unless there are any other properties you need to send to your frontend like the time period for which the work items are returned, I would simply return IEnumerable

  • @carlosmollapaza9267
    @carlosmollapaza9267 Рік тому

    Please can you work in java and spring, please.

    • @AboutCleanCode
      @AboutCleanCode  Рік тому

      I think the principles of Clean Architecture are independent from programming languages and frameworks and even I usually use C# and Asp.Net Core these principles should be portable to other frameworks as well, shouldn't they?