以 Rails 作为后端实施 RIA 的最佳技术选择?

发布于 2024-08-18 11:38:15 字数 247 浏览 8 评论 0原文

我正在开发一个需要功能丰富的媒体视图的应用程序,包括图像、视频和基于捕获时间的平滑排序。后端目前是用 Rails 编写的。

目前在后端使用 Rails 实现 RIA 的最佳、最成熟的选择是什么?我研究过 Flex、Laszlo 和 ExtJS。 ExtJS 对我来说很有趣,因为我真的不喜欢纯 Flash UI,但它似乎高度针对商业应用程序,而不是像这样的娱乐应用程序。

来自其他从事类似工作的人的任何建议或见解将非常感激。

谢谢!

I'm working on a application that requires a feature-rich media view, including images, videos, and smooth sequencing based on capture time. The backend is currently written in Rails.

What's currently the best, most mature option for implementing RIAs with Rails on the backend? I've looked at Flex, Laszlo, and ExtJS. ExtJS is interesting to me because I'm really not a fan of pure Flash UIs, but it seems highly targeted towards business apps, not entertainment applications like this.

Any suggestions or insights from others doing similar efforts will be very much appreciated.

Thanks!

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

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

发布评论

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

评论(8

夏尔 2024-08-25 11:38:15

我第二次推荐 zdmytriv 那本书《Flexible Rails》,这本书太棒了。虽然它现在已经相当过时了,但它展示了使用 Flex 和 Rails 创建可靠的项目管理应用程序是多么简单。那里的一切现在都变成了“RestfulX”。

看看 RestfulX,这是必须的。 RestfulX Google 群组也非常活跃,并且让一切变得轻松起来。

我们使用 RestfulX 在 Flex 中构建了这个网站,这非常简单。该应用程序使用 Rails Paperclip gem 在 Flex 管理面板中进行图像处理,例如 ScrapBlog (Scrapblog 内置于Flex),我们可以使用 Flex 4 中内置的一些很酷的布局效果。RestfulX 使这变得非常简单,而 gems 使它变得更加容易:p。他们也有像 Rails 这样的生成器,因此使用 5 分钟内完成类似 DataGrid/CMS 的界面

我对您提到的其他事情一无所知,但我确实知道现在将 Flex 与 Rails 集成起来非常有趣且容易。

顺便说一句,您也可以使用 Flex 和 Rails 进行硬核 SEO,这要归功于 SWFAddress。我们正在通过上面的网站来做到这一点。

干杯

I second zdmytriv for that book Flexible Rails, it's awesome. It's fairly outdated now though but lays out how simple it is to create a solid Project Management application with Flex and Rails. Everything in there has now become "RestfulX".

Check out RestfulX, it's a must. The RestfulX Google Group is very active too and they've made a lot easy.

We built this website in Flex with RestfulX and it was very easy. That application uses the Rails Paperclip gem to do image processing in a Flex admin panel like ScrapBlog (Scrapblog was built in Flex), and we could use some cool layout effects built into Flex 4. RestfulX made that pretty easy, and the gems made it even easier :p. They have generators too like Rails so it's real easy to get up and running with a DataGrid/CMS-like interface in 5 minutes.

I don't know anything about the other things you've mentioned, but I do know that it's pretty fun and easy to integrate Flex with Rails now-a-days.

As a side note, you can do hardcore SEO with Flex and Rails too, thanks to SWFAddress. We're doing that with that site above.

Cheers

狼亦尘 2024-08-25 11:38:15

我可以推荐 Flex 以及这本书 Flexible Rails,整本书专门介绍 Flex铁路合作。 此处 中的示例应用程序列表

灵活导轨 http://ecx.images-amazon.com/images/I/51QysfVDlVL._SL500_AA240_.jpg

I can recommend Flex and also this book Flexible Rails, whole book dedicated Flex with Rail cooperation. List of sample applications from the book here

Flexible Rails http://ecx.images-amazon.com/images/I/51QysfVDlVL._SL500_AA240_.jpg

执着的年纪 2024-08-25 11:38:15

如果您认真考虑将 Ext 作为一种选择,您应该真正搜索并可能在他们的论坛中发布有关其他人使用 Rails 的信息,我知道有不少人成功地做到了这一点。我刚刚遇到这个例子,它看起来像是一个相当成熟的例子应用程序就是这样做的,所以这绝对是可能的。

在不确切知道您想要做什么的情况下,我认为就 Ext 附带的开箱即用小部件而言,说 Ext“针对商业应用程序”是一个公平的一般性陈述。它非常适合基于窗口/表单的 Ajax 应用程序。也就是说,Ext Core 与 jQuery 和其他核心框架非常相似,Ext 中的所有内容都被构建为高度可扩展的(因此,“ext”)。就能够利用它构建您需要的东西而言,它非常强大且灵活。您当然可以轻松实现 Flash 查看器,并且现有的插件可以做到这一点。

听起来 Toby 对 Ext 的体验很糟糕,但许多其他人喜欢它,并且发现它非常自然地编写代码。语法在某些方面肯定具有 Java/C# 风格(尽管很难直接比较任何 JS 框架)静态语言),它根源于 YUI(更冗长)。对于来自 C 语言背景的人来说,这可能会感觉非常舒服。如果你更习惯 Python 或 Ruby 或其他东西,那么它可能不会那么令人愉快,我不知道。有些事情你必须自己尝试一下。

If you're serious about considering Ext as an option, you should really search and maybe post in their forums about others using Rails, I know there are quite a few doing so successfully. I just ran across this example that seems like a pretty fully-baked app doing just that, so it's definitely possible.

Without knowing exactly what you're trying to do, I think that saying Ext is "targeted towards business apps" is a fair general statement, in terms of the widgets that come with it out of the box. It's highly geared toward window/form-based Ajax apps. That said, Ext Core is very similar to jQuery and other core frameworks, and everything in Ext is built to be highly extensible (hence, "ext"). In terms of being able to build what you need off of it, it is very powerful and flexible. You can certainly implement a flash viewer easily, and there are existing plugins that will do exactly that.

Sounds like Toby had a bad experience with Ext, but many other people enjoy it and find it very natural to code in. The syntax definitely has a Java/C# flavor to it in some ways (although it's really hard to directly compare any JS framework to a static language), and it has roots in YUI (which is even more verbose). For someone coming from C-ish backgrounds, it will likely feel very comfortable. If you're more used to Python or Ruby or something else, then it might not be as enjoyable, I don't know. Something you'd have to try for yourself.

酒儿 2024-08-25 11:38:15

看看 themidnightcoders.com 上的 WebOrb。在众多功能中,它允许使用 AMF 协议进行数据序列化。抽烟的速度很快。

IMO,如果您想要真正的 RIA 体验,您需要关注 Flex 或 Silverlight。各有利弊。

Take a look at WebOrb from themidnightcoders.com. Among many features, it allows for AMF protocol for serialization of data. It is smoking fast.

IMO, if you want a true RIA experience, you'll need to focus on either Flex or Silverlight. There are pros and cons to each.

擦肩而过的背影 2024-08-25 11:38:15

我不久前做了一个 GWT 项目,现在正在使用 Ext。我有一些 C# / Swing GUI 经验,但没有 Flash 经验。

我非常喜欢Ext。它看起来很棒,而且我发现它的编程模型非常接近 C# 和 Swings 世界,所以很熟悉并且相当令人愉快。该文档并不出色,但绝对足够好。至少对于 Java 来说,有一个可靠的远程处理机制(第三方,称为 DJN...很可能还有其他机制)。到处都有一些小错误。

主要的负面因素是支持。他们有一个论坛,但有大量令人痛苦的问题没有得到解决。他们理论上已经支付了支持,但对基本的“你的付费支持如何运作”类型的问题反应迟钝,我不鼓励购买任何这些问题。据我所知,只有一本书,看起来很有前途,但还没有出版。

我发现 GWT 令人印象深刻并且没有遇到任何真正的问题,但最终我对 Ext 更满意。

I did a GWT project a while back and am working with Ext right now. I have some C# / Swing GUI experience, none in Flash.

I like Ext a lot. It looks great, and I found the programming model close enough to the C#'s and Swings of the world as to be familiar and fairly pleasant. The documentation is not excellent, but definitely good enough. For Java at least, there is a solid remoting mechanism (third party, called DJN... most likely there are others, too). A couple of minor bugs here and there.

The major negative is support. They have a forum but there are a distressingly large number of questions and problems that go unresolved. They have paid support in theory, but were sufficiently unresponsive to basic 'how does your paid support work' type questions that I was not encouraged to buy any. There is only one book that I know of, it looks promising but it is not out yet.

I found GWT impressive and had no real problems, but at the end of of the day I am much happier with Ext.

只是在用心讲痛 2024-08-25 11:38:15

您看过 Google Web Toolkit 了吗?在我看来,这是构建丰富且高性能的 Web 应用程序的好方法。该工具包相当成熟(Google Wave 就是用它构建的),并且有很多好的工具可以使开发变得容易。

这里之前的 Stakoverflow 帖子。

Have you taken a look at Google Web Toolkit yet? In my opinion it's a great way to build rich and performant web applications. The toolkit is quite mature (Google Wave is build with it) and has a lot of good tools to make development easy.

Here's a previous Stakoverflow post.

甜是你 2024-08-25 11:38:15

我不知道最好的,但我用 ExtJS 做了一个项目,并且讨厌它的每一分钟。令人沮丧的冗长代码、过于复杂的编程模型、混乱的文档,并且很难让它做任何它不想做的事情。

也就是说,它看起来非常棒,拥有非常强大的小部件,客户和用户都喜欢它。

我根本就没有帮忙吧?

我认为如果您的要求包括对视频和音频进行任何处理,那么您将需要 Flash 解决方案。

I don't know about best, but I did a project using ExtJS and hated every minute of it. Frustratingly verbose code, overly complicated programming model, confusing documentation, and difficult to make it do anything it didn't want to.

That said, it looks very awesome, has incredibly powerful widgets and the client and users loved it.

I haven't helped at all, have I?

I think if you requirements include doing anything with video and audio, you are going to need a Flash solution.

偏闹i 2024-08-25 11:38:15

看一下 netzke —— 使用 Sencha Ext JS 和 Ruby on Rails 的客户端-服务器组件。

Netzke 是一个框架,可以将客户端和
服务器端代码(分别为 JavaScript 和 Ruby)转换为可供使用的代码
图形用户界面组件。它对于创建复杂的、丰富的数据最有用
后端使用 Ruby on Rails 和 Sencha 的后端应用程序
浏览器中的 Ext JS。

Take a look at netzke -- client-server components with Sencha Ext JS and Ruby on Rails.

Netzke is a framework that allows for a beautiful blend of client- and
server-side code (JavaScript and Ruby, respectively) into ready-to-use
GUI components. It's most useful for creating complex data-rich
backend applications with Ruby on Rails on the back end, and Sencha
Ext JS in the browser.

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