Morton Goldberg
7/26/2007 8:29:00 PM
On Jul 26, 2007, at 2:52 PM, Lloyd Linklater wrote:
> Now, when I write an app, I make an interface that has things for the
> user to see with buttons to push and keep him playing happily. I find
> that, without a regular interface, I am somewhat at a loss for making
> usable applications. I am not any more interested in a purely command
> line approach now than I was when i was writing batch files to do
> it all
> for me.
Pick one of Ruby GUI libraries and go with it. Currently, I'm using
Ruby/Tk, which has it pluses and minuses, but does the job. But the
are quite a few others out there to choose from.
> That having been said, I am not finding the golden path to making
> wonderful ruby apps with no easy interface. Even practicing with the
> language is problematic as I never seem to write methods longer than a
> couple dozen lines and that doth not an app make.
Can't agree with this sentiment. Long methods do not an application
make. Applications are made by choosing the appropriate class
libraries, implementing a set of classes that model the problem
domain, providing the appropriate behavior to objects instantiated
from those classes by implementing methods (usually short) which are
highly leveraged on the class libraries. My methods tend to average
well under your "couple dozen lines".
Regards, Morton