4 ms·
MVC and the N-Tier systems some similarities, but differ in their implementation. I came from a 3-Tier background where everything was simply divided, DB, Busin
by togasystems 16y ago
MVC and the N-Tier systems some similarities, but differ in their implementation. I came from a 3-Tier background where everything was simply divided, DB, Business, Output. Most of the time, the 3-Tier acts like MVC because you're accessing DB From the Business Layer then Showing it on the View.
Where they differ, and this is from my experience (feel free to correct me) is that in MVC, the Views have an attachment to the Controllers. Basically a view can only have one controller. Views can have multiple partial views, but ultimately belong to one controller. In the n-tier system, the view can be abstracted to the point where it does not care what is going to be shown.
Once you wrap your head around MVC, it is hard to go back, especially for Web products.
ROR also takes care of a lot of your db schema and logic, so you can focus on programming, not writing CRUD statements.