----- Original Message -----
From: “Daniel Carrera” dcarrera@math.umd.edu
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Thursday, July 10, 2003 12:21 AM
Subject: Re: Ruby T-Shirt Idea
BTW, var = Regexp.new(Regexp.escape(var)) will
also do that conversion… probably more than
two ways…
As for interpolating a variable into a regex,
I’m not sure whether it does automatic escaping
or not. I’d like to think it does, but there
may be some good reason it doesn’t. Too lazy to
test right now…
It doesn’t automatically escape the interpolated thing and that’s a good
thing. Sometimes I construct alternations dynamically e.g.
[mike@ratdog mike]$ irb --simple-prompt
words = %w{foo bar baz}
=> [“foo”, “bar”, “baz”]
match_a_word = /\b(?:#{words.join(‘|’)})\b/
=> /\b(?:foo|bar|baz)\b/
“April fool” =~ match_a_word
=> nil
“this has a foo in it” =~ match_a_word
=> 11
and I don’t want the interpolation to quietly “save me from myself.” Of
course it’s my responsibility to escape things which need escaping.
Sometimes I do miss a perl-like \Q in an interpolated string, but the
power of #{ … } more than makes up for it.
Just out of curiosity, what exactly is are the candidates for the Ruby
T-Shirt? Or is that too much on-topic at this point?
There isn’t a contest or anything, I am going to make a T-shirt for
myself. Just though I would throw it out there.
As for my design…
The reason I am totally hooked on Ruby is that it is a very clean
Object Oriented Language without alot of extra garbage. That is why my
shirt design has a complete class. Personally, I am much less
attracted to the macho “one line powerhouse” type stuff, as it is a
bit standoffish. ( Built in Grep is very cool though
I am also not looking to say “My language is the best”, but more, hey
if you are looking for a new language to learn, you HAVE to give Ruby
a spin. It is sooo cool and insta-grok.
Just out of curiosity, what exactly is are the candidates for the Ruby
T-Shirt? Or is that too much on-topic at this point?
Would it still be in good taste to make a suggestion?
Heh… fire away. Let there be T-shirts.
I’m leaning away from the idea of a “comparative”
thing, though… let’s not promote language wars.
I was thinking of just the Japanese symbol(s) for Ruby in a rich red color
on a simple white t-shirt. That might not be very “promotional” but I,
personally, would appreciate the succinctness.
Just out of curiosity, what exactly is are the candidates for the Ruby
T-Shirt? Or is that too much on-topic at this point?
There isn’t a contest or anything, I am going to make a T-shirt for
myself. Just though I would throw it out there.
As for my design…
The reason I am totally hooked on Ruby is that it is a very clean
Object Oriented Language without alot of extra garbage. That is why my
shirt design has a complete class. Personally, I am much less
attracted to the macho “one line powerhouse” type stuff, as it is a
bit standoffish. ( Built in Grep is very cool though
I am also not looking to say “My language is the best”, but more, hey
if you are looking for a new language to learn, you HAVE to give Ruby
a spin. It is sooo cool and insta-grok.
I do hope the street_cred bit is true. It’s my
perception that Ruby is gaining in popularity,
but someone told me a few days ago that Ruby
was “dead in the water.” I raised my eyebrow
and expressed the opposite opinion, of course.
Hal
···
----- Original Message -----
From: “Austin King” shout@ozten.com
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Thursday, July 10, 2003 8:46 PM
Subject: Re: Ruby T-Shirt Idea
Just out of curiosity, what exactly is are the candidates for the Ruby
T-Shirt? Or is that too much on-topic at this point?
Would it still be in good taste to make a suggestion?
Heh… fire away. Let there be T-shirts.
I’m leaning away from the idea of a “comparative”
thing, though… let’s not promote language wars.
I was thinking of just the Japanese symbol(s) for Ruby in a rich red color
on a simple white t-shirt. That might not be very “promotional” but I,
personally, would appreciate the succinctness.
While we’re picking nits, I noticed that “CodeFu.MASTER” doesn’t work if
MASTER is a constant (which seems natural). Ruby thinks it is a method
due to the “.”, so perhaps CodeFu::MASTER would be better.
I have been through a series of interviews recently – people who have finally gotten around to reading The Pragmatic Programmer – and have had my Rubyist status received positively.
-austin
···
On Fri, 11 Jul 2003 15:22:57 +0900, Hal E. Fulton wrote:
I do hope the street_cred bit is true. It’s my
perception that Ruby is gaining in popularity,
but someone told me a few days ago that Ruby
was “dead in the water.” I raised my eyebrow
and expressed the opposite opinion, of course.