DRAFT MVC and ASP.net – a Match Made in Heaven! DRAFT
How is it better than WebForms?
ASP.net MVC is in many ways better than WebForms for example:
- Testability (i.e. Unit Testing) is much easier by design in MVC
- Separation of Concerns (see ??) is much easier by design in MVC
- It is much easier to have a page interact with a fairly sophisticated back-end code base
- Postback is NOT its central model. Ajax and partial refreshes are first class citizens here.
- It pays more if you negotiate right.
There are other benefits but hopefully these will be enticing.
How is it worse than WebForms?
What must I buy? (Asp.net MVC is free, learning it may not be)
Here are the sums of the expenses:
- ASP.net MVC is free so that part is the best thing.
- If you don’t have Visual Studio, you will need the Community Edition which is FREE, a much better choice than the express edition.
- If you are on a Mac or Linux you will need Xamarin (not free), or just setup a VM there and run Windows on them.
- You can read online tutorials like:
- But I recommend supplementing them with some books that will go into the whys and high end concepts that quick tutorials cannot cover.
Those downloads, tutorials and books will make your sword very sharp in slaying the MVC dragon!
What the heck is MVC? MVP? MVVM?
Some other terms that may be helpful to you we will define here are:
- Route —
- Partial View –
- Attributes –
- Areas –
- Web API –
Are there any shortcuts?
- DevExpress is awesome. I prefer it to Telerik, Infragistics and Kendo. They all are good, but DevExpress is the best I have used.
How do I know when I am doing it right?
A tough question but the right one. Give yourself time to get it right. Plenty of people are doing it wrong and half assed and shipping code. Shipping code and meeting boss deadlines and project budgets does matter more than the wisest approach on your first project if you have no mentors or leaders who are veterans.
I have questions. Where do I ask them?
Get out there and code your first ASP.net MVC project!
I (and many others) will answer your questions on [AspNetAnyQuestionIsOK] when you do code!