Programming and Computing facts by Mohammed Abdulsattar

Thursday, July 30, 2009

ASP.NET MVC Vs ASP.NET Web Forms

Since when Microsoft released ASP.NET MVC in January 27 2009, there has been a lot of debate on this topic — Is ASP.NET MVC better than ASP.NET Webforms? Many developers think that Microsoft has taken a step behind, towards the days of classic ASP, by releasing ASP.NET MVC. But some argue that it will eventually replace Web Forms. But as far as I know, none is true.

ASP.NET MVC uses the Model-View-Controller design pattern and does not use the server controls that Web Forms uses. Many developers were quickly attracted to ASP.NET when it was introduced in 2001 mainly because the Web Forms provided Rapid Application Development ( RAD ). They said that the design was a bit complex and confusing for a newbie but once mastered it’s very easy. ASP.NET MVC removed the much hyped server controls and provided a clean MVC pattern to deal with the UI.

Advantages of Web Forms

  1. Rapid Application Development

  2. Very rich server controls

  3. Easy data binding

  4. Improves over the stateless protocol of HTTP


Advantages of MVC Model

  1. The MVC pattern, by itself!

  2. Separation of Concerns

  3. SEO friendly URLs

  4. Full control over HTML


Disadvantages of Web Forms

  1. The complex design

  2. TheViewstate sometimes reaches large values

  3. Does not generate clean HTML

  4. No separation of concerns


Disadvantages of ASP.NET MVC

  1. Uses the same stateless HTTP

  2. No support for the Server controls that provide the RAD


Which one to choose?

It’s your choice entirely! Choose what is the functionality that you need most, cleaner development or rapid development.

As of me, I’ve chosen ASP.NET MVC. Some of you may be thinking I am wrong because I lose the RAD part. But I’ve a justification for that. I must have lost the famous GridView, but I’d like to tell you that I never liked it! There are many server controls that I’ve never used. I’ve more importantly used the simple ones like <asp:TextBox>, <asp:Label> etc. Making my design more complex and losing my control over the HTML I (ought to) generate is not compensated by those server controls? ASP.NET MVC gives me much better. If you like ASP.NET Web Forms, I’d advise you to shift to ASP.NET MVC and ake a little trouble by yourself and make your customers happy. If you don’t like Web Forms, wait for my tutorial on a simple ASP.NET MVC application! I’ll be posting it soon enough. Till then do some googling for a while and get started.

Saturday, July 25, 2009

Google Wave – Yet another *hot* product from Google

[caption id="" align="alignleft" width="360" caption="Google Wave"]Google Wave[/caption]

Google has announced another wonderful tool that enables you to stay in touch with your friends more easily than ever before – Google Wave. This another tool from Google is sure to hand over online communication in it’s hands. Google could have a long list of reasons behind that or it could be just one more attempt to take over Facebook, Twitter and all since it’s Orkut is not that popular.

Google Wave is going to be bundled with a whole lot of new features that no application I know has. Google says that all the action happens as a Wave. You create it, you and your friends modify it so that you and all your friends can see it. That sounds pretty simple but Wave has many things in it to create and modify. A wave can contain

  1. Richly formatted text

  2. Photos

  3. Gadgets

  4. Feeds

  5. And many more things (yet to be built!)


The main thing that makes it stand out from the rest is its concurrency. Any number of users can edit the Wave simultaneously and everyone will have their wave updated as the editor edits it. You can also rewind to see how the changes got effected. This is really a cool functionality that no application has.

However it’s going to be released on September 30 of this year only to a 100,000 special invites. It is perhaps going to adopt the GMail invite feature. But those 100,000 special invites are going to be very lucky.

Google Wave is completely open source so that the Developer community can dig in and do something that even Google couldn’t do ( Google doesn’t say that but it translates to the same )! Even a plugin for Wordpress is being developed.

Whatsoever, Google Wave, according to the hype it currently is creating, is going to make Google the real monarch of internet communcation.

About Me

My photo
I'm a computer science engineering student with a lot of passion for computers.