Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Ruby applications for Windows

I want to develop a Windows application. Honestly I care little about cross-platforms for now (but still would be good)

I want to use Ruby, since it has quite a simple syntax and is so.. well, simple and easy to learn.

My application is like a "game level creator", where you can design your own level and then run it with another application which is a "game level player" by reading the project file created by the creator app. You get the idea.

Now, I got a new PC and is completely clean. Absolutely no trace of my old Ruby experiments and fails.

First of all, I will need to choose a GUI platform for my Ruby application! Can you recommend me one? I have heard of Shoes and Tk, but want to know what you think.

like image 994
Voldemort Avatar asked Jan 02 '11 02:01

Voldemort


People also ask

Can you program Ruby on Windows?

All the versions of Ruby for Windows can be downloaded from rubyinstaller.org. Download the latest version and follow the further instructions for its Installation.

Can you make an app with Ruby?

Thanks to RubyMotion, your Ruby developers can write iOS and Android apps, today. Ruby makes programmers happy and productive, and by sharing the same language across platforms you get to reuse code, save time, and ship faster.

Can you develop Ruby on Rails on Windows?

Ruby and rails can be installed on Windows using the WSL (Windows Subsystem for Linux) or using the Ruby Installer. Ruby can be set up in the same directory as the default directory for the bash shell so that its easier to navigate to in windows.


1 Answers

Have you considered IronRuby? It's an implementation of Ruby that runs on the .Net platform, which means you have access to all of the standard Windows Forms libraries, if you decide to run in Windows. http://ironruby.net/

According to david4dev, it also runs well on Mono, which makes it great for cross-platform compatibility, as the Mono platform runs on Mac OSX and Linux, as well as Windows.

Jorg W Mittag says that using the WPF (Windows Presentation Framework) is an even better option for creating GUI's since Mono has a very strong implementation of the WPF. The WPF was created to be platform agnostic and is better suited for cross-platform development over WinForms, since WinForms is tightly coupled with the Windows OS.

like image 55
Sean Hill Avatar answered Sep 20 '22 22:09

Sean Hill