MVC Fundamentals


A .  3 Loosely Coupled main components of An MVC Application

  • Input Logic ---------- belongs to ---------- CONTROLLER.
  • UI Logic -------------- belongs to ---------- VEIW.
  • Business Logic------- belongs to ---------- MODEL.
     
B.     Testing individual loosely Coupled components are Easier.

C.      MVC does not use VEIW-STATE or SERVER-BASED forms, thus making developers to have full control over the     Application Behavior.

D.     MVC is good for applications which need high Degree of control over the Application Behavior.

E.      ASP.NET uses “Page Controller” pattern that adds functionality to individual pages.

F.       Managing State Information is easier for ASP.NET.

G.     ASP.NET enables rapid application development.

H.     The components of ASP.NET (like the page class, controls, etc. ) are tightly integrated and usually requires less code than MVC.

I.        Components of MVC can be easily replaced / customized. You can plug-in your own view Engine, URL-Routing Policy, action-method parameter serialization and other components.

J.        MVC supports DI (Dependency-Injection) and Inversion-of-control (IOC).
  • DI ----- Enables to inject objects into a class, instead of relying on a class to create the object itself.
  • IOC --- Specifies that if an object requires another object, the first object should get the other from an outside source such as Configuration file, which makes testing easier.   
  •             
  •                                                                                Author : Ritam Atarthy.

Comments

Popular posts from this blog

C# Constructor

Hiding vs Overriding