Since Rails is already an effective Rich Internet Application framework because of the way it makes Ajax so easy, what is the argument for combining Rails with Flex and using Flex as the front end instead of HTML? A programmer friend of mine said he uses this combination because Flex is great for RIAs. My argument is that Rails is already great at that - why add additional complexity? Another big disadvantage of doing this, it seems, is that you cannot use HTML in your front end any longer because Flex makes this extremely problematic. That seems like a very high price to pay for whatever benefits this combination of technologies offers.
由于Rails已经是一个有效的富Internet应用程序框架,因为它使Ajax变得如此简单,将Rails与Flex结合并使用Flex作为前端而不是HTML的理由是什么?我的程序员朋友说他使用这种组合是因为Flex非常适合RIA。我的论点是Rails已经很好了 - 为什么要增加额外的复杂性?这样做的另一个重大缺点是,您不能再在前端使用HTML了,因为Flex使这个问题极其严重。对于这种技术组合提供的任何好处,这似乎是一个非常高的代价。
3 个解决方案
#1
It all depends on your definition of what a RIA (Rich Internet Application) really is. To some, an AJAX enable web application might fit the bill. To others, a RIA includes highly stylized elements, a high level of interactivity, and a good bit of animation.
这完全取决于您对RIA(富互联网应用程序)的真正定义。对某些人来说,支持AJAX的Web应用程序可能符合要求。对于其他人来说,RIA包括高度风格化的元素,高水平的交互性和一些动画。
If you're one of the people that think along the lines of the first requirements, then great. An AJAX enabled RoR app is going to be enough for your RIA. For those who belong to the second group, RoR is yet another way to provide the data backend for a RIA that uses Flex/Flash for it's presentation.
如果你是按照第一个要求思考的人之一,那就太好了。支持AJAX的RoR应用程序足以满足您的RIA需求。对于那些属于第二组的人来说,RoR是另一种为使用Flex / Flash进行演示的RIA提供数据后端的方法。
Personally, I believe that RoR combined with Flex is going to give you a much richer, dynamic, and engaging RIA than a standard AJAX enabled web application.
就个人而言,我相信RoR与Flex相结合将为您提供比标准的支持AJAX的Web应用程序更丰富,更动态,更具吸引力的RIA。
#2
I think you want to consider this in terms of what your client app needs to do. If you can accomplish everything you need within rails, then there's no real need to go to flex. If you need more client-side control, then you can build a flex app and make the rails app just a web service.
我想你想要根据你的客户端应用程序需要做什么来考虑这个问题。如果你可以在rails中完成所需的一切,那么就没有必要去弯曲。如果您需要更多的客户端控制,那么您可以构建一个flex应用程序并使rails应用程序只是一个Web服务。
#3
I wasn't aware people used Flex and rails all that much. But using Flash/Flex does give you a bit more processing and visualization power. Also, you can have native AMF support from Flex for efficient data transfer.
我不知道人们使用Flex和rails这么多。但使用Flash / Flex确实可以为您提供更多处理和可视化功能。此外,您可以从Flex获得本机AMF支持,以实现高效的数据传输。
#1
It all depends on your definition of what a RIA (Rich Internet Application) really is. To some, an AJAX enable web application might fit the bill. To others, a RIA includes highly stylized elements, a high level of interactivity, and a good bit of animation.
这完全取决于您对RIA(富互联网应用程序)的真正定义。对某些人来说,支持AJAX的Web应用程序可能符合要求。对于其他人来说,RIA包括高度风格化的元素,高水平的交互性和一些动画。
If you're one of the people that think along the lines of the first requirements, then great. An AJAX enabled RoR app is going to be enough for your RIA. For those who belong to the second group, RoR is yet another way to provide the data backend for a RIA that uses Flex/Flash for it's presentation.
如果你是按照第一个要求思考的人之一,那就太好了。支持AJAX的RoR应用程序足以满足您的RIA需求。对于那些属于第二组的人来说,RoR是另一种为使用Flex / Flash进行演示的RIA提供数据后端的方法。
Personally, I believe that RoR combined with Flex is going to give you a much richer, dynamic, and engaging RIA than a standard AJAX enabled web application.
就个人而言,我相信RoR与Flex相结合将为您提供比标准的支持AJAX的Web应用程序更丰富,更动态,更具吸引力的RIA。
#2
I think you want to consider this in terms of what your client app needs to do. If you can accomplish everything you need within rails, then there's no real need to go to flex. If you need more client-side control, then you can build a flex app and make the rails app just a web service.
我想你想要根据你的客户端应用程序需要做什么来考虑这个问题。如果你可以在rails中完成所需的一切,那么就没有必要去弯曲。如果您需要更多的客户端控制,那么您可以构建一个flex应用程序并使rails应用程序只是一个Web服务。
#3
I wasn't aware people used Flex and rails all that much. But using Flash/Flex does give you a bit more processing and visualization power. Also, you can have native AMF support from Flex for efficient data transfer.
我不知道人们使用Flex和rails这么多。但使用Flash / Flex确实可以为您提供更多处理和可视化功能。此外,您可以从Flex获得本机AMF支持,以实现高效的数据传输。