Welcome to YLOAN.COM
yloan.com » misc » Should I Mvc Or Should I Not Mvc
Gadgets and Gizmos misc Design Bankruptcy Licenses performance choices memorabilia bargain carriage tour medical insurance data

Should I Mvc Or Should I Not Mvc

Presently there are a bunch of ASP.NET web forms coders out there who acknowledge that they simply don't comprehend ASP.NET MVC

. In a lot of ways, I can relate with them. The vocal group that talks about ASP.NET MVC talk about it with such zeal that they make it sound like you'd have to be a idiot not to move over. In truth, the choice isn't nearly as straight forward.

ASP.NET web forms aren't going anyplace. These techniques have their correct place in a web developer's toolbox and it's crucial to understand their advantages and weak points. In general, the ASP.NET MVC framework is inclined to compromise ease-of-use (e.g. viewstate, validation, etc.) in order to supply developers stronger control over the reins. This can be a great thing, but only if you take advantage of it. Or else it can just as readily be a problem.

With all of this, I have created a quick metric to find out if ASP.NET MVC is right for you. The way I see it, there are several primary purposes a developer should choose the ASP.NET MVC framework over ASP.NET web forms. If none of these factors are persuasive to you, then you should stick with ASP.NET web forms:

To Acquire Control and Extensibility


As directed out in the comments, ASP.NET MVC provides you a lot more control and extensibility options than ASP.NET web forms. You get complete control over the webpage request lifecycle and the means to swap out several key sections of the framework (e.g. view engine, routing, etc.), none of which is doable with ASP.NET web forms.

In addition to this, you also get entire management over the rendered HTML. In general, the rendered HTML from ASP.NET web forms applications is terrible. The web controls it uses produce nonsense ids and hidden fields in abundance that not only obstruct the overall performance of a site, but also make CSS style and Javascript development a pain. ASP.NET MVC allows you to be more in tune with your HTML. There aren't any datagrids or repeaters that like magic create markup for you. There aren't any concealed fields to persist state for you. It's just you, the HTML, and a couple 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 forms of hoops to test around the page event lifecycle, the ASP.NET MVC framework practically begs to be tested. There are interfaces all over proclaiming "mock me up!".

There's a good reason why the most significant ASP.NET MVC proponents also tend to be TDD advocates; it's since ASP.NET MVC essentially allows for TDD. In my opinion, I think this is where all the passion comes from. Basically put: it's really hard to do TDD with ASP.NET web forms and truly effortless to do it in ASP.NET MVC.


To Attempt Something New

I should point out that figuring out ASP.NET MVC is an astonishingly engaging process since the ASP.NET MVC framework group has been so interactive in the process. I consider a massive part of the appeal of ASP.NET MVC is that the community's suggestions is not only being taken into consideration, it is definitely being sought after. The framework has started so many posts and discussions over best practices that simply following along presents you to ideas you might previously have been uninformed of. I would really advise understanding the ASP.NET MVC framework for this factor alone.

So there it is. Apart from these three, I can't think of any other reasons why a programmer would learn ASP.NET MVC. Possibly this is why the adoption rate isn't nearly as high as we think it should be. The incentive for using the framework primarily reduces down to unit testing, control/extensibility, and feeling of boredom/interest. Fine reasons, but not really game breakers for the great majority of programmers out there.

by: scotspepeh
A Guide On How To Buy The Best Stereo Sound System For Your Lexus Dss Crises: Support For People Who Are Disabled Leather Crafts Are More Fun When You Use Leather Working Tools. Ancient Egypts Magic Mango Peel Could Contain Hidden Benefits The Security Provider Ssl Washington Dc Limo Rental : How To Chose The Most Afford Able One How Can You Take Command Of Your Debts Smartly? School: A Dream World For The Growing Learners An Expense Manager Is Very Much Essential Superior Riverside Bartending Schools Teach You Exactly How To Use Them Providing Car Donation To Charities Get More Out Of Your Car Donation
print
www.yloan.com guest:  register | login | search IP(216.73.216.142) California / Anaheim Processed in 0.017933 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 24 , 4053, 85,
Should I Mvc Or Should I Not Mvc Anaheim