<p><a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="nofollow noreferrer">Ajax</a>, <a href="http://en.wikipedia.org/wiki/Adobe_Flex" rel="nofollow noreferrer">Flex</a> and <a href="http://en.wikipedia.org/wiki/Microsoft_Silverlight" rel="nofollow noreferrer">Silverlight</a> are a few ways to make more interactive web applications.  What kinds of factors would you consider when deciding which to use for a new web application?  </p>

<p>Does any one of them offer better cross-platform compatibility, performance, developer tools or community support?  </p>

[{'answer_id': 48889, 'author': 'Marcus Downing', 'author_id': 1000, 'author_profile': 'https://Stackoverflow.com/users/1000', 'pm_score': 2, 'selected': False, 'text': "<p>The web runtimes like Flex and Silverlight all offer enticing things, but come with two big costs:</p>\n\n<ul>\n<li>They run only within a rectangle on the page, and don't interact with normal web widgets</li>\n<li>They are only available to people who have that plug-in installed</li>\n</ul>\n\n<p>Even the nearly-ubiquitous Flash isn't installed on every web browser, so by choosing to use a plug-in runtime you're excluding part of your audience.</p>\n\n<p>In contrast, JavaScript (or Ajax) is available on pretty much every browser, and interacts better with normal web pages, but is a more primitive and restricting language. Using it for complex animations can be tricky, and you'll need to test your applications in more versions on more platforms to make sure it works.</p>\n\n<p>Cross-platform compatibility isn't the issue it used to be, so the issue is this: <strong>Will you gain more in the features of a plug-in library than you'll lose in the audience you exclude?</strong></p>\n\n<p>My own answer has so far always been JavaScript/Ajax, but I'd re-evaluate that in any new project.</p>\n"}, {'answer_id': 48897, 'author': 'Rob Walker', 'author_id': 3631, 'author_profile': 'https://Stackoverflow.com/users/3631', 'pm_score': 1, 'selected': False, 'text': "<p>What is your audience: public web site or an intranet business app?  Adoption rates are not relevant if you have a controlled audience who will install what is needed to run your app. However, if you need the largest possible audience to make your web startup a success then it may be critical.</p>\n\n<p>What is your goal? Building something for the lowest cost? Learning new technology?</p>\n\n<p>Can you leverage your existing skills?  If you already know .NET then Silverlight gets a boost.  Learning Flex may be interesting and useful, but is it more useful to you than more experience with .NET technologies?  Remember to consider the opportunity cost of learning something totally new.</p>\n\n<p>I don't see a clear technology winner at this point, and likely there won't be one for a long time, so the choice will come down to fairly subjective factors.</p>\n"}, {'answer_id': 48900, 'author': 'Sean', 'author_id': 4919, 'author_profile': 'https://Stackoverflow.com/users/4919', 'pm_score': 5, 'selected': True, 'text': '<p>Here\'s a quick rundown of each area (with lots of helpful links):</p>\n\n<h2>Cross-platform compatibility</h2>\n\n<p><a href="http://arstechnica.com/news.ars/post/20050808-5183.html" rel="nofollow noreferrer">Ajax</a> works in <a href="http://www.musingsfrommars.org/2006/03/ajax-dhtml-library-scorecard.html" rel="nofollow noreferrer">any modern browser</a> that can run <a href="http://en.wikipedia.org/wiki/JavaScript" rel="nofollow noreferrer">JavaScript</a>. Flex requires Flash or anything else that can handle <a href="http://en.wikipedia.org/wiki/SWF" rel="nofollow noreferrer">SWF</a>s but, once that\'s installed, it\'s a <a href="http://blog.arc90.com/2006/07/10_reasons_we_love_flex_2.php" rel="nofollow noreferrer">total freeride</a> as far as compatibility. Silverlight is <a href="http://wildermuth.com/2008/04/03/Silverlight_Compatibility_Confusion" rel="nofollow noreferrer">tricky and misunderstood</a> so carefully consider your <a href="http://en.wikipedia.org/wiki/Silverlight#Compatibility" rel="nofollow noreferrer">userbase</a> before going with this MS foray into the rich web applications arms race. Also keep in mind that Silverlight is still in Beta, so it may become more widely used and installed in the future as it is developed.</p>\n\n<h2>Performance</h2>\n\n<p>I\'m fearful of making too many statements about performance because it really depends on how much you are willing to optimize and the exact nature of your application. Also, some technology stacks are just never going to be very fast. <a href="http://www.jamesward.com/wordpress/2007/04/30/ajax-and-flex-data-loading-benchmarks/" rel="nofollow noreferrer">Some people out there have been making comparisons</a>, but again, <a href="http://metalinkltd.com/?p=108" rel="nofollow noreferrer">it depends on a great many factors</a> (even the version of the browser from which you are testing!). It\'s probably best to choose based on other factors and optimize once you\'ve started to develop.</p>\n\n<h2>Developer tools</h2>\n\n<p>There are the "golden standard" dev tools for each of the three:</p>\n\n<ul>\n<li><p>Ajax has basically unlimited options, depending on the rest of your technology and architecture choices. The big questions you\'re actually faced with are which libraries to rely upon, and Google has voiced a pretty well adopted answer with things like <a href="http://code.google.com/webtoolkit/" rel="nofollow noreferrer">Web Toolkit</a>. When you get right down to it, it\'s just XML and JavaScript, right?</p></li>\n<li><p>Flex is from Adobe and, just like with Flash development, you\'d better stick with <a href="http://www.adobe.com/products/flex/flexdownloads/index.html" rel="nofollow noreferrer">their homegrown tools</a> because--well--they\'re making the standards as they go along.</p></li>\n<li><p>Microsoft has positioned Microsoft Expression Blend versions 2.0 and 2.5 for designing the UI of Silverlight 1.0 and 2 applications respectively. Visual Studio 2008 can be used to develop and debug Silverlight applications (<a href="http://en.wikipedia.org/wiki/Silverlight#Development_tools" rel="nofollow noreferrer">from Wikipedia</a>). </p></li>\n</ul>\n\n<h2>Community support</h2>\n\n<p>There is both official and unofficial community, corporate, and open-source support for all three options. Whichever you are already integrated with and which makes you feel most at home are very individual things, but I\'ll offer this advice: stick with what you know. If you are a MS developer and have MSDN as your homepage, you are probably going to think the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1840cab5-196c-4264-b55d-562242a72625&amp;displaylang=en" rel="nofollow noreferrer">Silverlight documentation</a> and forums are really helpful. Flex has a very similar story; the forums are pretty good and if you\'re a Flash person already, you\'re going to be right at home with their <a href="http://www.adobe.com/support/documentation/en/flex/" rel="nofollow noreferrer">documentation</a> and <a href="http://www.adobe.com/devnet/flex/" rel="nofollow noreferrer">user community</a>.</p>\n\n<p>On the other hand, Ajax is basically all over the place because you can implement so many different ways and use so many widely-varied libraries. Each library can have it\'s own forums to visit and mailing lists to lurk within for answers.</p>\n\n<p>Once again, all three have corporate giants trying to foster their communities and to get the best support possible to the developers that will give them greater market share in the future.</p>\n'}, {'answer_id': 48903, 'author': 'hasseg', 'author_id': 4111, 'author_profile': 'https://Stackoverflow.com/users/4111', 'pm_score': 3, 'selected': False, 'text': '<p>The choice should in my opinion be mostly based on the nature of the application you\'ll be building (for example, if you need to manipulate vector graphics, Ajax is pretty much out), but here are some general guidelines:</p>\n\n<p><strong>Ubiquity</strong></p>\n\n<ol>\n<li>Ajax -- Supported by all modern browsers across platforms</li>\n<li>Flex -- Runtime (Flash Player) has very wide installed base for Windows, Mac OS, Linux. Linux version was a bit buggy the last time I checked, though</li>\n<li>Silverlight -- Runtime has quite low installed base (and no Linux support) at the moment</li>\n</ol>\n\n<p><strong>Choice of programming language</strong></p>\n\n<p>(Unordeded because of subjectivity, but note that Silverlight offers the most choice. Also note that the existing language experience of developers in your team should be taken into account.)</p>\n\n<ul>\n<li>Silverlight: Any .NET language (C#, Visual Basic, IronPython(?), IronRuby(?)) (and XAML for UI definition)</li>\n<li>Ajax: JavaScript (and XHTML for UI definition)</li>\n<li>Flex: ActionScript 3 (and MXML for UI definition)</li>\n</ul>\n\n<p><strong>API Stability and compatibility</strong></p>\n\n<ol>\n<li>Flex -- Runtime is the same across platforms and browsers, more mature and stable at the moment than Silverlight</li>\n<li>Silverlight -- Runtime is the same across platforms and browsers, less mature than Flex/Flash, v2.0 is still in beta</li>\n<li>Ajax -- Compatibility problems across browsers (may be mitigated via Ajax libraries, though)</li>\n</ol>\n\n<p><strong>Web/Browser Integration</strong></p>\n\n<ol>\n<li>Ajax -- Content is native inside browser, based on standards: searchable by browser and search engine crawlers, subject to any standard UI practices the browser and operating system have established</li>\n<li>Flex and Silverlight -- Content not native to browser (i.e. runs in its own little "sandbox/rectangle"): not necessarily subject to established UI practices for the given platform</li>\n</ol>\n\n<p><strong>Developer Tools</strong></p>\n\n<ol>\n<li>Ajax -- Your favorite code editor, browser and debugging toolkit for the browser</li>\n<li>Flex -- Flex SDK is available for Windows, Mac OS and Linux for free and can be used with your favorite code editor. A Command-line debugger is included, but the Adobe-provided profiler is only available in the commercial Flex Builder IDE</li>\n<li>Silverlight -- <em>AFAIK</em>, The SDK is available for Windows for free and can be used with your favorite .NET development tools</li>\n</ol>\n'}, {'answer_id': 49128, 'author': '17 of 26', 'author_id': 2284, 'author_profile': 'https://Stackoverflow.com/users/2284', 'pm_score': 0, 'selected': False, 'text': "<p>Other than what's already been mentioned here, another huge thing to consider is what your UI is going to be.</p>\n\n<p>If you're going to be using a lot of advanced UI controls like trees, lists, tab controls, etc then consider the following:</p>\n\n<ul>\n<li><p>JavaScript/HTML - No native support for anything beyond things basic drop down boxes, buttons, and text fields.  If you want something like a tree control or tab control then you'll have to roll your own or find a third party library.</p></li>\n<li><p>Adobe ActionScript - Native support for a wide array of advanced UI controls</p></li>\n<li>Silverlight - 1.0 had very limited UI controls, but 2.0 will be adding many more and I'm sure we'll continue to see controls added in future releases.</li>\n</ul>\n"}]
['https://Stackoverflow.com/questions/48877', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4883/']