Rails is not MVC
andrzejonsoftware.blogspot.com
Rails is not MVC
1–10 of 49 posts
Re: Rails is not MVC
#2Also, as far as I recall, the MVC pattern does not require communication between the models and the views, although it certainly allows it.
Looking at it from another perspective, MVC is a huge buzzword nowadays. It's simply not worth it to be conceptually correct for such a little gain.
Re: Rails is not MVC
#3He is correct, but I doubt there is much confusion. The term MVC is used mainly to illustrate the separation of concerns, which is, IMO, the number one task for any framework. Also, as far as I recall, the MVC pattern does not require communication between the models and the views, although it certainly allows it. Looking at it from another perspective, MVC is a huge buzzword nowadays. It's simply not worth it to be…
MVC - MVC is separated, Models can notify Views.
Model1 - mixing all code in one place, often seen in first PHP apps
Model2 - separation between Model and View, I think Struts started it. Rails made it prettier.
Yes, the gain from correcting the confusion may be small. However, the topic of JavaScript MVC is going to be huge soon, good to know the differences.
Re: Rails is not MVC
#4We lost that argument because no one cared - in fact, I think we probably caused a whole load of confusion by not using the same terminology as all of the other frameworks.
Re: Rails is not MVC
#5This is exactly why Django used to call itself an "MTV" framework (Models, Templates, Views) rather than an "MVC" framework - we realised that the classic MVC pattern didn't really apply to the Web. We lost that argument because no one cared - in fact, I think we probably caused a whole load of confusion by not using the same terminology as all of the other frameworks.
Re: Rails is not MVC
#6Re: Rails is not MVC
#7He is correct, but I doubt there is much confusion. The term MVC is used mainly to illustrate the separation of concerns, which is, IMO, the number one task for any framework. Also, as far as I recall, the MVC pattern does not require communication between the models and the views, although it certainly allows it. Looking at it from another perspective, MVC is a huge buzzword nowadays. It's simply not worth it to be…
Re: Rails is not MVC
#8This is exactly why Django used to call itself an "MTV" framework (Models, Templates, Views) rather than an "MVC" framework - we realised that the classic MVC pattern didn't really apply to the Web. We lost that argument because no one cared - in fact, I think we probably caused a whole load of confusion by not using the same terminology as all of the other frameworks.
Re: Rails is not MVC
#9This is quite different from (for example) the debates about the definition of REST. In that case there is a seminal paper and all kinds of subtle points leading to material benefits in web apps. What does Model2 have to teach us?