
上QQ阅读APP看书,第一时间看更新
Explaining the components of MVC
Back to the MVC pattern. Using said pattern means we get high cohesion and low coupling; this is due to code being split into different layers with different responsibilities. View logic belongs in views, controller logic in controllers, and model logic in models.