可扩展 JavaScript 应用程序架构的良好实现(尼古拉斯·扎卡斯的沙箱)?

发布于 2024-12-24 02:31:14 字数 1539 浏览 8 评论 0原文

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

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

发布评论

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

评论(2

梦里梦着梦中梦 2024-12-31 02:31:14

我是boilerplateJS 的作者。在完成了几个复杂的 JS 项目之后,我想将我在 JS 中构建复杂应用程序的经验总结为一个开源参考架构。 BoilerplateJS 处理 Nicholas 讨论的所有问题,但不限于其中提出的想法。

BoilerplateJS 允许您将复杂的产品套件构建为产品模块和 UI 组件。参考架构代码库中实现了几个可遵循的示例。

http://boilerplatejs.org/

它处理的其他问题包括:
- 构建解决方案
- 创建模块层次结构
- 依赖管理
- 基于事件的消息传递,
- 路由和嵌入式组件
- 单元测试
- 本地化
- 文档生成
- JS 优化和混淆

在此处查看实际效果:
http://boilerplatejs.org/samples/productsuite/index.html

I'm the author of boilerplateJS. After couple of complex JS projects, I wanted to compile my experience in building complex application in JS as a open source reference architecture. BoilerplateJS handles all concerns that are discussed by Nicholas, but not restricted to the ideas presented there.

BoilerplateJS lets you to structure your complex product suite in to product-modules and UI components. There are several samples implemented to follow in the reference architecture code base.

http://boilerplatejs.org/

Among other concerns it handles are:
- structuring the solution
- creating a module hierarchy
- Dependency management
- Event based messaging,
- Routing and embeddable components
- Unit testing
- Localization
- Document generation
- JS optimizations and obfuscation

See it in action here:
http://boilerplatejs.org/samples/productsuite/index.html

芸娘子的小脾气 2024-12-31 02:31:14

我对 Zakas 对该理论的不同实现进行了比较。

我比较过...

  1. ScaleApp
  2. Kernel.js
  3. 非常好

在检查了所有优点和缺点后,我决定使用 Hydra.js (我需要轻松扩展模块),但最重要的是了解您对这些类型的框架的需要/期望并进行自己的比较。

这些是我检查的主题:

  • 与框架无关
  • 文档
  • 大小
  • 趋势
  • 允许多个模块实例
  • 更少的耦合 模块
  • 的简单测试
  • 单元测试
  • 研讨会/视频/演示/幻灯片
  • 可扩展(插件或类似)
  • 允许扩展模块
  • 公司支持
  • 最小化版本
  • 许可证
  • 社区
  • 项目成熟度
  • 最后
  • 提交 博客/网络中
  • 提及Github
  • 依赖
  • 项 观察者
  • 分叉/开发团队规模
  • 错误管理器
  • 异步模块加载
  • Deferred-Promise 集成
  • 可以在浏览器和 Node.js 中使用

如果需要更多请告诉我 帮助。

更新:

我正在检查 Addyosmani 的开发预览版 'Backbone Aura' 中的新框架

I have done a comparison about different implementations of this theory by Zakas.

I've compared...

  1. ScaleApp
  2. Kernel.js
  3. Terrifically

After checking all pros and cons I decided to use Hydra.js (I needed to extend modules easily), but the most important is to know what do you need/expect of these type of frameworks and make your own comparison.

These are the topics I checked:

  • Framework agnostic
  • Documentation
  • Size
  • Trending
  • Allow multiple module instances
  • Less coupling
  • Easy testing of modules
  • Unit tested
  • Workshop/Video/Demos/Slides
  • Extensible (plugins or similar)
  • Allow extension of modules
  • Company Support
  • Minimized versions
  • License
  • Community
  • Maturity of project
  • Last commit
  • Mentions in blogs/webs
  • Github
  • Dependencies
  • Watchers
  • Forks / Development Team Size
  • Error Manager
  • Async modules load
  • Deferred-Promise integration
  • Can be used in Browser and Node.js

Tell me if need more help.

Update:

I'm checking a new framework that is in development preview 'Backbone Aura' from Addyosmani

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