Should I Mvc Or Should I Stay Away From Mvc
Right now there are a bunch of ASP.NET web forms programmers out there who acknowledge that they simply don't understand ASP.NET MVC
. In a lot of ways, I can relate with them. The vocal group that talks about ASP.NET MVC speak about it with such zeal that they make it seem like you'd have to be a idiot not to switch over. In reality, the selection isn't nearly as easy.
ASP.NET web forms aren't going anywhere. These tactics have their proper place in a web developer's toolbox and it's important to discover their strengths and flaws. In general, the ASP.NET MVC framework has a tendency to compromise ease-of-use (e.g. viewstate, validation, etc.) in order to present developers tighter control over the reins. This can be a terrific thing, but only if you take advantage of it. If not it can just as readily be a problem.
With all of this, I have formulated a fast metric to ascertain if ASP.NET MVC is right for you. The way I see it, there are three primary purposes a developer should choose the ASP.NET MVC framework over ASP.NET web forms. If none of these causes are convincing to you, then you ought to stick with ASP.NET web forms:
To Acquire Control and Extensibility
As directed out in the comments, ASP.NET MVC offers you a lot more management and extensibility options than ASP.NET web forms. You get complete management over the site request lifecycle and the capability to exchange out several key items of the framework (e.g. view engine, routing, etc.), none of which is achievable with ASP.NET web forms.
In addition to this, you also get whole control over the delivered HTML. In general, the rendered HTML from ASP.NET web forms apps is dreadful. The web controls it utilizes create nonsense ids and disguised . fields galore that not only obstruct the performance of a site, but also make CSS style and Javascript development a pain. ASP.NET MVC makes you to be more in tune with your HTML. There aren't any datagrids or repeaters that amazingly crank out markup for you. There aren't any invisible fields to continue to persist state for you. It's just you, the HTML, and a number of extension procedures.
To Unit Test
This, in my opinion, is the most engaging rationale to use ASP.NET MVC. When it comes to unit testing, ASP.NET MVC basically defeats ASP.NET web forms. It's not even close. Whereas ASP.NET web forms needs you to leap through all sorts of hoops to test around the web page event lifecycle, the ASP.NET MVC framework basically begs to be tested. There are interfaces almost everywhere stating "mock me up!".
There's a reason why the greatest ASP.NET MVC supporters also are likely to be TDD supporters; it's simply because ASP.NET MVC in fact allows for TDD. Personally, I think this is where all the zeal comes from. Basically put: it's truly hard to do TDD with ASP.NET web forms and extremely simple to do it in ASP.NET MVC.
To Look at Something New
I should mention that mastering ASP.NET MVC is an unbelievably engaging process since the ASP.NET MVC framework team has been so interactive in the process. I consider a large part of the charm of ASP.NET MVC is that the community's suggestions is not only being taken into consideration, it is actively being sought after. The framework has sparked so many conversations and arguments over best practices that just following along presents you to aspects you might formerly have been uninformed of. I would really suggest studying the ASP.NET MVC framework for this reason alone.
So there it is. Aside from those three, I can't think of any other reasons why a programmer would learn about ASP.NET MVC. Maybe this is why the adoption rate isn't nearly as high as we believe it should be. The motivation for using the framework effectively boils down to unit testing, control/extensibility, and boredom/curiosity. Good reasons, but seldom game breakers for the great greater part of web developers out there.
by: scotspepeh
Porque Realizar Una Carrera De Administracin Y Direccin De Empresas Pandora Charm Bracelet Wrist Should Be - This Is The Reason Why How Vending Machine Works? A Look Inside A Vending Machine Battery Basics, Starting With A Jump Epson Perfection V30 Color Scanner Will Restore Your Old Photos How To Promote Affiliate Offers Scott Olsen's Injury Is A Symbol Of What Has Gone Wrong In America Finishing Materials Of The Outer Walls Parkside Trampoline Avoid The Sniffles While Gardening. The Importance Of Trampoline Enclosure Nets Skilled Emigration To Australia On A 457 Visa Greece's Primary Minister Officially Declared Her Resignation