Choosing ruby?

Rhymes wrote:

OTOH, I LOVE Python’s indentation-based
statement grouping! Oh yeah, Python’s threading is quirky on some
systems.

How Ruby group statements?

With separators, like most languages:

module … end
while … end
until … end
class … end
def … end
for … end
do … end
{ … }

Did I forget any?

···

On 11 Aug 2002 16:12:10 -0700, Tim Hammerquist tim@vegeta.ath.cx > wrote:


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)

Rhymes graced us by uttering:

[ snip ]

I heard them too. I like XP programming and TDD and other developers
suggested to me to switch to Ruby (they are Java or .NET programmers)
for improving my “OO-experience” and doing a bit of work too.
Mmm…I think that Python is a bit more widespread than Ruby, isn’t
it?

Widespread as a larger user base and therefore more support right now?
Yes. OTOH, Python had a much smaller user base for the first five years
of its existence. And Perl beats both of them, so lets not use this as
our only basis for judgement. :wink:

OTOH, I LOVE Python’s indentation-based statement grouping! Oh
yeah, Python’s threading is quirky on some systems.

How Ruby group statements?

As in other post, by matching identifiers and (to a point) with newlines
and semicolons.

[ snip ]

My only hope is that you take Ruby for what it is, and not for what
it might resemble at a glance.

Is what I’m going to do.

Glad to hear it.

Cheers!
Tim Hammerquist

···

Tim Hammerquist tim@vegeta.ath.cx wrote:

So far we’ve managed to avoid turning Perl into APL. :slight_smile:
– Larry Wall in 199702251904.LAA28261@wall.org

Rhymes wrote:

Heh, no. One semester only, long ago.
What does the quote mean?

It’s not so funny in English, because it’s a padory of an italian tv
spot. The spot claims - (Tiziana da Milano: “avevo un fidanzato, poi
è arrivato Halo”) - and - literally in English is “i had a boyfriend,
then Halo did come” and mine sign says: " i had Halo, then a girlfiend
did come ;-)"

Halo is the X-Box game

I really wondered about that Italian line:
To begin with, I did not know (and still do not know) what X-box is nor
what “the” X-Box
game might be. Had Halo not been spelled with an uppercase initial , I
would have assumed that
a halo, a gloriole was meant and that the appearance of the fiancée
somehow defused it.
Halo, however, was not in my Italian dictionary ( The golden disk that
holy persons
have hovering above their head is called “aureola” )
A subtle ambiguity results from the reversal of the tv spot:
In the original, the idea is probably that Halo became a permanent
replacement
of the boyfriend.
In the mirror image, this reads rather like a singular event:
“I was playing with Halo (or whatever one is supposed to do with it) and
then
my fiancée showed up.”
Otherwise, you’d probably say " but then I became engaged".
Probably it is politically more correct to substitute toys for boyfriends
than
to substitute girlfriends for toys. ( I refrain from interpreting
“girlfiend”
as a Freudian slip.)
Now we know it all
Greetings
Jan

···

On Mon, 12 Aug 2002 17:57:36 GMT, “Hal E. Fulton” > hal9000@hypermetrics.com wrote:


Rhymes (rhymes@NOSPAMmyself.com)
http://www26.brinkster.com/rhymes
" avevo Halo, poi è arrivata la mia fidanzata :wink: "

Thanks a lot. It seems not so hard for me to learn Ruby’s way of
developing

···

On Mon, 12 Aug 2002 08:40:00 GMT, Tom Sawyer transami@transami.net wrote:

http://www.cse.unsw.edu.au/~gjmc469/


Rhymes (rhymes@NOSPAMmyself.com)
http://www26.brinkster.com/rhymes
" avevo Halo, poi è arrivata la mia fidanzata :wink: "

It’s not so bad. But I prefer Python’s style.
I just read “Why You Might Want to Try Ruby” on Freshmeat and its
comments: Ruby Is great. I decided to study it (academic/home/fun
purposes) but I’ll get into Ruby from September cause I have to finish
some work in Java and go to holiday :slight_smile:

···

On Mon, 12 Aug 2002 11:27:20 +0200, Kent Dahl kentda@stud.ntnu.no wrote:

With separators, like most languages:


Rhymes (rhymes@NOSPAMmyself.com)
http://www26.brinkster.com/rhymes
" avevo Halo, poi è arrivata la mia fidanzata :wink: "

Kent Dahl graced us by uttering:

Rhymes wrote:

OTOH, I LOVE Python’s indentation-based statement grouping! Oh
yeah, Python’s threading is quirky on some systems.

How Ruby group statements?

With separators, like most languages:

module … end
while … end
until … end
class … end
def … end
for … end
do … end
{ … }

Did I forget any?

begin … end

=)

Tim Hammerquist

···

Tim Hammerquist tim@vegeta.ath.cx wrote:

E Pluribus Unix

if … [elsif …] [else …] end !!!

···

----- Original Message -----
From: “Kent Dahl” kentda@stud.ntnu.no

How Ruby group statements?

With separators, like most languages:

module … end
while … end
until … end
class … end
def … end
for … end
do … end
{ … }

Did I forget any?