JCooney.NET

Joseph Cooney's Weblog

My Links

Blog Stats

News

I work for:


see also:
Dominic Cooney
Patrick Cooney

Archives

Image Galleries

My GotDotNet Samples

Ajax vs. winforms vs. ASP.NET - there is no right answer

”rich” browser applications using CSS, JavaScript and XML (recently termed AJAX applications) seem to be gaining in popularity. Mary-Jo foley has an article on MicrosoftWatch extoling their virtues, an article which sounds suspisciously like it was written by somebody who has never written an application of this kind. While I've never written anything that leverages this stuff as much as GMail and the like I have written a few web apps that talk back asynchronously to a WebService back-end from time to time (I even wrote a helpful sample). Also I've worked on maintaining a small but extremely AJAX-esque application. The biggest problem I see with these kinds of apps is lack of tool support. There is little to no “design time” experience when building these types of GUIs, debugging is not as simple as building a vanilla ASP.NET application (can you press F8 in Visual Studio and “step” from a back-end call made by your XmlHttpRequest back into your client-side JavaScript and then “step” again into the client-side XSL transform you're going to run....err...no). JavaScript is a nice language for writing small things but the fact that it isn't compiled means you miss out on finding out about certain classes of bugs until runtime. Also the “dynamic typing” aspect of JavaScript contributes to this problem, making some classes of bugs harder to find. Maybe I'm just not the JavaScript programmer that some other people out there are. By writing AJAX applications a much larger proportion of your code base moves to client-side javascript where you don't have a powerful framework of class libraries to fall back on (like the .NET BCL), meaning in some cases you have to move things back onto the server and make a cross-process call over the web to reach them, or write your own. All in all I'd roughly estimate that it takes between 5 and 10 times longer to write an AJAX-style browser-based rich client than it takes to write a .NET windows forms rich client app.

Then there is the “IP” issue - cracking open a JavaScript file and reading it is much easier than breaking in to somebody's server to download and decompile their ASP.NET application (but I suppose only marginally easier than decompiling a “smart client” .NET application). Deployment technologies like HREF deployment and the Updater Application Block (in framework 1.x) and ClickOnce in framework 2.x make deploying smart client apps extremely easy and flexible, IF (and this might be a big IF) you have the .NET framework installed on the client.  As a programmer I think AJAX-style web apps are really cool, and make great sense for things like GMail - a desire to deliver rich functionality, millions of users running on many platforms and (presumably after that IPO) plenty of development talent to throw at the problem. Your typical line-of-business internet app probably doesn't need to be this rich, and unless it does AND you need to target multiple platforms you'll be hard-pressed to justify the increased development and maintenance costs. Plus if Sam Ruby says AJAX is harmful who am to argue. (OK, maybe I will argue - AJAX is OK but some implementations are using GET for everything which is no good).

posted on Thursday, March 17, 2005 9:55 AM

Feedback

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 3/19/2005 11:02 AM ben

Can you give some reasons why using GET for everything is bad? Is using POST better? Or some other transport?

# My Take on 3/19/2005 11:51 AM Ben Reichelt's Blog

# My Take on 3/19/2005 11:52 AM Ben Reichelt's Blog

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 3/20/2005 1:59 AM JosephCooney

Using GET for operations that change state violates the HTTP protocol - GET operations should be idempotent. Allowing GETs to change state opens you up to Cross-Site Request Forgery attacks. A good treatment of these is given here (this site concerns its self with PHP but the principles are the same) http://shiflett.org/articles/foiling-cross-site-attacks

# Ajaxing the Rails 3/24/2005 8:57 AM Olivier Travers

David Heinemeier Hansson: "Rails 0.11.0 is out on the street and I'm especially proud of the Ajax support we've been able to include. Instead of trying to soften the blow of doing client-side Javascript libraries as many others are doing,...

# A little dab'll do ya 4/28/2005 6:31 AM brentashley

Jesse's Ajax article has certainly got a lot of discussion going, ranging from ho-hum to hyperbole. A few pundits are postulating (or at least sensationalizing) that this could be the end of app dev as we know it, a new...

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 9/9/2005 7:58 AM Ket Yung Chee

Hi;

Just 2share, A AJAX shopping cart,
http://www.smartborneo.com/h/home.php (PHP+AJAX)

AJAX Application by the use of JSP/Servlet/JavaBean, similar to 4th GL & Oracle web form
http://rhae.dunco.com.my/examples/lppbap/jsp/

For more info also visit http://www.ajaxapp.com/

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 4/13/2006 8:29 PM Guy Peled

I agree there is no right answer and every project should be dealing with these issues and that is exactly why I developed Visual WebGui which lets you develop in WinForms like API creating an application that you can deploy both as an offline version and most important a highly responsive AJAX based web application. Visit the web site http://www.visualwebgui.com and see for your self. Guy

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 3/6/2009 11:59 AM Andrea Raimondi

I've done some experiments with JS and AJAX... I've also used JavaScript to do a bunch of things, hence I have a good feeling of all this stuff is like... imho the worst part of the whole game is that an AJAX application tries to mimick a client application, but there ya go: we have client applications already, so why use a surrogate when you can have the real thing?

As to easy deployment and stuff like that: hey, it's easier if you don't have thousands of DLLs hanging around ya know? :-)
Try CodeGear Rad Studio: www.codegear.com ;-)

Another thing that strikes me odd: most of those libraries say that no html/Javascript knowledge is required. I'm wondering: how can you use something without really knowing what's going on under the hood?

But then, it may just be me...

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 7/17/2009 12:00 PM film izle

thanks.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 10/1/2009 1:05 PM chat

this page to share with my friends

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 10/27/2009 7:23 AM zheng

there is no right answer

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 10/27/2009 7:25 AM www.jewelrytif.com

there is no right answer

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 10/27/2009 7:32 AM www.yeshandbag.com

there is no right answer

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 10/27/2009 8:24 PM www.jewelrytif.com

www.jewelrytif.com there is no right answer

# http://www.hayda.net/ 11/6/2009 7:23 PM mirc sohbet

If they are linking from the comment, I would consider it spam. If they post a comment, and it is on topic, be glad someone saw your blog and thought enough to post to it. <a href="http://www.hayda.net" title="mirc, cinsel sohbet, cinsellik, chat">mirc</a> .

# www.mirckur.org 11/6/2009 7:24 PM mirc

If they are linking from the comment, I would consider it spam. If they post a comment, and it is on topic, be glad someone saw your blog and thought enough to post to it. http://www.hayda.net/

# Free online games 11/11/2009 6:49 AM David

Very interesting post....

# traslochi internazionali milano 12/9/2009 3:52 AM traslochi internazionali milano

That's great, I never thought about Ajax vs. winforms vs. ASP.NET - there is no right answer like that before.

# re: using Excel as a Database == EVIL! 12/9/2009 11:39 PM abercrombie and fitch

Then there is the “IP” issue - cracking open a JavaScript file and reading it is much easier than breaking in to somebody's server to download and decompile their ASP.NET application (but I suppose only marginally easier than decompiling a “smart client” .NET application). Deployment technologies like HREF deployment and the Updater Application Block (in framework 1.x) and ClickOnce in framework 2.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 12/10/2009 7:15 PM Stainless steel pipe

no right answer

# good post, i like this style.you will be lucky 12/18/2009 11:17 PM Fashion

good post, i like this style.you will be lucky

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 12/29/2009 11:37 PM Mobile phone

thank you for share,I like this post

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/2/2010 6:39 AM Submission Article

I am not a computer student but I take special interest in IT. Can you please do let me know how SEO can be made more productive?

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/4/2010 7:34 AM capsiplex

I do follow a lot of post on here, but for the record can you make them with more paragraphs? I find the way they have been put up is a little heavy on the eyes. Sorry to be critical!

# SEO Services 1/11/2010 2:06 AM Priyanka

I admire what you have done here. It is good to see your clarity on this important subject can be easily observed. Tremendous post and will look forward to your future update.

Thanks
<a href="http://www.clickresponse.net/search-engine-optimization-service.htm">SEO Services</a>

# SEO Services India 1/12/2010 12:33 AM dyna garry

Thanks for the nice feedback everyone, I really appreciate it!

<a href="http://www.websitedevelopersindia.net/website-promotion-india/search-engine-optimizationservices.html">SEO Services India</a>

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/15/2010 5:01 PM hostmonster coupon

Thank you for sharing.

# SEO Services India 1/18/2010 12:43 AM jim

Good post….thanks for sharing.. very useful for me i will bookmark this for my future needed. thanks for a great source.



<a href="http://www.seoservicesindia.mobi">SEO Service India</a>

# SEO Services 1/19/2010 9:31 PM SEO Services

Good post and will look forward to your future update.

Thanks

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/25/2010 1:36 AM seyfi doğanay dinle

Hi, I am grateful to you very much for this page prepared you, good day, I worked a lot of work.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:01 PM cinsel sohbet

Good post….thanks for sharing

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:02 PM dizi izle

Thanks for the nice feedback everyone, I really appreciate it!

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:02 PM mp3 indir

Thanks for the nice feedback everyone

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:03 PM rap dinle

:)

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:04 PM müzik dinle

thankssss

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/26/2010 3:05 PM kürtçe müzik dinle

:) thanks

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/27/2010 12:55 PM mersin sohbet

Thank you, your page has help me a lot of work, I wish you good work.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/27/2010 12:56 PM kayseri sohbet

Thank you, your page has help me a lot of work, I wish you good work.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 1/27/2010 12:57 PM kayseri sohbet

Thank you, your page has help me a lot of work, I wish you good work.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/1/2010 12:24 AM Hole digger

thank u very much 4 sharing this

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/1/2010 5:34 AM müzik dinle

Thanks

# honeywell humidifier 2/4/2010 10:51 PM honeywell humidifier

Thanks honeywell humidifier

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/5/2010 8:48 AM türkü dinle

Thanks admin..

# wedding planning view 2/6/2010 12:14 AM wedding planning view

I like your blogging style

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/7/2010 3:44 PM mersin sohbet

Thanks admin.

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/7/2010 4:38 PM şarkı dinle

thnxx for your helps for this site

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/7/2010 4:38 PM islami sohbet

thnxx for your helps for this sitex

# re: Ajax vs. winforms vs. ASP.NET - there is no right answer 2/7/2010 4:39 PM cinsel sohbet

thnx a lot

Title  
Name  
Url
Security Word (prevent comment spam)
Protected by FormShield
Comments