Live data from Hacker News

MVC Isn’t MVC

collindonnell.com

1–10 of 165 posts

Re: MVC Isn’t MVC

#3

If you squint a bit, the "original" MVC looks eerily similar to the one-way data flow pattern popularized by flux/redux. https://en.wikipedia.org/wiki/React_(software)#Unidirectiona... edit: better link

Indeed, what the various “reactive” frameworks do is in the end the idea behind MVC, although as they are web-based the implementation is ridiculously complex and the abstraction is very leaky.

Re: MVC Isn’t MVC

#4

If you squint a bit, the "original" MVC looks eerily similar to the one-way data flow pattern popularized by flux/redux. https://en.wikipedia.org/wiki/React_(software)#Unidirectiona... edit: better link

the purest mvc demo is pong.

Re: MVC Isn’t MVC

#6

If you squint a bit, the "original" MVC looks eerily similar to the one-way data flow pattern popularized by flux/redux. https://en.wikipedia.org/wiki/React_(software)#Unidirectiona... edit: better link

In many ways it's really just MVC (at least the fat model / skinny controller style) except they renamed the elements:

- Dispatcher = Controller

- Store = Model

- View = View

And the actions are the messages sent from the user to the controller.

Re: MVC Isn’t MVC

#9
Not sure why author got the impression apple’s models had to be « dumb data containers ».

Actually, having dumb models is the surest way to completely screw up your controllers design, since you’re now left with no other places to write your business logic in. This leads to either weird trees of controller inheriting each other for the sake of reusing some data processing piece, or singletons everywhere which makes the code super hard to reason upon, not to mention harder to unit test.

My take on the model layer is : write everything that’s not strictly specific to your UI there.

Re: MVC Isn’t MVC

#10

If you squint a bit, the "original" MVC looks eerily similar to the one-way data flow pattern popularized by flux/redux. https://en.wikipedia.org/wiki/React_(software)#Unidirectiona... edit: better link

It may be a matter of explaining it differently. Maybe just the names! But I never "got" MVC, and I got the one way data flow pattern straight away. Maybe I was just old enough to get the point that time around.
Post reply on HN