I happened to read an interesting article the other day that talked about buildi
ID: 649989 • Letter: I
Question
I happened to read an interesting article the other day that talked about building mobile applications using Javascript and HTML5. One interesting point they brought out was how this approach worked across multiple platforms, different hardware (ex. screen size) and software (ex. iPhone, WP7, Mac, Windows).
I also noticed something interesting posted on Microsoft's Build Website for their upcoming conference. They seem to put a lot of emphasis on HTML5 and JavaScript. It does seem ideal to develop a single application (of course it would still require minor modifications) and have it work on tablets, PCs, mobile devices, TVs or pretty much any internet-capable device.
Is this a shifting trend?
Obviously it's no fun learning a technology just to find out a year later that it's getting shut down. In my opinion it seems rather difficult as it stands to do certain functionality like animations or data-binding (my favorite!) with HTML5 and JavaScript when compared to Silverlight. In this case the tools alone make it a better choice (Expression Blend and Visual Studio 2010). I am concerned though because it has been getting easier to do things on the web that just a few years ago didn't seem possible.
Is there still a place for technologies like Flash and Silverlight when it comes to developing applications or should we be aiming to gear our apps toward web-specific technologies such as HTML5, CSS3, and JavaScript?
Explanation / Answer
The big shift toward HTML5/JS came recently with the introduction of hardware accelerationin IE9 and now other browsers. Before, you just couldn't get the performance out of HTML that you could with Silverlight and Flash. They had access to hardware and HTML didn't.
The vast majority of mobile browsers support HTML5, and so do their webviews in apps that things like Phonegap takes advantage of. So in the mobile space, depending upon exactly how much hardware you want to use, HTML5/CSS3/JS is a prerfectly good option.
With Windows 8, there's going to be HTML5 apps in the new tablet view, but native apps are still very much the core part of the experience (Visual Studio won't be HTML5 for example...I don't think). However, since the markup/JS is hardware accelerated it can now be every bit as fast as a native application.
To your point about if Flash and Silverlight have a place - Windows Phone 7's UI is based on Silverlight, so I'm sure it'll be around for a while. Also, these technologies are still the only way to get a rich web media experience on older browsers like IE7, which are still very much alive in the XP world. Until every user you want to view something is off of that, you'll need a fallback method. Flash is still great for that with video and graphics.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.