小程序值得研究吗?
我是网络开发新手,我需要学习小程序吗?
I am a fresher in web developing , is I ve to study applets?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我是网络开发新手,我需要学习小程序吗?
I am a fresher in web developing , is I ve to study applets?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
如果您是 Java 人员,也许可以看看 JavaFX(尽管目前还不清楚该技术是否会比 applet 更受欢迎)。
如果您是网页设计人员,在熟悉 Flash 和 HTML5 之前就别想了。小程序在这一点上还很边缘化。
If you are a Java person, maybe look at JavaFX instead (even though it is not clear yet if that technology will take off any more than applets did).
If you are a web design person, do not even think about it before you got acquainted with Flash and HTML5. Applets are quite marginal at this point.
大多数人都说不,但我仍然看到 Applet 的许多伟大用途,并且事实上已经看到在 Applet 上下文中编写的非常复杂的商业 UI。
Most folks say no, but I still see a lot of great uses for Applets and in fact have seen really complex commercial UIs coded within the context of an applet.
简而言之,不,小程序对于通用网络来说是一种死技术。
在具有大量带宽和受控客户端环境的 Intranet 上,它们可能有一些有效的用途。
看看 Google Web Toolkit (GWT) 作为创建小程序的替代方案。
Adobe Flex 现在也是一个不错的选择。
in a short word, no, applets are a dead technology for the general purpose web.
on intranets with lots of bandwith and controlled client environments they maybe of some valid use.
look at Google Web Toolkit (GWT) as an alternative to creating applets.
Adobe Flex is also a good alternative now.
如果您想要嵌入式客户端应用程序,Java Web Start(更好的 Google 关键字是 JNLP)或多或少是传统 Java Applet 的继承者。替代方案是 Adobe Flash 和 MS ClickOnce。
如果您想要一个RIA(富互联网应用程序),那么JavaFX 是更好的基于 Java 的选择。替代方案是 MS SilverLight、Adobe Air 和 Adobe Flex。
If you want an embedded client application, the Java Web Start (the better Google keyword is JNLP) is less or more the successor of the legacy Java Applet. Alternatives to this are Adobe Flash and MS ClickOnce.
If you want an RIA (Rich Internet Application), then JavaFX is the better Java based choice. Alternatives to this are the MS SilverLight, Adobe Air and Adobe Flex.
除了JavaFX、Flash之外,您还可以了解Adobe AIR和Microsoft Silverlight。它们在某种程度上扩展了早期仅使用 Flash 所能达到的极限
Apart from JavaFX, Flash, you can learn about Adobe AIR and Microsoft Silverlight. They are kind of extending the limits of what was earlier possible with just Flash
据我所知,还有一件事是 Java 小程序可以做而 Silverlight、Flex(非 AIR)等不能做的:
从文件系统拖放。
Flex 提供基于 ao/s 的浏览和选择文件系统访问。 Silverlight 也有类似的功能。但据我所知,如果您希望用户将文件从 Windows 资源管理器等拖动到基于网站的控件中,Java 小程序几乎是您唯一的选择。您可以使用 Adobe AIR 创建一个基于 Flex 的应用程序,该应用程序可以在操作系统浏览和选择对话框之外询问文件系统,但我不相信 AIR 安装库足够。可能取决于您的目标客户(早期采用者,安装您所说的任何内容,而不是在其工作站上锁定 IT 的稳定企业用户)。
如果有人知道其他情况,请评论!
但要回答最初的问题,除非您需要将文件系统拖放到 Web 功能,否则我会将您的时间花在 Flex 上。 Silverlight 和 Java FX 无法与 Flash 竞争市场渗透率。由于 Flex 编译为闪存,因此它具有非常高的安装基础(超过 95% 的支持互联网的计算机),并且其基础经常更新到最新版本。将 Flash 文件插入浏览器比神秘的小程序更容易。
There is still one thing that I know of that a Java applet can do and Silverlight, Flex (non-AIR), etc can't do:
Drag and drop from the filesystem.
Flex offers a o/s based browse and select filesystem access. Silverlight has a similar functionality. But to the best of my knowledge if you want the user to drag a file from Windows Explorer etc. into a web-site based control, Java applets are pretty much your only choice. You could create a Flex based app using Adobe AIR that can ask the filesystem outside the o/s browse and select dialog but I'm not convinced the AIR install base is adequate yet. Probably depends on your target customer (early adopter, install whatever you say to vs. stable corporate user with IT lockdown on their workstation).
If someone knows otherwise for certain, please comment!
But to answer the original question, unless you need the drag and drop filesystem to web functionality, I would spend your time on Flex. Silverlight and Java FX can't compete with Flash for market penetration. Since Flex compiles to flash, it has a very high install base (>95% of internet enabled computers) and its base updates to the newest version frequently. Inserting a flash file into a browser is a easier than the arcane art of applets.
如果您想要/可能找到一份维护旧应用程序的工作,那么您可能会处理小程序。
对于新项目,不要靠近它。
if you want/might get a job where you maintain old applications then probably you will deal with Applets.
For new projects, dont get close to it.