客户端Java与(Adobe)Flash为Web应用程序,什么选择和何时 [英] Client Java vs (Adobe) Flash for web applications, what to choose and when
问题描述
现在我看到一个大网站的Google Analytics(分析)统计数据,它告诉大约98%的用户安装了Java。
这些统计数据是非常偏向Javascript的使用?据我了解,Google Analytics(分析)只会测量使用Javascript的用户。
其他大型网站的图片是否相似? > 客户端Java与Flash相比有没有阻止缺点?编辑:我的意思是java applets主要是java WebStart似乎不是适用于普通用户。
我提到Javascript只是为了描述Google Analytics的工作方式。 我写了我的文凭项目,我不得不在Flash和Java小程序之间进行选择。这里有一些优点和缺点:$ b
$ b Java小程序:
例如:我需要显示数据包在两台路由器之间移动。数据包必须是某种类型的控件,如按钮或水平。这个动画可以在Flash中的一行代码中定义,其中所有的对象都来自一些可以动画的基础对象。我无法在Java中找到合适的解决方案。
Flash:
- [plus]真的非常专注于动画;
- [加] ActionScript实际上是一种面向对象语言
- ActionScript减肥,只有少数支持者。如果您遇到困难,请准备搜索隐晦的日语论坛以获取解决方案。 ActionBript可能是面向对象的,但它缺少很多功能,例如枚举,完全成熟的接口,线程!!!!)等。
- [闪存]被设计为供非技术人员使用 - 他们只是使用创作工具;我写了一切代码,它工作,但它是一个痛苦。
我的结论:
我非常期待动画的编程范式,丰富的客户端界面ps:Silverlight似乎到目前为止是一个失望,也许微软将注入一些$。$ / b>
A few years ago client Java was unsuitable for web development because a remarkable part of web users did not have Java installed. ( I don't remember exact numbers, more than 10%).
Now I see the Google Analytics stats for a big site and it tells that >98% of users have Java installed.
Is these stats very biased by Javascript usage? As I understand Google Analytics measure only users that has Javascript.
Is the picture similar on other big sites?
Does client Java have really "stopper" drawbacks compared to Flash?
EDIT: I mean java applets mainly, java WebStart seems to be not suitable for average user.
I mention Javascript only to describe the way Google Analytics works.
When I wrote my diploma project, I had to choose between Flash and Java Applets. Here are some pros and cons:
Java Applets:
- [plus] you program in Java, which is mature and stable
- [plus] you can use the Java GUI frameworks that pack a lot of punch
- [minus] the first time the user hits the page with the applet, the JVM must be initialized and this can take up to a few minutes even on a fast computer
- [minus] Applets are not meant to be used as animation media; sure, you can do stuff, but it is like programming in C - you do everything from scratch
example: i needed to show a data packet as it moved between two routers. The packet must be a control of some sort, like a button or smth. This animation can be defined in 1 line of code in Flash, where all objects derive from some base object that can be animated. I could not find a suitable solution in Java.
Flash:
- [plus] really really focused on animations;
- [plus] ActionScript is actually an OO language
- [minus] ActionScript is sloppy, bughish and has only a few supporters. If you are stuck, be prepared to search obscure Japanese forums for solutions
- [minus] ActionSCript may be OO, but it lacks a lot of features, like Enums, fully fledged interfaces, threads (!!!!) etc.
- [minus] Flash was designed to be used by non-tech people - they just use the authoring tool; I wrote code for everything and it worked, but it was a pain.
My conclusion:
I eagerly await a programming paradigm for animations and rich client interfaces.
ps: Silverlight seems to be a disappointment so far, maybe Microsoft will inject some $ into it.
这篇关于客户端Java与(Adobe)Flash为Web应用程序,什么选择和何时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!