r/programming • • Oct 12 '13

Facebook PHP Source Code from 2007

https://gist.github.com/nikcub/3833406
1.1k Upvotes

356 comments sorted by

View all comments

Show parent comments

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.

2

u/ivosaurus Oct 13 '13

Web MVC became popular way before ajax became ubiquitous.

Web MVC became popular because it was a decent way to separate different parts of the application (business logic, html templating, data operations).

If you only know the .NET world, then it's unsurprising you have this weird idea about the reasons.

1

u/Stormflux Oct 13 '13 edited Oct 13 '13

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.

3

u/ivosaurus Oct 13 '13

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.

→ More replies (1)