SAP UI5 与其他 Javascript 框架的比较?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21557156/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SAP UI5 versus other Javascript frameworks?
提问by subh
Just wanted to understand where does SAPUI5stand as a framework.
只是想了解SAPUI5作为框架的位置。
(1)Is it like jQuery (library with host of utility functions, effects, animations etc) or (2)Is it like a MVC library like Backbone,Angular,Ember etc?
(1) 它像 jQuery(具有许多实用功能、效果、动画等的库)还是(2)它像 Backbone、Angular、Ember 等 MVC 库?
- If 1, then how could it possibly supersede jQuery?
- If 2, then what advantages & disadvantages would it have over these other frameworks.
- 如果是 1,那么它怎么可能取代 jQuery?
- 如果是 2,那么它与这些其他框架相比有什么优点和缺点。
Apart from the fact that it's SAP's proprietary framework what really i would like to know is the principles & philosophy behind this framework, and how does it stand the test of time in front-end regarding-
除了它是 SAP 的专有框架这一事实之外,我真正想知道的是该框架背后的原则和理念,以及它如何在前端经受时间考验——
- MV* philosophy of building applications
- building single-page applications
- learning curve along with other frameworks like Backbone, Angular (I mean if i learn SAPUI-5 does my learning curve for other frameworks increase or decrease or how can it affect that)
- MV* 构建应用程序的理念
- 构建单页应用程序
- 与 Backbone、Angular 等其他框架的学习曲线(我的意思是,如果我学习 SAPUI-5,我对其他框架的学习曲线会增加还是减少,或者它会如何影响)
And lastly can (if there is!) I create an ecosystem of SAPUI5 with other frameworks.
最后可以(如果有的话!)我可以用其他框架创建一个 SAPUI5 生态系统。
回答by qmacro
This is rather a large question that is in danger of having a very long answer, one which is also subject to opinion as well as fact. But I'll have a go.
这是一个相当大的问题,有可能有一个很长的答案,这个问题也受制于意见和事实。但我会去试一试。
First there's the "which toolkit" question. There's SAPUI5which is the name of what the toolkit originally took (and still has), and this is subject to certain SAP licence restrictions. Since December 2013 there's also OpenUI5which is the Open Sourced versionof the same toolkit (minus a few things currently, but for the most part the same). And when people refer to UI5 they're collectively referring to both SAPUI5 and OpenUI5.
首先是“哪个工具包”的问题。有SAPUI5这是一个什么样的工具包最初取得(现在仍然有)的名字,这是受到一定的SAP许可限制。自 2013 年 12 月以来,还有OpenUI5,它是同一工具包的开源版本(目前减去了一些东西,但大部分相同)。当人们提到 UI5 时,他们统称 SAPUI5 和 OpenUI5。
So while "SAPUI5" is proprietary, its sibling "OpenUI5" is very much Open Source.
因此,虽然“SAPUI5”是专有的,但它的兄弟“OpenUI5”是非常开源的。
UI5 is a full featured toolkit that includes, amongst other things:
UI5 是一个功能齐全的工具包,其中包括:
- MVC
- data binding with support for JSON, XML and OData out of the box
- module loading and management
- support for component-based app creation
- internationalisation (incl. RTL support)
- routing
- different libraries of controls e.g. rich desktop-specific controls in the sap.ui.commons and sap.ui.table namespaces, plus responsive controls for smartphone/tablet/desktop in the sap.m namespace (on which the SAP Fiori application suites are built)
- MVC
- 支持 JSON、XML 和 OData 开箱即用的数据绑定
- 模块加载和管理
- 支持基于组件的应用程序创建
- 国际化(包括 RTL 支持)
- 路由
- 不同的控件库,例如 sap.ui.commons 和 sap.ui.table 命名空间中丰富的桌面特定控件,以及 sap.m 命名空间中的智能手机/平板电脑/桌面响应式控件(SAP Fiori 应用程序套件构建在该命名空间上) )
To your question on jQuery - it uses jQuery and many other libraries, and builds upon them, so it's not a competitor for jQuery or a replacement for it. In fact, from personal experience, I'm not a jQuery expert but I build apps with UI5 just fine.
对于您关于 jQuery 的问题 -它使用 jQuery 和许多其他库,并以它们为基础,因此它不是 jQuery 的竞争对手或替代品。事实上,根据个人经验,我不是 jQuery 专家,但我用 UI5 构建应用程序就好了。
To your question on advantages and disadvantages vs other MV* frameworks, I don't think there's space in this answer to tackle such a wide-ranging question.
对于您关于与其他 MV* 框架的优缺点的问题,我认为这个答案没有空间来解决如此广泛的问题。
Not sure what you mean by standing the test of time regarding MV*; MVC has been around as a concept since almost the beginning of time, so I guess that has stood the test; UI5 is relatively young (2-3 years) so still has to prove itself in terms of years, but it's doing rather well so far if you consider the large scale of app development that's happening with it in the SAP world.
不知道你所说的经得起时间考验的 MV* 是什么意思;MVC 几乎从一开始就作为一个概念存在,所以我想它已经经受住了考验;UI5 相对较年轻(2-3 年),因此仍然需要在年限方面证明自己,但如果您考虑到 SAP 世界中正在发生的大规模应用程序开发,它到目前为止做得相当不错。
Learning curve? I'm traditionally a backend / integration developer and I picked up UI5 without too much bother. Difficult to answer the question without knowing your skillset and desire to embrace it.
学习曲线?我传统上是一名后端/集成开发人员,我选择 UI5 并没有太多麻烦。在不了解您的技能和接受它的愿望的情况下很难回答这个问题。
Ecosystem inside SAPUI5? Not sure I understand that question.
SAPUI5内的生态系统?不确定我是否理解这个问题。
Hope that helps a bit.
希望那些对你有帮助。