Newbie: .Net => Ruby Questions


#1

If I am a .Net developer and I want to build a windows GUI I use
System.Windows.Forms . What do I use in ruby?

In .Net there are namespaces. What is the equivilent in Ruby?

What is out there to support Web Services for ruby?

Thanks,

Dru


#2

You can use CLR bridge. Just do a search in the archives…


#3

Dru wrote:

If I am a .Net developer and I want to build a windows GUI I use
System.Windows.Forms . What do I use in ruby?

In .Net there are namespaces. What is the equivilent in Ruby?

What is out there to support Web Services for ruby?

Thanks,

Dru

Hi Dru,

Welcome to the Ruby world! There aren’t too many easy choices yet for
doing Ruby on Windows, but you might want to check out John L.'s
project for letting you program against .NET assemblies from within Ruby
code (www.iunknown.com). It’s still under development.

Otherwise, people seem to be using other cross-platform GUI libraries
like Tk and Gtk; and I haven’t tried it but you can check out
VisualURuby which claims to be an easier GUI library specialize for Ruby
on Windows (http://ruby.codezoo.com/pub/component/5196?category=366).

If you find something that works for you (or not), I’d like to hear
about it.

Jeff
www.softiesonrails.com


#4

Dru wrote:

If I am a .Net developer and I want to build a windows GUI I use
System.Windows.Forms . What do I use in ruby?

Perhaps GTK is one of the best choices for Windows Ruby GUI.
For Windows u can use Glade/Gtk for Windows to design your interface,
then use the XML files produced by glade in ruby for showing and
manipulate the widgets and connecting to ruby code for events.
If u prefer to start without Glade, u can code Gtk directly in your
ruby programs.

Resources:

http://gladewin32.sourceforge.net/
http://ruby-gnome2.sourceforge.jp/

Guillermo Gómez S.
Rubyando desde Venezuela


#5

Dru wrote:

In .Net there are namespaces. What is the equivilent in Ruby?

Sorry, forgot the answer the 2nd part of your question… Modules are
the equivalent of namespaces. They also serve a 2nd purpose - to
provide mix-in ability - but that’s a different story altogether.

http://www.ruby-doc.org/docs/ProgrammingRuby/ has a good section on
Modules.

Jeff
www.softiesonrails.com