Loving the look of Ruby code

Hi –

I just think Ruby code looks so great. I’m so glad we get to do
things like this:

module Data
  include DBDBD
  def parse
cmt = ""
each do |s|
  case s
  when END_RE
    yield cmt
  when DATA_RE
    yield cmt,s
    cmt = ""
  when COMMENT_RE
    cmt << s
  end
end
  end
end

I love it all, including the oft-maligned tailing end’s :slight_smile:

Just groovin’ on Ruby –

David

···


David Alan Black | Register for RubyConf 2002!
home: dblack@candle.superlink.net | November 1-3
work: blackdav@shu.edu | Seattle, WA, USA
Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com

:slight_smile: I understand.

But the way the indentation came out made me laugh.
Like saying:
Boy, I love Perl code. Just look how beautiful and
intuitive this is:
&(&(#$%^#$(&^%$)#&^%^%@^#*$^&(#%^@%^+!@$^%^#^

:slight_smile:

Hal

PS - Thinking of imitating Andy (/\ndy) and
signing my name as |-|al. Or perhaps |-|/|_.

···

----- Original Message -----
From: dblack@candle.superlink.net
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Thursday, September 19, 2002 9:17 PM
Subject: loving the look of Ruby code

Hi –

I just think Ruby code looks so great. I’m so glad we get to do
things like this:

module Data
  include DBDBD
  def parse

cmt = ""
each do |s|
case s
when END_RE
yield cmt
when DATA_RE
yield cmt,s
cmt = ""
when COMMENT_RE
cmt << s
end
end
end
end

I love it all, including the oft-maligned tailing end’s :slight_smile:

Hi –

From: dblack@candle.superlink.net
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Thursday, September 19, 2002 9:17 PM
Subject: loving the look of Ruby code

Hi –

I just think Ruby code looks so great. I’m so glad we get to do
things like this:
[…]

I love it all, including the oft-maligned tailing end’s :slight_smile:

:slight_smile: I understand.

But the way the indentation came out made me laugh.
Like saying:
Boy, I love Perl code. Just look how beautiful and
intuitive this is:
&(&(#$%^#$(&^%$)#&^%^%@^#*$^&(#%^@%^+!@$^%^#^

:slight_smile:

Ha – I need to expand(1) things I guess :slight_smile:

module Data
include DBDBD
def parse
cmt = ""
each do |s|
case s
when END_RE
yield cmt
when DATA_RE
yield cmt,s
cmt = ""
when COMMENT_RE
cmt << s
end
end
end
end

PS - Thinking of imitating Andy (/\ndy) and
signing my name as |-|al. Or perhaps |-|/|_.

Mine looks like cuneiform:

/\/||>

David

···

On Fri, 20 Sep 2002, Hal E. Fulton wrote:

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


David Alan Black | Register for RubyConf 2002!
home: dblack@candle.superlink.net | November 1-3
work: blackdav@shu.edu | Seattle, WA, USA
Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com

Or perhaps |-|/|_.

I think that one looks the best, more unique

:slight_smile:

Rob

It’s good to see your perl improving Hal :wink: That is pretty close to a
legal line of perl, you just have your bracketing a little confused. Is
this what you were trying to do?

#!/usr/bin/env perl

{&{{&{* #$%^#$(&^%$)#&^%^%@^#$^&(#%^@%^+!@$^%^#^
i=‘think’}}=‘bill’}}=‘great’;

print “I think that Bill is $bruford\n”;

sub think { ‘that’ };
sub bill { ‘bruford’ };

END

Hope this helps,

Mike

(sorry for the OT post :slight_smile:

···

In article 014601c2604d$ac168320$0300a8c0@austin.rr.com, Hal E. Fulton wrote:

Boy, I love Perl code. Just look how beautiful and
intuitive this is:
&(&(#$%^#$(&^%$)#&^%^%@^#*$^&(#%^@%^+!@$^%^#^


mike@stok.co.uk | The “`Stok’ disclaimers” apply.
http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA
mike@exegenix.com | Fingerprint 0570 71CD 6790 7C28 3D60
http://www.exegenix.com/ | 75D2 9EC4 C1C0 0599 13DA