Ruby T-Shirt Idea

S

Sean O'Dell

Hal E. Fulton said:
----- Original Message -----


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.

Sean O'Dell
 
H

Hal E. Fulton

----- Original Message -----
From: "Sean O'Dell" <[email protected]>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <[email protected]>
Sent: Thursday, July 10, 2003 6:44 PM
Subject: Re: Ruby T-Shirt Idea

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.

Done long ago. See Ruby.shop at rubyhacker.com

Doesn't have a URL or anything, though.

Hal
 
S

Sean O'Dell

Lyle Johnson said:
Hal said:
Done long ago. See Ruby.shop at rubyhacker.com

Hey, Hal, just for clarification: is Ruby.shop officially "open for
business" now? I notice that on the main page
(http://cafeshops.com/mathomhouse/6101) it still has the disclaimer
"[under construction]".

I especially like the "Large Kanji Ruby T-Shirt" and will probably order
one if things are up and running. Now, you promise that Matz or some
other native Japanese speaker has confirmed that the Kanji is correct
and isn't some kind of profanity, right? ;)

I have my fingers hovering over the order form at CafePress.com right now.
I'm giving my wife the option of slapping my hands away, as I often do when
I find myself wishing to remain on her good side. It just might have to be
the Large Kanji Ruby T-Shirt for me, as well. Oops, nope, the wife slapped
me away. I've been sharply reminded of all the wily-nily spending we've
done since last Friday and apparently the fun is over for the time being.

Sean O'Dell
 
A

Austin King

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.

Here is a color preview ( no images just CSS )
http://www.ozten.com/random/ruby-shirt.html
 
K

Kent Dahl

daz said:
Before committing to cotton, could I recommend
this patch for your T-shirt?:

--- DfB\TEMP\clruby\TShirt_o.rb Fri Jul 11 06:49:26 2003
+++ DfB\TEMP\clruby\TShirt_p.rb Fri Jul 11 06:50:16 2003
@@ -4,5 +4,5 @@
super( name, talent )
@productivity = CodeFu.MASTER * talent
- @stress_level = @stress_level / 2
+ @stress_level /= 2
@street_cred = true
end

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

Ian Macdonald

Keywords: advocacy, silly t-shirts, Request For Feedback

Hello from Yet Another Newbie Ruby User,
I am not religious about languages, but have been really enjoying Ruby
and need a new T-shirt for around the office. So I thought I would
make one.

Picture this in bold red print on a white shirt

class RubyFan < OOProgrammer
include OpenSource
def initialize( name, talent )
super( name, talent )
# adjust for inherent Rubyness
@productivity = CodeFu.MASTER * talent
@stress_level = @stress_level / 2
@street_cred = true;
end
end
# http://ruby-lang.org

any thoughts? Anything inherantly un-rubyish?

That's good. I came up with the following:

class Ruby < Scripting_Languages
include Perl
include Python
end

Ian
--
Ian Macdonald | Kramer's Law: You can never tell which way
System Administrator | the train went by looking at the tracks.
(e-mail address removed) |
http://www.caliban.org |
|
 
D

daz

Brian Candler said:
irb(main):001:0> 5.shift
NameError: undefined method `shift' for 5:Fixnum

irb(main):001:0> {:your => 'high'}.shift
=> [:your, "high"]
irb(main):002:0> exit


Probably a result of hopping out of the
GPL thread next door ?


You want the "arguments" room, down the corridor
where you will, surely, find ...

irb(main):001:0> @stress_level.shift
NoMethodError: undefined method `shift' for nil:NilClass
from (irb):1



daz
 
M

Martin DeMello

Xavier Noria said:
"Please, keep your language clean" (seen on freenode#ruby-lang :)

I've always thought that would make an excellent slogan :)

Ruby - keep your language clean!

www.ruby-lang.org

If we're going for unusual ruby features, I think open classes are the
most interesting. "Ruby - open source, open classes!"

martin
 
T

Tanaka Akira

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

How about /\b#{Regexp.alt words}\b/ using following Regexp.alt:

def Regexp.alt(*args)
if args.empty?
/(?!)/
else
Regexp.compile(args.map {|arg| Regexp === arg ? arg.to_s : Regexp.quote(arg) }.join('|'))
end
end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top