机械腿 vs 欧芹

发布于 2024-09-05 02:53:33 字数 179 浏览 6 评论 0 原文

我计划在 as3 中启动一个新项目,并且我希望在该项目中进行依赖注入。我发现 parsley 和 Robotlegs 是在 AS3 中实现 DI 的两个流行框架。这两者中哪一个最好?

我的主要要求是

  1. 轻量级、
  2. 最少的学习、
  3. 广泛的文档和积极的帮助社区

I am planning to start a new project in as3 and I want Dependency Injection in the project. I found that parsley and Robotlegs are two popular frameworks for implementing DI in AS3. Which is the best one among these two?

My main requirements are

  1. lightweight
  2. minimal learning
  3. extensive documentation and active helping community

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

沫离伤花 2024-09-12 02:53:34

就框架而言,没有“最好的”。许多框架通常使用类似的设计模式,但为了实现类似的目标而实现略有不同。

框架旨在解决开发中的问题。首先,你需要决定你要解决什么问题;然后你可以评估框架,看看它们是否能帮助你解决这些问题。很多时候答案是肯定的。

从受欢迎程度来看; Robotlegs 是目前 Flex 社区的“宠儿”;但欧芹几乎没有产生任何影响。但是,受欢迎程度与解决项目特定问题几乎没有关系。

There is no "Best one" when it comes to frameworks. Many frameworks often use similar design patterns, but have a slightly different implementation of them to accomplish similar goals.

Frameworks are designed to solve problems in development. First, you need to decide what problems you're trying to solve; then you can evaluate frameworks to see if they will help you solve those problems. Many times the answer is yes.

In terms of popularity; Robotlegs is the current "Darling" of the Flex Community; but Parsley has barely made a dent. But, popularity hardly relates to solving the problems specific to your project.

蝶舞 2024-09-12 02:53:34

证明我是否错了,但对我来说,欧芹似乎经过了更多的单元测试。至于学习曲线的陡度,两者非常相似 - 当仅关注基本功能时,经验丰富的 Flex 开发人员应该能够在一两天内掌握它。

Prove me if I'm wrong, but to me Parsley seems way more unit-tested. As to the learning curve steepness both are quite similar - when focused only on the basic features an experienced Flex developer should be able to pick it up in a matter of a day or two.

溺渁∝ 2024-09-12 02:53:33

两者都很好。 Robotlegs 的功能较少,学习曲线也较小。 Parsley 具有更多功能和更陡峭的学习曲线。两者都有良好的文档和支持。

但它们是“应用程序”框架。如果您正在寻找的是依赖注入,您可以尝试:

Both are good. Robotlegs has fewer features and a smaller learning curve. Parsley has more features and a steeper learning curve. Both have good documentation and support.

But they are "application" frameworks. If all you are looking for is Dependency Injection you can try:

夜血缘 2024-09-12 02:53:33

根据您的列表,RL 是可能的选择。欧芹是一个具有大量功能的“厨房水槽”。 Rl 相当稀疏地提供基本的 DI 和消息传递工具。

我用这两个框架编写了一个图像库示例。 Robotlegs 版本有多种变体。

http://joelhooks.com/2009/07/14/inversion-of-control-and-dependency-injection-with-flex-using-the-parsley-application-framework-part-2/

http://joelhooks.com/2009/07/17/robotlegs-as3-a-dependency-injection-driven-mvcs-framework-for-flashflex-–-inspired-by-puremvc/

http://joelhooks。 com/2010/01/16/robotlegs-image-gallery-example-using-as3-signals-and-the-presentation-model/

http://joelhooks.com/2010/06/16/do-you-need-metadata-as3-robotlegs/

Just based on your list RL is the likely choice. Parsley is a "kitchen sink" with tons of functionality. Rl is fairly sparse providing basic DI and messaging tools.

I've written an image gallery example with both frameworks. There are several variations with the Robotlegs version.

http://joelhooks.com/2009/07/14/inversion-of-control-and-dependency-injection-with-flex-using-the-parsley-application-framework-part-2/

http://joelhooks.com/2009/07/17/robotlegs-as3-a-dependency-injection-driven-mvcs-framework-for-flashflex-–-inspired-by-puremvc/

http://joelhooks.com/2010/01/16/robotlegs-image-gallery-example-using-as3-signals-and-the-presentation-model/

http://joelhooks.com/2010/06/16/do-you-need-metadata-as3-robotlegs/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文