3 ms·
I wouldn't choose the same words as the author. Perhaps I would say this instead: "... it’s just that the layering of the three is no longer pre-ordained by the
by dj-wonk 12y ago
I wouldn't choose the same words as the author. Perhaps I would say this instead: "... it’s just that the layering of the three is no longer pre-ordained by the framework."
Here's my take. Om's "application state" (only data) corresponds to the data part of the model ("M") in most MVC frameworks. In Om, just like ClojureScript or Clojure, you use functions, organized however you like, to work with data. This means that the "action-oriented" part of a traditional MVC model (e.g. methods in OO) are not necessarily grouped with the model data. Perhaps this is what the author is getting at: you can "layer" (organize) your functions into whatever namespaces you like.
In in my recent experience building Om apps, I've found that organization matters. As an Om app grows in size, it is natural (and important) to find ways of organizing that help. Om does not impose any particular organization scheme. I personally find ClojureScript namespaces to be very easy to work with; I simply split up a codebase as files become larger and harder to summarize.
- skillet-thief 12y ago(Author here) "... it’s just that the layering of the three is no longer pre-ordained by the framework." That is pretty close to what I think. And I don't have any great certainty about any of this. I'm not going to go around saying "MVC is dead!" What I observe with Om is that Om works well because it determines a flow of data, and the tools that we have to influence that flow of data, which could be identified with M, V or C, don't need to have any kind of formal separation, as opposed to a framework where you would have Model objects, Controller objects and View objects. It seems to me that Om and React have shifted the metaphor a little bit, and that the MVC metaphor isn't the best one to describe what is going on.