3 ms·
It's not smug to observe that someone ported MVC to JavaScript. It's a lot of work to build.
by hgsgm 4y ago
It's not smug to observe that someone ported MVC to JavaScript. It's a lot of work to build.
- jonkoops 4y agoExcept it's not MVC.
- pier25 4y agoReact would be the V in MVC, no? I mean, even Vue takes its name from that (pronounced "view").
- dan-robertson 4y agoThere were a lot of “MVC in JavaScript” frameworks before react. I don’t think that’s really a useful description of react or of the work or idea involved.
- phailhaus 4y agoBackbone and Marionette were MVC for the web, and they have basically died out. React is a child of the Flux architecture philosophy, also developed by Facebook. [1] [1] http://fluxxor.com/what-is-flux.html http://fluxxor.com/what-is-flux.html EDIT: I lied, React came first. Still, they have a lot of similarities, being developed by the same company.
- wruza 4y agoMVC examples in this article do not represent MVC in Cocoa. E.g. last time I checked cocoa tables were bound to array controllers, which controlled filtering, available actions etc. Not to bare models. Older-style cocoa mvc rendering was also based on the view<->controller connection, which may act as a “store” or do something more sophisticated, depending on what you write in delegate methods. These comparison graphs always involve some “head & shoulders” vs “grey regular shampoo” style narrative.
- mpweiher 4y agoWell yes: Apple MVC also isn't really MVC. See: https://blog.metaobject.com/2015/04/model-widget-controller-mwc-aka-apple.html https://blog.metaobject.com/2015/04/model-widget-controller-... However, sufficiently MVC for the purposes of the post.
- acemarke 4y ago> React is a child of the Flux architecture philosophy FWIW, this isn't actually the case. React was first announced in 2013: - https://en.wikipedia.org/wiki/React_(JavaScript_library) https://en.wikipedia.org/wiki/React_(JavaScript_library) The "Flux Architecture" was first announced a year later, in 2014: - https://youtu.be/nYkdrAPrdcw https://youtu.be/nYkdrAPrdcw React's original influences were things like Facebook's internal PHP-based UI definition layers: https://reactjs.org/blog/2016/09/28/our-first-50000-stars.html https://reactjs.org/blog/2016/09/28/our-first-50000-stars.ht...
- jnash 4y agoThe React architecture is very different from MVC.