HTML5真的会取代Silverlight,闪存在不久的将来吗? [英] Will HTML5 really replace the silverlight, flash in near future?

查看:62
本文介绍了HTML5真的会取代Silverlight,闪存在不久的将来吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将现有Silverlight应用程序移植到HTML5中实际需要付出多少努力?在Silverlight中继续开发增强功能(大)是明智的选择吗?



我尝试了什么:



我有一个已在Silverlight中开发的工作流设计器。我已经尝试了几个HTML5现成的解决方案用于迁移目的但是效率都不高。

What effort actually will be required to port the existing Silverlight application into HTML5? Will it be wise choice to continue development in Silverlight for the enhancements(big)?

What I have tried:

I have a workflow designer already developed in Silverlight. I have tried several HTML5 ready-made solutions for the migration purpose but neither is too efficient.

推荐答案

需要做多少工作取决于Silverlight应用程序的开发方式。



如果应用程序逻辑位于Silverlight应用程序使用的WCF服务中,则可以减少工作量,因为您可以在HTML5中重建UI并重新使用相同的服务。



如果所有逻辑都内置在UI层中,那么你就有了更大的工作。



所以这一切都取决于应用程序的大小和它的架构。



至于标题中的问题。 HTML5会取代Silverlight吗?



答案是肯定的。但Silverlight也不会取代HTML。目前,Silverlight具有一定的优势,它可以流式传输和呈现实现数字媒体权利的媒体内容。它还支持高级双向绑定,这意味着UI更新可以由服务器驱动,而不是客户端必须轮询更改。这对于每一秒都很重要的财务决策非常重要。随着Windows 8 Metro应用程序和WinPhone应用程序的推出,Silverlight也将大力推进。但是这仍然让你无法支持其他移动平台甚至Linux,因为Moonlight可能非常古怪。



那就是说谁想要为网络编写应用程序, iOS,Android和WinPhone?所有这些平台都支持HTML5。使用HTML5缓存清单,您可以编写脱机工作的整个应用程序。这意味着如果您能够实现HTML5的功能,那么为什么不呢?然后可以不受限制地使用您的产品。
How much work will depend on how the Silverlight application was developed.

If the application logic is in a WCF service which is consumed by the Silverlight application it will be less work as you can just rebuild the UI in HTML5 and re-consume the same service.

If all the logic is built into the UI layer then you have a larger job.

So it all depends on the size of the application and it's architecture.

As for the question in the title. Will HTML5 replace Silverlight?

The answer is no. But neither will Silverlight replace HTML. At the moment Silverlight has niche in that it can stream and render media content which implements digital media rights. Also it supports advanced two way bindings which means UI updates can be event driven by the server instead of the client having to poll for the changes. This can be quite important for financial decisions where every second counts. Silverlight is also about to pushed quite heavily with Windows 8 Metro apps and WinPhone apps. But that still leave you unable to support other mobile platforms or even Linux as Moonlight can be quite quirky.

That said, who want's to write an application for the Web, iOS, Android and WinPhone? All these platforms support HTML5. With HTML5 cache manifests you can write whole applications that work offline. That means if you can achieve what it is you're trying to do with HTML5 then why not? Your product can then be consumed without restriction.


这篇关于HTML5真的会取代Silverlight,闪存在不久的将来吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆