Ruby对GUI开发有好处吗? [英] Is Ruby any good for GUI development?

查看:57
本文介绍了Ruby对GUI开发有好处吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑创建一个我希望跨平台的基于GUI的工具。我已经辞退了Java,因为我个人不喜欢Swing。我目前正在考虑使用C#,并使用Mono使其跨平台。但是,我想知道像Ruby这样的新型跨平台语言能否为我提供一个体面的GUI开发环境。

I am considering creating a GUI-based tool that I want to be cross-platform. I've dismissed Java, as I personally do not like Swing. I'm currently considering C# and using Mono to make it cross-platform. However I'm wondering whether new-fangled cross-platform languages like Ruby can offer me a decent GUI development environment.

推荐答案

简短的答案:不(因为您说过跨平台)。

长答案:跨平台GUI是一个古老的问题。 Qt,GTK,wxWindows,Java AWT,Java Swing和XUL都遭受相同的问题:最终的GUI并非在所有平台上都是原生的。更糟糕的是,每个平台的外观都略有不同,因此,即使您能够以某种方式获得在每个平台上看起来都是本机的工具包,也必须以某种方式将应用程序编码为感觉在每个平台上都是本地的。

The long answer: cross-platform GUIs are an age-old problem. Qt, GTK, wxWindows, Java AWT, Java Swing, XUL -- they all suffer from the same problem: the resulting GUI doesn't look native on every platform. Worse still, every platform has a slightly different look and feel, so even if you were somehow able to get a toolkit that looked native on every platform, you'd have to somehow code your app to feel native on each platform.

这取决于一个决定:您是否要最大程度地减少开发工作,并拥有外观和外观都没有的GUI?在每个平台上都感觉很不错,还是您想最大化用户体验?如果选择第二个选项,则需要为每个平台开发一个通用后端和自定义UI。

It comes down to a decision: do you want to minimise development effort and have a GUI that doesn't look and feel quite right on each platform, or do you want to maximise the user experience? If you choose the second option, you'll need to develop a common backend and a custom UI for each platform.

ruby​​对于通用后端来说并不是一个不错的选择。

ruby is not a bad choice for your common backend.

这篇关于Ruby对GUI开发有好处吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆