GWT 2.1 中包含的 MVP 框架是否会使其他 GWT MVP 框架变得多余?
GWT 2.1 包含一个 MVP 框架,其中包含 PlaceService 的实现,概述如下: Google 的 Ray Ryan 在 2009 年 Google I/O 大会上。
演讲的启发一些 MVP 框架,例如
GWT 2.1 是否使使用这些附加框架变得多余?
GWT 2.1 includes an MVP framework which includes an implementation of the PlaceService outlined by Google's Ray Ryan at Google I/O 2009.
That talk inspired some MVP frameworks like
Does GWT 2.1 make using these additional frameworks redundant?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,存在重叠,也许这些其他框架将来会变得不必要。但是,从实际角度来看,迄今为止,似乎没有太多使用 2.1 新功能的可靠示例。在我当前的项目中,我们花了一点时间评估 2.1 MVP 构造,并决定使用 GWT-presenter 框架,因为使用 Hupa 邮件客户端。
不幸的是,所有这些框架似乎都缺乏可靠的文档。它们似乎都为您提供了一个简单的 Hello World 示例,但没有向您展示执行简单示例之外的任何操作所需的基本细节。学习的唯一方法是挖掘代码。
Yes, there is overlap, and perhaps those other frameworks will become unnecessary down the road. But, from a practical perspective, to date there don't seem to be too many solid examples that use the new 2.1 features. On my current project we spent a little time evaluating the 2.1 MVP constructs and settled on using the GWT-presenter framework because we were able to make progress a lot faster using examples such as the Hupa mail client.
Unfortunately, all of these frameworks seem to lack solid documentation. They all seem to give you a trivial Hello World example, without showing you the essential details necessary to do anything more than a trivial example. The only way to learn is to dig through code.
我目前正在开发一个用 GWT 编写的小型网站,后端使用 Sring(用于安全和依赖注入),前端使用 GIN。
当我迁移到 GWT 2.1 时,我花了 1 天的时间从旧的 MVP 框架更改为集成框架。我作为参考的示例是GWT 网站上的示例。
当然,这需要一些时间来切换,但是与我见过的其他解决方案相比,它会产生更小、更干净的代码
I'm currently working on a small website written in GWT using Sring(For Security and Dependency injection) at the backend and GIN at the frontend.
When I migrated to GWT 2.1 I took 1 day to change from my old MVP framework to the integrated one. The example I took as a reference was the one at the GWT website.
Of course it takes you some time to switch, however it results in smaller, cleaner code than with other solutions I've seen