Everything You NEED to Know About Client Architecture Patterns

Sdílet
Vložit
  • čas přidán 8. 01. 2024
  • Get a Free System Design PDF with 158 pages by subscribing to our weekly newsletter: bytebytego.ck.page/subscribe
    Animation tools: Adobe Illustrator and After Effects.
    Checkout our bestselling System Design Interview books:
    Volume 1: amzn.to/3Ou7gkd
    Volume 2: amzn.to/3HqGozy
    The digital version of System Design Interview books: bit.ly/3mlDSk9
    ABOUT US:
    Covering topics and trends in large-scale system design, from the authors of the best-selling System Design Interview series.
  • Věda a technologie

Komentáře • 158

  • @editin232
    @editin232 Před 5 měsíci +25

    Amazing video for people that already understand what you're talking about.

  • @ivanshuba562
    @ivanshuba562 Před 5 měsíci +16

    Excellent! In my experience, nobody ever was able to explain this subject so clearly. Additional thanks for the diagram at the beginning of the video. It explains everything perfectly by itself.

  • @ShreksSpliff
    @ShreksSpliff Před 4 měsíci +5

    Thank you for your time. I enjoy the videos and you're patience in them.

  • @hendrikmartina3552
    @hendrikmartina3552 Před 5 měsíci +10

    I was hours ago studying this topic. What a great timing!!! Thank you for covering this topic

  • @hrishabhg
    @hrishabhg Před 5 měsíci +114

    The video should have given examples like what django follows, what react follows etc. in reverse way so we can connect better. Otherwise there is too much overlap based on definition itself.

    • @MehranGhamaty
      @MehranGhamaty Před 5 měsíci +8

      Maybe I'll do that 🙂give me enough likes.

    • @tonpo27
      @tonpo27 Před 5 měsíci +1

      Then you do it.

    • @sapito169
      @sapito169 Před 5 měsíci +2

      its always mvc
      some times they use data viding very comon in frontend javascript framework

    • @MatthewRees7
      @MatthewRees7 Před 2 měsíci +1

      I think you're missing the point, these are just patterns. You can use any pattern with any of the frameworks, it's up to you to decide which is best for your scenario

  • @ilyakirbizhekov6324
    @ilyakirbizhekov6324 Před 5 měsíci

    greatest videos so far.. my kids 7 years also understood

  • @FolkOverplay
    @FolkOverplay Před 5 měsíci +19

    Nice collection of the different patterns. I appreciate short content but this was a little bit too short. It makes it very hard to understand the difference between the patterns. Especially MVC and MVP but it's hard to understand the difference between most of them.

  • @drewwilson8756
    @drewwilson8756 Před 5 měsíci +1

    Simply beautiful as always.

  • @VladimirMinkin
    @VladimirMinkin Před 5 měsíci +3

    There are different types of model - active (mvc) and passive (mvp), in these types view can't change data directly, but in mvvm view can, side effects also possible (adding c to equation).

  • @sudhanshuyadav2756
    @sudhanshuyadav2756 Před 4 měsíci +1

    The key takeaway from this video is Delegation. The Model(M) and View(V) will always be constant in any of the Client Architecture Patterns, the Controller(C) will start delegating the overload as our app becomes more and more complex.
    Keep this in mind, you can always start with MVC and end up in VIPER depending on your app's complexity and requirement phase.
    Architecture is always evolving in nature.

  • @thisissmz
    @thisissmz Před 5 měsíci +1

    Your explanation is very clear and short. This is what makes you stand out to me.

  • @mohammadalaaelghamry8010
    @mohammadalaaelghamry8010 Před 5 měsíci

    Great series, thank you.

  • @TimnewCNYN
    @TimnewCNYN Před 5 měsíci +21

    I think the video missed the most critical differences between these patterns: What is a View.
    Video mentioned in all these patterns, there is always the concept of View, and this is somehow treated as a common feature across these patterns.
    But to me, this is actually the no.1 differences between these patterns.
    For MVC, View is typically Model aware, and it typically extract data from model directly. So it typically requires a template engine to some kind of data binding mechanism to achieve that. Or it will lead to an even more bloated Controller in practise. In MVC, view is typically one off thing, Controller creates the view, update is typically done by recreate the view or rebound all the values again if the view isn't created by controller. MVC is typically used by http server, but also some UI frameworks, such as Cocoa/CocoaTouch (I would say Apple UI framework is more a MVC/MVP hybrid)
    MVP was created to reduced the Model View coupling, by introducing a dedicated Presenter in the middle, so the View can be completely decoupled from Model. And also Presenter can be used to not just creating the View but also used to update the View, when data changed, which allow a more granular control of the View. such as partial update. And View is kind of reused, and keep being updated. (Typically used by last gen UI framework, like Android or iOS, or WinForm is also kind of this type) MVP allow View to be provided by UI framework, and completely focused on rendering, and is business logic free.
    MVVM was introduced due to App is moving a bit more to the data driven way again. Like MVC, View in MVVM is again model aware and is capable for data binding. But data binding here is tends to be logic-less and lightweight, so it doesn't have or tend to not have the data projection capability. So the data projection logic to convert the raw data into presenting ready data is then hosted in ViewModel, and View is bound to ViewModel instead of Model.
    MVVM-C is just a variation of MVVM, a hybrid of MVVM to MVC, Coordinator is like the old Controller, oversees the lifecycle, navigation or other admin responsibilities.
    VIPER, I'm not sure this is a widely used term, but again it is just a MVVM variation, it has Router, pretty much a controller but more focused on navigation and lifecycle management. Presenter is similar to ViewModel is the View has data binding capability or become MVP presenter when View doesn't have data binding capability. Interactor is an action model that extract the business logic from the model (to avoid ActiveModel pattern, which is considered as anti-pattern by a certain group of people), and interactor allow to to involves more external resources rather than just model. Interactor has a more passive version which is typically called UseCase.
    So above all, per me, the major difference between MVC, MVP, MVVM is the caused by responsibility of View.
    MVC: View creation is relatively cheap, creating custom view is relatively cheap, so developer bind data to view by creating data aware custom views. user interaction on view is typically simple. Typically HTTP server.
    MVP: View is created and updated, and View is provided by UI framework, and user creating custom view is expensive, so developer write Presenter to bind data to view, and update the view when data changed.
    MVVM: Move to the data driven way, Update is done by UI Framework by tree diff, normally the View created here isn't the real render object. View is typically a layer of pseudo element. Mostly mordern UI framework, such as React, SwifUI, Jetpack Compose, Flutter. But also could be some old fashion framework, such as .net WPF....

    • @mme725
      @mme725 Před 5 měsíci +1

      Nothing to add, just wanted to say thanks for the clarification 👏

  • @johndoan3526
    @johndoan3526 Před 4 měsíci

    The BEST explanation.

  • @learnandexplorewithsab
    @learnandexplorewithsab Před 5 měsíci +1

    Always eager for your content.

  • @joshy56
    @joshy56 Před 5 měsíci

    Nice video, thanks for it.

  • @user-so4bl6ss7k
    @user-so4bl6ss7k Před 4 měsíci +2

    it's very clear, although i still don't understand it, thank you.

  • @SDFC
    @SDFC Před 5 měsíci +40

    It'd be nice to also cover the Observer pattern (which is the source of those "update" and "notify" words).
    In fact, the observer pattern was first used for implementing Smalltalk's MVC based user interface library.
    Or, also discuss one-way data binding (ReactJS) vs. two-way data binding (Angular) 🙂
    You could even cover client-side frameworks (e.g. ReactJS, Angular) vs server-side frameworks (e.g. JSP, Laravel, Rails, NextJS) vs what Svelte is doing. Just some topic ideas for other shorts you could make 😁

    • @KopoLPedov
      @KopoLPedov Před 5 měsíci +3

      You're mixing different layers of abstraction.

    • @SDFC
      @SDFC Před 5 měsíci +4

      I'm actually not. He commented on two-way data binding at 3:10, but glossed over it although it's a key distinction between Angular and ReactJS that you'd be acutely aware of if you've used them

    • @PhilipAlexanderHassialis
      @PhilipAlexanderHassialis Před 5 měsíci

      @@SDFC Yes but frontend's patterns (MVC/MVVM/etc) are bound within the confines of the browser activity. The MVC pattern holistically can be approached either on the server layer, or the front end layer or even the application as a whole (remember them "n-tier applications" of yore?). That being said, certain patterns cannot be - or shouldn't be used on the pure "backend" side, esp. if your backend side is a disparate different team/server-cluster. But as was already stated in the video, it's a matter of expertise and complexity. E.g. the project we are working now on my team has around, oh, 200 microservices, 2 different main client approaches (web/mobile), not to mention the internal infrastructural anchor points, all built across a consortium of some companies/dev-teams. A pure "MVP" or "MVVM" approach cannot be "fathomed" because simply.... it can't. The scope is too big.

    • @gooseob
      @gooseob Před 5 měsíci

      ​@@SDFC You have probably seen attributes like `value` and `setValue` passed to the component in React. It is the equivalent of two-way binding

    • @SDFC
      @SDFC Před 5 měsíci +5

      @@gooseob No, that's actually explicitly demonstrating one-way data-binding.
      In two-way data-binding, you don't need "setValue" because the attribute named "value" is directly accessible for bi-directional reads -- _and writes_
      Two-way data-binding behaves similarly to an instance variable marked as "public" in java.
      One-way data-binding is similar to adding a "setter" to wrap write access to an instance variable, and read access through ReactJS "props" is a bit reminiscent of constructor-based dependency injection for setting a private variable.
      This is actually _advantageous_ over two-way data binding because it's more conducive to the functional paradigm, via a clear point for extracting out business logic for input validation (which is similarly a common thing done in those "setter" functions in java) or translating the input into changes in other surrounding components.
      Here's a few links that may help with this, but it's explicitly stated that one-way data-binding is being used in the official ReactJS documentation and most things you'd find through a simple google search:
      - stackoverflow.com/questions/42217579/data-binding-in-react
      - softwareengineering.stackexchange.com/questions/419340/react-one-way-data-binding-vs-angular-two-way-data-binding
      - react.dev/learn/thinking-in-react
      The ReactJS creators like Dan Abramov are functional paradigm fanatics, btw. There's lots of great conference presentations and blog posts by them on the philosophy, rationale, and inspiration for a lot of the design decisions that they made, and I'd highly recommend checking it out. They're rather brilliant people, and their writings about what inspired their choices are a great means of finding content by even more brilliant people.

  • @essom1a
    @essom1a Před 5 měsíci +8

    Love this video. I always confuse MVC and MVP. The approach is so similar...

    • @rfmiotto
      @rfmiotto Před 5 měsíci +3

      Yep. Even with the video these concepts are still confusing for being too similar to each other. But, the takeaway is that in MVC, the controller is in charge, while in MVP the view is in charge.

  • @RicoGrof
    @RicoGrof Před 5 měsíci +3

    I think core of all is just Input Process Output. when pattern getting bigger we separate Process again into other Input Process Output. until we reach S (Single Responsibility) from SOLID.

  • @leroyjenkins6347
    @leroyjenkins6347 Před 5 měsíci

    I would love to go over more reactive app architecture with technologies for jetpack compose or swiftui

  • @nishaantdixit9857
    @nishaantdixit9857 Před 5 měsíci +13

    So basically it's invented language used by Non Coders to say the same thing i.e. Break down logic into presentation, BLOC and Repo?

    • @SDFC
      @SDFC Před 5 měsíci +4

      Well, the "two-way data binding" thing from 3:10 is a legitimate difference between ReactJS and Angular
      However, I have no idea what extra stuff is actually being handled by MVVM-C at 3:55 -- "react-router" is something that comes to mind, but I definitely don't recall excessive amounts of messy logic or state getting wrapped in handling that kind of behavior in any of the work that I've done 🤷‍♂

  • @user-lt2xp6xe5p
    @user-lt2xp6xe5p Před 4 měsíci

    Great video!
    Would be cool if there was the MVI pattern

  • @rammehar5531
    @rammehar5531 Před 5 měsíci +1

    Hi Sir, please also create video on ddd and clean architecture

  • @funkykong9001
    @funkykong9001 Před 5 měsíci +7

    I don't understand the difference between the MVC and the MVP. They seem identical...?

    • @L.K.82
      @L.K.82 Před 4 měsíci

      That’s because they basically are the same. The downside of mvc (which according to the video is a bloated controller) is exactly the same for the second pattern. It just gets concealed by using a lot of cloudy words.

    • @teeesen
      @teeesen Před 4 měsíci

      The difference is that in MVC, the View gets data from the model whereas in MVP the view gets data from the presenter. This allows the View to be even simpler and free of logic. The classic example is where the model is a temperature and you want high temperatures to be displayed in one way and low temperatures to be displayed in another. The model just delivers a number to the presenter, and the presenter makes the determination of whether the number is high or not, so it delivers the number along with a boolean to the view and the view uses the boolean to decide how to use the number. Suppose there are two views, one displays the number with say a red or blue background, the other either makes a sound or doesn’t. With MVC, both views would have to make the same decision about whether the temperature is high or the logic would have to be put in the model, even though it arguably not really “business logic”, but rather presentation logic. A more realistic example might be an text editor. Presentation state such as the current cursor position or selection will complicate the view, but probably doesn’t belong in the model. You could put it in the controller, but now your view needs to get information from two places.

  • @mpdev
    @mpdev Před 5 měsíci

    How do you know that I've just started a project that requires this knowledge? Great timing!

  • @mitotv6376
    @mitotv6376 Před měsícem

    Very nice

  • @artxiom
    @artxiom Před měsícem

    I totally forgot that these all exist 😄 I just use nowdays everywhere Redux or something similar - because of how simple, easy to reason about and scalable it is.

  • @raj_kundalia
    @raj_kundalia Před 5 měsíci

    thanks!

  • @nyaa2054
    @nyaa2054 Před 5 měsíci

    very helpfull

  • @MrDeeptiprasadnayak
    @MrDeeptiprasadnayak Před 5 měsíci +2

    Can u share Which tool is used to make the data flow?

  • @troooooper100
    @troooooper100 Před 5 měsíci +181

    Summary: they are all the same... just different words... code need to update view, store data, and act on data. how you spread it or what you call doesn't matter.. No matter how complex your app is there are still 3 fundamental parts.

    • @brukts3361
      @brukts3361 Před 5 měsíci +75

      I work in FAANG and I still have no clue what the differences are.
      For some reason, explanations never seem to provide code examples. I have a feeling the borders are blurry and it’s just not a very useful distinction

    • @troooooper100
      @troooooper100 Před 5 měsíci

      @@brukts3361 I worked at faang as a FRONTEND engineer as well and these things are created to as marketing gimmicks by new frameworks. It's also part self promotion. Newbie eats it up, CZcamsrs have more content and just a stupid cycle

    • @amitpatkar
      @amitpatkar Před 5 měsíci

      @@brukts3361😊😊😊

    • @skyhappy
      @skyhappy Před 5 měsíci

      @@brukts3361 I was thinking the same thing,.without a working application's code, these are all just meaningless diagrams.

    • @tomross4599
      @tomross4599 Před 5 měsíci +10

      I agree that it all depends on the implementation. That starts with the basic environment: Are we talking ReactWeb, iOS, Android? That choice alone might make one of the patterns built-in and some other pattern ridiculously hard to implement. The platform is the pattern. You’re just living in it.

  • @Deadgray
    @Deadgray Před 5 měsíci

    Looks great in the video and I understand it, but in practice I'm confused what kind of pattern I actually use when I have app with for example separate angular frontend, Java backend with REST API, with "clean" controllers used just for get/send data, services underneath doing "hard work", repositories and entities with JPA and db. Can someone tell me what pattern is that?

  • @Elias07070
    @Elias07070 Před 5 měsíci

    You are a boss

  • @codex8797
    @codex8797 Před 4 měsíci +3

    Does anyone know what he uses for the animations?

  • @yordanov5.0
    @yordanov5.0 Před 4 měsíci

    Please make a video "Stack vs Heap"

  • @ivanivanovich2088
    @ivanivanovich2088 Před 5 měsíci

    Where can I find the image that is displayed in the preview for your video?

  • @zivunknown
    @zivunknown Před 2 měsíci

    With the exception of VIPER, the others are all basically the same 3 logical components, even if they are split differently or some part of them is moved here or there...

  • @nickplays2022
    @nickplays2022 Před 4 měsíci

    I’ve seen most of these diagrams but an example with multiple screens and a list of items would be helpful

  • @benjaminlehmann
    @benjaminlehmann Před 5 měsíci

    That was really great. Such a clear overview while also giving the right amount of detail. Great job!

  • @user-jr3gs2be6r
    @user-jr3gs2be6r Před 4 měsíci

    I am a iOS engineer now, thanks for your explanation about those pattern

  • @tomross4599
    @tomross4599 Před 5 měsíci +3

    You argued that it’s about app size. I think it’s better to think of team size. The more complex the pattern, the better to work concurrently on different parts of the app. And vice versa: If you spend your lifetime working alone or in a team of two on an app, none of the patterns will give you a boost in productivity or quality.

    • @metalmikecode
      @metalmikecode Před 5 měsíci

      I would argue with yes and no. Using design patterns will enable your application to be manageable and scalable. If the team is not big enough, the project development may go slower but can have the potential to grow faster when needed and you can plug in more developers.

  • @maudjito
    @maudjito Před 5 měsíci +3

    How is MVP different from MVC? I got to this part of the video and don't feel like watching the rest when I already can't understand it clearly from the examples showed

    • @bluesquare23
      @bluesquare23 Před 5 měsíci +4

      Yeah this video is trying to point out some extremely subtle differences that are sorta not real. Tbh it's all MVC. You can think of your model as a table in a database. Your view's going to be an HTML page. And your controller is going to be some back end logic PHP or Nodejs or Python or whatever you're using. Newer web frameworks (front and backend) introduce slight differences. Like react has the virtual dom so to call it purely MVC is sorta not right cause the view isn't stateless anymore, it's reactive. So it isn't waiting there for an update from the controller about some part of the model like it would be for a plain old stateless http exchange.

  • @RicardoSilva-hk2er
    @RicardoSilva-hk2er Před 5 měsíci +8

    This topic still confuses me a bit. I mean I kinda get it but without code, I don't actually think I understand the difference of MVC and MVP. Are you just transfering responsiblity of the frontend to the backend? Wouldn't that increase the problem of bloated controller? Also, is there any frameworks using MVVM or MVVM-C? How do we achieve this bidirectional data binding? VIPER, funny enough is very intuitive. I feel dumb after this question...

    • @sapito169
      @sapito169 Před 5 měsíci

      mvp always presenter is in the midle
      mvc dont use presenter in the midle
      XD
      martin fowler have code examples
      mvc is the same thing that all framework use all the times
      mvp example
      ProductManagmentPresent (presenter)
      JFrameProductManagment (view)
      ProductService(model)
      ProductManagmentPresent use JFrameProductManagment (view) and
      ProductService(model) and use interfaces
      and use events to cordinate

    • @rogertunnell5764
      @rogertunnell5764 Před 5 měsíci +1

      @@sapito169 Using the word Service in a model class is wild.

    • @rogertunnell5764
      @rogertunnell5764 Před 5 měsíci +3

      They're all garbage patterns that over simplify things into coinable and marketable terms so people can make $ writing stupid books, ahem videos, about them. Why you would ever want your backend coupled to your frontend is beyond me. BE - here's data, FE - cool you gave me data, let me transform that into what my users want. FE - I have a new use case that would require me to hit multiple endpoints and create unnecessary load on the backend, BE - cool, I'll create a new endpoint (or GraphQL resolver) that meets your use case.
      The problem w/ these "patterns" is that they try to encompass both BE & FE. VIPER makes great sense for FE, but still oversimplifies. Yes, you'll interact w/ an entity, but first you'll receive a DTO that needs to be transformed into an entity. An entity is a business object. Idk how that's ever conflated w/ a DTO. The JSON representation of an object can be vastly different than a business object. Business objects e.g. entities have behavior! Make VIPER -> VIPERD and then it's pretty accurate for FE only.
      Then you have BE which is DTOs, Use cases, Models, Business logic, Actors, Serde, Services, Entities and Security. You can read all about it in my new book, "DUMBASSES: The Next Generation of Software Engineering"

    • @aminemaghous
      @aminemaghous Před 4 měsíci

      MVVM was used by Oracle JET (OJET) you can find docs and tutorial about it.

  • @gus473
    @gus473 Před 5 měsíci +1

    Great episode! Byte byte go is on its way to 💯 K subscribers, and so far bbg's YT "Shorts" have been excellent too! 😎✌️

  • @caseyfischer7015
    @caseyfischer7015 Před 5 měsíci +2

    clear as mud.

  • @jitendersingh3684
    @jitendersingh3684 Před 3 měsíci +1

    Hi, Any-one could you please tell me what is "Ifg" in the `typical learning curve` (At the end of the video)

  • @yinglaoliu3838
    @yinglaoliu3838 Před 5 měsíci +2

    React Native with GraphQL tends to follow a component-based architecture with a focus on the UI and state management being closely integrated, rather than fitting into traditional architectures like MVC, MVP, MVVM, or VIPER.

  • @krystianh4732
    @krystianh4732 Před 7 dny

    Oh, you missed MVI pattern. Please add it to summary. Thanks for your videos

  • @t.mollov566
    @t.mollov566 Před 5 měsíci

    All of them are MVC for me with some kind of helpers 😀

  • @RaiSingh
    @RaiSingh Před 3 měsíci

    Sir is clean architecture is an example of VIPER ?

  • @golmatol6537
    @golmatol6537 Před 5 měsíci

    Wish you had given an example for each pattern.

  • @mmmm-wm8ci
    @mmmm-wm8ci Před měsícem

    Both In MVC and MVP there is possibility of bloated controller/presenter in MVC also UI logic is isolated in view, then what's the real diff BTW MVP and MVC

  • @djSeakDigital
    @djSeakDigital Před 4 měsíci

    Which one is NextJs

  • @Adrian_Galilea
    @Adrian_Galilea Před měsícem

    I never grasp these concepts beyond surface. I never know when to implement which and just rely on iteration. For instance, recently React implemented server components, and you can literally execute backend logic inside the same code that has no only the client code but also the view/style. So if I were to follow any approach from theory(from my understanding of it) I would create way worse code than just simply seeing which patterns feel more ergonomic and maintainable.

  • @zixuanzhao6043
    @zixuanzhao6043 Před měsícem

    so what's the difference between MVC and MVP?

  • @evstafyevandrew2198
    @evstafyevandrew2198 Před 5 měsíci

    Парень, а ты какой программой делаешь такую крутую анимацию?

  • @justingiovanetti
    @justingiovanetti Před 5 měsíci

    How are these animations made?

  • @emmanuelvalverderamos
    @emmanuelvalverderamos Před 4 měsíci

    The MVC pattern, was not born as it is today, that's important to remember.

  • @yassinebouchoucha
    @yassinebouchoucha Před 5 měsíci

    the most wanted question is: Next js fall in which type of Architecture Patterns ?!

  • @MarcelinoDeseo
    @MarcelinoDeseo Před 5 měsíci +4

    I wonder if there's an architecture pattern that allows us to start simple and then grow bigger when needed.

    • @KuopassaTv
      @KuopassaTv Před 5 měsíci +4

      Yes, it's called rewrite

    • @MarcelinoDeseo
      @MarcelinoDeseo Před 5 měsíci +1

      @@KuopassaTv that's the last thing i want to hear 😅, though I guess it's unavoidable 😞

    • @Geza_Molnar_
      @Geza_Molnar_ Před 5 měsíci

      @@MarcelinoDeseo What's the reason you don't want to hear it? Isn't it better to use a very simple approach for a proof of concept and a prototype (low number of code lines, relatively, covering only parts of the happy paths and only the main uses-cases), still a simple approach for a MVP (minimum viable product 🙂), and another when the app / system is scaled up by more features and/or user number?

    • @MarcelinoDeseo
      @MarcelinoDeseo Před 5 měsíci

      ​@@Geza_Molnar_ I'm aware that refactoring the code is the way to go as the codebase grows, though it would be a slow and meticulous process. I was hoping for an architecture that you can use few concepts and you can just inject more with minimal effort more as the code base becomes larger.

    • @Geza_Molnar_
      @Geza_Molnar_ Před 5 měsíci +1

      @@MarcelinoDeseo I hope, too - However, that sounds like hoping to catch the Holly Grail :-)
      If there is capacity for that, then the SOLID and other principles are a good thing to follow. The evangelists who spread the word say that those help to make refactoring an act of enjoyment and not a painful struggle. However, if there is no time for that, or at that moment the circumstances don't approve such an investment in the easiness of future development ... Then we'll burn in the hell of technical (and other) debts. At least, we are aware of that :-)
      Minimal effort - for the current round of development, or for the whole long software development lifecycle, or for the sofware lifecycle? Not only managers choose the first. And not only because they don't understand software development or the expensive consequences. In an Ideal Life I'd choose the last.

  • @qazyhn94
    @qazyhn94 Před 5 měsíci

    React way with useState, is this MVVM?

  • @botondvasvari5758
    @botondvasvari5758 Před 5 měsíci +1

    which one is react ?

    • @arjundureja
      @arjundureja Před 4 měsíci

      React doesn't strictly follow any architectural pattern, it's up to you to decide if you wanna use one. It is somewhat similar to MVVM though since data is binded to component state

  • @bardeebooboo
    @bardeebooboo Před 5 měsíci +2

    Why Android dev choose MVVM/MVI not VIPER?

    • @kucingoyen1
      @kucingoyen1 Před 4 měsíci +1

      I think it's more easier for most developer

  • @natenatters
    @natenatters Před 5 měsíci

    In all of these, which one persists the image in S3?

    • @cusemoneyman
      @cusemoneyman Před 5 měsíci

      You're probably joking, but I'm legit curious. I would call S3 the "model" in this case, since it's the final storage medium. But I also can't tell the difference between most of these patterns, since the more complex ones seem like implementation details of slightly different MVC uses...

    • @awekeningbro1207
      @awekeningbro1207 Před 5 měsíci

      None of them. It's a new one called MVVMS3

    • @arjundureja
      @arjundureja Před 4 měsíci

      @@cusemoneyman Everything is MVC at the end of the day

  • @sapito169
    @sapito169 Před 5 měsíci

    i never heard off viper

  • @thepcool
    @thepcool Před 25 dny

    In the VIPER title, you misspelled Entity as Entily

  • @saidbakr
    @saidbakr Před 5 měsíci

    Arrows in the diagrams are not clear, the order of what is happening is not clear except in MVC

  • @labanmogire8973
    @labanmogire8973 Před 4 měsíci

    Did anyone grasp anything apart from MVC?

  • @anonymousbug3485
    @anonymousbug3485 Před 5 měsíci

    Alex Gem

  • @DL-iy3lf
    @DL-iy3lf Před 4 měsíci

    lfg! nice way to end the video.

  • @Taddy_Mason
    @Taddy_Mason Před 5 měsíci +1

    Everyone has an architecture in mind until they get hit with the requirements.

  • @danielwilkowski5899
    @danielwilkowski5899 Před 5 měsíci

    That focuses too much on technology, and not enough on the actual architecture. Words like "view updates automatically" is just another phrasing of "the framework of my chosing updates my scaffoled application, so it looks like automation".
    If you want to learn more about what MVC was supposed to mean originally, checkout Robert Martins video: "Clean Architecture".

  • @flashflexpro
    @flashflexpro Před 3 měsíci

    Anything more than MVVM is just to gild the lily.

  • @sunofabeach9424
    @sunofabeach9424 Před 5 měsíci

    UI developers are crazy

  • @jixiangcn
    @jixiangcn Před 5 měsíci

    冒昧问一下,你认识周崇廉么?

  • @awekeningbro1207
    @awekeningbro1207 Před 5 měsíci +1

    This seems more focused towards folder structure than code architecture, because they are the same just broken down into finer parts

  • @Adks007
    @Adks007 Před 2 měsíci

    Your biggest strengh is to cover a complicated topic within 5 to 6 mins.

  • @c00p3rok
    @c00p3rok Před 5 měsíci +3

    unfortunately they are very abstract and without code example have absolutely no use for engineers

    • @Geza_Molnar_
      @Geza_Molnar_ Před 5 měsíci

      (Let me provoke 🙂) Engineers are able to draw the general abstraction out of specific implementations / examples, and are also able to create implementations / examples from an abstraction. Coders and Programmers not necessarily. Developers do, imo. And Architects, too, of course. Although, I haven't yet found the 'standard' where the capabilities of these roles / professions are described and compared. If anyone knows a list or table that contains something similar, please, link it here 🙂

  • @keepsilence6843
    @keepsilence6843 Před 4 měsíci

    What is the difference between this video and Top 5 Most Used Architecture Patterns (czcams.com/video/f6zXyq4VPP8/video.html)? They both talk about the patterns of software creation.

  • @zimzam9166
    @zimzam9166 Před 5 měsíci +1

    These 'patterns' do nothing except legitimise overspending of manpower on bloated projects that just don't need it. If you are a project lead considering implementing any of these, then consider that your team size is too big and you need to trim the fat

  • @alexon2010
    @alexon2010 Před 5 měsíci

    Para mim não faz o menor sentido este monte de padrão, só gera mais confusão, deveria ter um modelo único e evolutivo, toda aplicação seja para que motivo for tende a ficar complexa.....

  • @JW-YT
    @JW-YT Před 5 měsíci

    I've used MVC, never heard of the others and they seem pointlessly complex. So I'll not even bother.

    • @khoihoang8888
      @khoihoang8888 Před 5 měsíci

      Not really! Those other pattern such as MVVM or MVVM-C is where you see on modern framework on front-end application. If you know React, Vue whatever, they are already utilizing these architecture, and that is where you learn how those framework works from day 1

    • @JW-YT
      @JW-YT Před 5 měsíci

      @@khoihoang8888 react is pointlessly complex lol. Its not needed 90% of the time.

  • @couragic
    @couragic Před 5 měsíci +1

    The framework/library you use defines the architecture of your app these days. It is good to know these patterns but no need to implement them on your own.

  • @ChristopherPuzey
    @ChristopherPuzey Před 5 měsíci

    Wat?

  • @newsgo1876
    @newsgo1876 Před 4 měsíci

    The so-called design pattern is not a creature by human but the way God make the world.

  • @bob-xm7ny
    @bob-xm7ny Před 4 měsíci

    Lets start with when the earth cooled. Nah bro, lets talk about current technology.

  • @sudosai
    @sudosai Před 5 měsíci

    But what's the difference?.😢

  • @way4708
    @way4708 Před 5 měsíci

    1st 😁

  • @eduardoholzmann853
    @eduardoholzmann853 Před 4 měsíci

    to much logic binding, prefer a more clean architecture aproach indiferent from the languaje, this only works on android.

  • @michaziobro5301
    @michaziobro5301 Před 5 měsíci +2

    I would make choice differently
    MVC - rather don’t use
    MVP - delegation or closure based
    MVVM - data binding approach rxswift, combine, @published
    VIPER same as MVVM but you need local cache and persistent layer or have complex business logic, more complex than just network services to call web api endpoints
    Generally use MVVM, name it MVVM and if needed add interactor layer and core data.
    But there is also redux style TCA or ELM like action reducers architectures. They i rather cumbersome and I recommand to not use them

  • @LamNguyen-zc8xs
    @LamNguyen-zc8xs Před 5 měsíci

    VIPER is the 💩

  • @count7ero
    @count7ero Před 5 měsíci +1

    i cannot for the life on me perceive a difference between presenter and controller. mvvm, viper and clean architecture make the stupidest, slowest, jankiest most unstable applications ever. i think they were invented only to sell more development hours

  • @christophem6373
    @christophem6373 Před 5 měsíci +1

    It seems like you don't understand what you speak about.

  • @fallout__boy1130
    @fallout__boy1130 Před 4 měsíci

    Without code example it is not useful at all, it looks like some pseudo consultant IT bs slide deck

  • @kocokan
    @kocokan Před 5 měsíci

    They're getting irrelevant

  • @jidechiukor3284
    @jidechiukor3284 Před 5 měsíci

    VIPER technically BLOC. Viper should be the goto irrespective of the app size