[#14464] who uses Python or Ruby, and for what? — ellard2@...01.fas.harvard.edu (-11,3-3562,3-3076)

A while ago I posted a request for people to share their experiences

12 messages 2001/05/01

[#14555] Ruby as a Mac OS/X scripting language — Dave Thomas <Dave@...>

10 messages 2001/05/02

[#14557] Arggg Bitten by the block var scope feature!!! — Wayne Scott <wscott@...>

13 messages 2001/05/02

[#14598] Re: Arggg Bitten by the block var scope feature!!! — "Conrad Schneiker" <schneik@...>

# On Thu, 3 May 2001, Wayne Scott wrote:

9 messages 2001/05/03

[#14636] Yet another "About private methods" question — Eric Jacoboni <jacoboni@...2.fr>

I'm still trying to figure out the semantics of private methods in Ruby.

39 messages 2001/05/04
[#14656] Re: Yet another "About private methods" question — Dave Thomas <Dave@...> 2001/05/04

Eric Jacoboni <jaco@teaser.fr> writes:

[#14666] Ruby and Web Applications — "Chris Montgomery" <monty@...> 2001/05/04

Greetings from a newbie,

[#14772] Re: Ruby and Web Applications — Jim Freeze <jim@...> 2001/05/07

On Sat, 5 May 2001, Chris Montgomery wrote:

[#14710] Why's Ruby so slow in this case? — Stefan Matthias Aust <sma@3plus4.de>

Sure, Ruby, being interpreted, is slower than a compiled language.

12 messages 2001/05/05

[#14881] Class/Module Information — "John Kaurin" <jkaurin@...>

It is possible to modify the following code to produce

18 messages 2001/05/09

[#15034] Re: calling .inspect on array/hash causes core dump — ts <decoux@...>

>>>>> "A" == Andreas Riedl <viisi@chello.at> writes:

15 messages 2001/05/12

[#15198] Re: Q: GUI framework with direct drawing ca pabilities? — Steve Tuckner <SAT@...>

Would it be a good idea to develop a pure Ruby GUI framework built on top of

13 messages 2001/05/15

[#15234] Pluggable sorting - How would you do it? — "Hal E. Fulton" <hal9000@...>

Hello all,

16 messages 2001/05/16

[#15549] ColdFusion for Ruby — "Michael Dinowitz" <mdinowit@...2000.com>

I don't currently use Ruby. To tell the truth, I have no real reason to. I'd

12 messages 2001/05/22

[#15569] I like ruby-chan ... — Rob Armstrong <rob@...>

Ruby is more human(e) than Python. We already have too many animals :-).

15 messages 2001/05/23

[#15601] How to avoid spelling mistakes of variable names — ndrochak@... (Nick Drochak)

Since Ruby does not require a variable to be declared, do people find

13 messages 2001/05/23

[#15734] java based interpreter and regexes — "Wayne Blair" <wayne.blair@...>

I have been thinking about the java based ruby interpreter project, and I

48 messages 2001/05/25

[#15804] is it possible to dynamically coerce objects types in Ruby? — mirian@... (Mirian Crzig Lennox)

Greetings to all. I am a newcomer to Ruby and I am exploring the

13 messages 2001/05/27
[#15807] Re: is it possible to dynamically coerce objects types in Ruby? — matz@... (Yukihiro Matsumoto) 2001/05/27

Hi,

[#15863] Experimental "in" operator for collections — Stefan Matthias Aust <sma@3plus4.de>

There's one thing where I prefer Python over Ruby. Testing whether an

13 messages 2001/05/28

[#15925] Re: Block arguments vs method arguments — ts <decoux@...>

>>>>> "M" == Mike <mike@lepton.fr> writes:

43 messages 2001/05/29
[#16070] Re: Block arguments vs method arguments — "Hal E. Fulton" <hal9000@...> 2001/05/31

----- Original Message -----

[#16081] Re: Block arguments vs method arguments — Sean Russell <ser@...> 2001/05/31

On Thu, May 31, 2001 at 11:53:17AM +0900, Hal E. Fulton wrote:

[#16088] Re: Block arguments vs method arguments — Dan Moniz <dnm@...> 2001/05/31

At 11:01 PM 5/31/2001 +0900, Sean Russell wrote:

[#15954] new keyword idea: tryreturn, tryturn or done — Juha Pohjalainen <voidjump@...>

Hello everyone!

12 messages 2001/05/29

[ruby-talk:15214] Re: Q: GUI framework with direct drawing ca pabilities?

From: Sean Russell <ser@...>
Date: 2001-05-15 21:29:12 UTC
List: ruby-talk #15214
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Je Mardo 15 Majo 2001 13:29, vi skribis:
> I'd like to know the problems with Swing, maybe someone can think up some
> good alternatives and we can create The Next Big GUI <:)

I don't have time to write a book on the subject, and a lot of complaints can 
be considered "taste" issues.  However, callbacks were always sort of a hack 
in Swing; Ruby solves this with code blocks.  Mostly, I never liked the way 
one laid out a GUI in Swing.  It seems logical and straightforward when you 
look at small examples, but GUI code gets really ugly really quickly in Swing 
(or AWT, for that matter).  Swing does have a sort of bloated feel to it, 
too.  I don't know why; I suspect that, in actuallity, Swing is really well 
thought-out and well designed... but I rather dislike the gymnastics I have 
to go through just to use the JTree widget (in any non-trivial case)... 
CellRenderers, Models, confusing Listener APIs...  it is almost enough to 
swear me off of GUI programming.

MUI used a mechanism whereby you did something like (Ruby pseudo code follows)

	p = Panel.new(
		Button.new( "Hey, world!" ), ALIGN_LEFT, MORE_CONSTRAINTS, #...
		Panel.new(
			Slider.new( 0, 10, 5 ), SOME_CONSTRAINTS, #...
			Checkbox.new( "Label" ), CONSTRAINTS, #...
		),
		login_panel, CONSTRAINTS
	)

I'm not sure this would work in Ruby, because the callbacks would have to fit 
in there and would mess up the tree; I did, however, like the fact that GUIs 
were laid out in trees, that the formatting helped you see what contained 
what, and that the constraints were attached to the widgets without the need 
for extra code or the creation of extra Constraint objects.  This could be 
easily done in Ruby, although (as I said) I'm not sure it is the best way to 
do it.  It can NOT be done in Java, because Java doesn't support arbitrary 
runtime parameter counts.

MUI had a REALLY intelligent layout engine.  I never had the problems with 
getting GUIs to look right in MUI that I struggle with constantly in Swing.  
As I remember, there was a basic mechanism for "attaching" edges to other 
widgets, like in TK, except that the layout engine was dynamic and did some 
intelligent widget interpretation that somehow resulted in superb default 
settings, almost every time.  The best way to do MUI GUIs was to throw a GUI 
together with minimal constraints, check out the resulting GUI, and then add 
a couple of constraints to get what you wanted.  I'm very tempted to try to 
find the original MUI author, and ask him for his help in this.

I might be able to sum it up in one example: I could create really sexy GUIs 
with MUI with a 24 page printout of the MUI header files (C++).  I have an 
entire shelf of JFC books, dealing primarily with Swing, and I *still* have 
to look for online tutorials sometimes to figure out how to do certain things 
in Swing.

Aside from that, I love Swing :-)

> Yes, I wonder if I can find the border between... WM and TK? in Swing.

I agree; Swing is a good start, because you a lot more for you buck than with 
many other GUI toolkits.  The downsides including, of course, that the Swing 
API is huge, that Swing is slow, and that Swing consumes a lot of memory.  
Converting Swing to C and then adding Ruby hooks might be a better way to go.

> LCD issue? What's that? Google mentioned Lowest Common Denominator
> programming, is it the issue that AWT can only do what all its supported
> platforms do and nothing specific? That should be solved in Swing, I
> thought?

Yes, lowest common denominator, and it IS solved by Swing.  What I like about 
AWT is that it uses a native API (== native look-and-feel), and is relatively 
fast and memory efficient, when compared to Swing.

=== SER   Deutsch|Esperanto|Francaise|Linux|Java|Aikido|Dirigibles|GPG
=== http://www.germane-software.com/~ser  jabber.com:ser  ICQ:83578737
It occurs to me, however, that there is one fundamental difference between
what /they/ want, and what /we/ want.  Both government and citizens want
pervasive computing; the difference is that citizens want to be able to turn
it /off/.                         -- SER
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7AZ+gP0KxygnleI8RAiYxAKC65xMXBLf30Z5kogAg/WZMCu9EkACfRk7X
hZ4vFl8MPT40t7QGvonJooY=
=Zj79
-----END PGP SIGNATURE-----

In This Thread