From: Kaye Ng on
I will take Walton's advice and read the "poignant guide to Ruby". When
I have more or less mastered Ruby's syntax, I will then look into
designing interface.

So bottom line question is this: To make a usable program for my
company, should or shouldn't I use an IDE together with Ruby? Seebs
says IDE's are unnecessary. I had no idea it was so. I used to think
that an IDE is the only or primary tool to make a GUI. How else was I
going to make a GUI?

By the way, GUI is graphical user interface, correct? Like the Windows
Calculator (Programs -> Accessories -> Calculator) has a GUI with
buttons 0 to 9 and all the arithmetic symbols and the Label or textbox
above the buttons?

Are you telling me that I could develop a calculator program thru Ruby
WITHOUT using an IDE?

Thanks again.

--
Posted via http://www.ruby-forum.com/.

From: James Britt on
Kaye Ng wrote:
> I will take Walton's advice and read the "poignant guide to Ruby". When
> I have more or less mastered Ruby's syntax, I will then look into
> designing interface.
>
> So bottom line question is this: To make a usable program for my
> company, should or shouldn't I use an IDE together with Ruby? Seebs
> says IDE's are unnecessary. I had no idea it was so. I used to think
> that an IDE is the only or primary tool to make a GUI. How else was I
> going to make a GUI?


There are UI toolkits that allow you to use a text editor to define what
you want without having to draw it in a WYSWYG GUI tool.

For example, with JRuby, you can use Neurogami::SwingSet to create Swing
forms and such and create assorted GUI apps all from a basic text editor.

As a practical matter, though, there are degrees of complexity and
nuance where you are much better off using a visual tool to layout your
forms. So, with JRuby (for example), you would do well in using the
free GUI editor that is built into Netbeans, and build forms for use
with the Monkeybars MVC framework.

I believe you have similar options for non-JRuby Ruby GUI apps as well.
(I focus on JRuby because it affords me the fastest, most robust path
for building and packaging cross-platform desktop apps.)

Bottom line is that non-IDE GUI development is certainly doable, and
perhaps some people prefer it, but if your application is even
moderately complex you're better using a tool to help you design the
screens.

A calculator app, though, is likely simple enough that you don't need an
IDE to build it. And it's good to know how your code is actually
working under the hood.

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

From: Brian Candler on
Kaye Ng wrote:
> I will take Walton's advice and read the "poignant guide to Ruby".

Try this too:
http://www.ruby-doc.org/docs/ProgrammingRuby/

It's an old version of a book (for ruby 1.6) but this edition is free,
and most of it is still valid today. You can buy the 2nd edition for
ruby 1.8, or the 3rd edition for ruby 1.9.

> Are you telling me that I could develop a calculator program thru Ruby
> WITHOUT using an IDE?

Certainly. But the program would be written by typing text, not by
dragging UI elements.

As others have said: if you're not comfortable with writing applications
this way, then maybe Ruby isn't for you. As far as I know, the Ruby
"IDEs" out there are just windowy editors where you can launch your code
from within the editor.

However, in the 21st century, maybe you don't want a "GUI" application
at all - maybe you want to write a web application. This means the "GUI"
is in fact a web browser, and it allows the data to be shared between
users in the business, and the users to be remote from where the server
is running. Just something to think about.
--
Posted via http://www.ruby-forum.com/.