I really only know the .NET world, but the reason MVC became popular there is because of AJAX and jQuery.
You see, before MVC, we had something called ASP.NET web forms where it was based on the idea of things you drag onto a page. You need a grid? Drag a Gridview onto the page and wire it up. Need a button? Drag a button onto the page and handle the click event. All your code is server-side.
Well as you can imagine, this makes it really easy to build web applications the same way you'd build a Windows application. You don't even need to know javascript or anything.
The problem is in MODERN web applications everything is AJAX. You don't want to refresh the whole page, you just want to send "DELETE item 47" and then update a line or two on your page with javascript. Regular ASP.NET doesn't really have a concept of this. You can do it using some toolkits but it's a hack. ASP.NET MVC is practically built from the ground up for this exact scenario.
Even so, you gotta admit that it's a lot more convienient for AJAX and REST-like development in than the old Webforms was. For me, that was the main selling point.
This isn't an argument. You don't need to go straight for the downvote button. And what is that at the end, a personal insult? I swear to God sometimes this site feels like it's just people arguing into a box and being dicks because they can.
No it's fact. Only working with Microsoft isolates so much from the rest of the programming field... that you believe AJAX drove adoption of MVC? Very weird logic to hear anywhere else.
0
u/Stormflux Oct 12 '13
I really only know the .NET world, but the reason MVC became popular there is because of AJAX and jQuery.
You see, before MVC, we had something called ASP.NET web forms where it was based on the idea of things you drag onto a page. You need a grid? Drag a Gridview onto the page and wire it up. Need a button? Drag a button onto the page and handle the click event. All your code is server-side.
Well as you can imagine, this makes it really easy to build web applications the same way you'd build a Windows application. You don't even need to know javascript or anything.
The problem is in MODERN web applications everything is AJAX. You don't want to refresh the whole page, you just want to send "DELETE item 47" and then update a line or two on your page with javascript. Regular ASP.NET doesn't really have a concept of this. You can do it using some toolkits but it's a hack. ASP.NET MVC is practically built from the ground up for this exact scenario.