Yew: Redux is not MVC

Created on 16 Sep 2019  路  2Comments  路  Source: yewstack/yew

Hi, thanks for authoring a web framework in Rust, this sounds very exciting!

"Clean MVC approach inspired by Elm and Redux"

Elm and Redux are not MVC. Redux is a Flux implementation:
https://www.youtube.com/watch?v=nYkdrAPrdcw

To help alleviate wider confusion, please update the readme with these details.

flux-vs-mvc

Most helpful comment

I think the terminology associated with MVC is vaguely defined in such a way that you could construe most ui frameworks as using that pattern. As I understand it, the core tenant of Flux-like architectures is that they force data to flow in one direction, with immutable views being produced by your code and diffed against existing nodes instead of mutating some stateful view datastructure.

A bit of personal bias here, but if something says it uses an MVC (or any of its cousins), it doesn't help my understanding of their architecture. Whereas something using Flux tells me immediately to expect something like React/Redux or Elm. I think describing Yew as a Flux-like architecture is more descriptive than saying it uses MVC.

All 2 comments

Aren't they MVC though? The Model is the Storage, the View is, well, the renderer, and the Controller is the Dispatcher.

I think the terminology associated with MVC is vaguely defined in such a way that you could construe most ui frameworks as using that pattern. As I understand it, the core tenant of Flux-like architectures is that they force data to flow in one direction, with immutable views being produced by your code and diffed against existing nodes instead of mutating some stateful view datastructure.

A bit of personal bias here, but if something says it uses an MVC (or any of its cousins), it doesn't help my understanding of their architecture. Whereas something using Flux tells me immediately to expect something like React/Redux or Elm. I think describing Yew as a Flux-like architecture is more descriptive than saying it uses MVC.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zethra picture zethra  路  5Comments

sanpii picture sanpii  路  3Comments

alun picture alun  路  4Comments

ghost picture ghost  路  5Comments

FrontMage picture FrontMage  路  4Comments