Can Ruby be used to develop simple Windows applications?

I have been developing Windows-based applications for a long time, and most of my current clients still want to use a Windows desktop or client / server application. Is it possible to use Ruby for such applications, unlike its main goal - to be a web programming language?

+3
source share
7 answers

Ruby is not primarily a web programming language, although Ruby on Rails is certainly suitable for web development. Ruby is a general-purpose scripting language.

FXRuby and WxRuby frameworks are the most full-featured graphical interfaces for Ruby. You can write applications in Ruby and then generate a Windows executable. Frames are cross-platform, so you can also run applications written on them on other platforms such as Linux or Mac OS X.

There are also several other less popular approaches, such as QtRuby and Shoes, and you can even use IronRuby (CLR Ruby implementation) to write a .Net application.

+11
source

Ruby is an object-oriented general-purpose scripting language. Ruby on Rails is a web application framework. Ruby precedes Rails by about ten years. Do not confuse them.

+4

, . Ruby - . Ruby, .

, , . Ruby Ruby , , Ruby , - Ruby.

+2

mac Ruby Cocoa lib (, -,) . , -, , ​​ qt.

Qt . - http://www.darshancomputing.com/qt4-qtruby-tutorial/

. , , . http://shoes.heroku.com/ - -.

. , AWOL, , . . -.

+1

Ruby , Windows -.

Windows IronRuby, .NET Silverlight, , , . IronRuby Windows Presentation Foundation (WPF) WinForms.

- Ruby QT, FOX .

+1

, , , Ruby GUI, QtRuby. , , , . , ( gem, Qt ..). :

  • : -, , 2008 ~ 2 , ( ssl/https /...)
  • Ocra: , , .
  • tar2rubyscript + rubyscript2exe. , , , , GUI, ( , Tk/GTK/wxRuby), ; , Qt:: UiLoader, , .ui-, QtDesigner, ...

Yes, I am angry and upset honestly, because I see no reason to create software that you simply cannot release for anyone. Now I am running out of a week, and I just hope that over time it will port the application to C ++.

So my answer is: do not use QtRuby. At least for now.

+1
source

You should look at IronRuby - WPF and window formats are supported:

0
source

Source: https://habr.com/ru/post/1721585/


All Articles