Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What's your Ruby Number? (self.to_i)

8 views
Skip to first unread message

Hal Fulton

unread,
Oct 24, 2005, 10:20:28 PM10/24/05
to
I offer this in the spirit of the old "purity test" and the
"nerdity test" that was derived therefrom.

Don't take it *too* seriously. All point weights are strictly
my opinion and are subject to change.


Version 1.0 follows... cut, paste, run. Or just cut and run.


Cheers,
Hal

def add(n)
@sum += n
puts "#{n} points (#{@sum} total)"
puts
end

def yorn
print "(y/n): "
ch = gets.chomp
ch=='y' ? 1 : 0
end

@sum = 0

puts
puts "First, three background geek questions:"
puts

puts "How many degrees in computer science do you have?"
deg = gets.to_i
add(deg*4)

puts "In what year did your write your FIRST program in any language?"
fp = gets.to_i
div4 = ((Time.now.year - fp)/4.0).ceil
add(div4*1)

puts "How many years have you worked in a software-related job?"
yrs = gets.to_i
div4 = (yrs/4.0).ceil
add(div4*1)

puts "\n----------------------"
puts "And now the Ruby stuff:"
puts

puts "In what year did you start using Ruby? (4 digits)"
yr = gets.to_i
partial = Time.now.year - yr
add(partial*2)

puts "In what year did you start reading the list or newsgroup? (4 digits)"
yr = gets.to_i
partial = Time.now.year - yr
add(partial*4)

puts "How many (non-vaporware) entries do you have in RAA and/or Rubyforge?"
raa = gets.to_i
add(raa*1)

puts "How many Ruby conferences have you assisted in organizing? (US or other)"
conf = gets.to_i
add(conf*6)

puts "Have you assisted in forming a local user's group?"
local = yorn
add(local*2)

puts "At how many Ruby conferences have you made presentations?"
conf = gets.to_i
add(conf*6)

puts "How many Ruby conferences have you attended?"
conf = gets.to_i
add(conf*4)

puts "Now, some book questions."
puts "Translations and newer editions count separately..."
puts

puts "How many Ruby books list you as an author?"
book = gets.to_i
add(book*6)

puts "How many (other) Ruby books have you contributed to?"
book = gets.to_i
add(book*4)

puts "How many (other) Ruby books mention your name?"
book = gets.to_i
add(book*2)

puts "How many unique Ruby books do you own?"
books = gets.to_i
add(books*1)

puts "Do you own a domain name (with content) including the word 'ruby'?"
dom = yorn
add(dom*2)

puts "Approximately how many packages of yours are now in the core or stdlib?"
core = gets.to_i
add(core*1)

puts "Is your name Yukihiro Matsumoto?"
matz = yorn
add(matz*10)

puts "Is your name Dave Thomas or Guy Decoux?"
dave = yorn
add(dave*6)

puts "Is your name: Nobu Nokada, Shugo Maeda, or Minero Aoki?"
nobu = yorn
add(nobu*4)

puts "Do you know any Japanese?"
japan = yorn
add(japan*2)

puts "Is Japanese your first language?"
japan = yorn
add(japan*3)

puts "Have you ever written Ruby for pay?"
pay = yorn
add(pay*10)

puts "Estimate your total lines of Ruby code written."
loc = (gets.to_i/5000.0).ceil
add(loc*1)

puts "How many Ruby presentations have you made (outside RubyConf)?"
nconf = gets.to_i
add(nconf*4)

puts "How many of your Ruby packages have been downloaded >500 times?"
over500 = gets.to_i
add(over500*3)

puts "Ever had an RCR accepted?"
rcr = yorn
add(rcr*5)


puts "That's all... your Ruby Geek status is measured at #@sum."
puts "Have a great day, and keep coding!"
puts

James Edward Gray II

unread,
Oct 24, 2005, 11:10:20 PM10/24/05
to
On Oct 24, 2005, at 9:20 PM, Hal Fulton wrote:

> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.
>
> Don't take it *too* seriously. All point weights are strictly
> my opinion and are subject to change.
>
>
> Version 1.0 follows... cut, paste, run. Or just cut and run.

Wow, I'm probably the lowest rated guy here:

"That's all... your Ruby Geek status is measured at 535.


Have a great day, and keep coding!"

Well Hal, you certainly helped me fill out my list of, "I should do
that!"s...

James Edward Gray II

James Britt

unread,
Oct 24, 2005, 11:44:07 PM10/24/05
to
James Edward Gray II wrote:
> On Oct 24, 2005, at 9:20 PM, Hal Fulton wrote:
>
>> I offer this in the spirit of the old "purity test" and the
>> "nerdity test" that was derived therefrom.
>>
>> Don't take it *too* seriously. All point weights are strictly
>> my opinion and are subject to change.
>>
>>
>> Version 1.0 follows... cut, paste, run. Or just cut and run.
>
>
> Wow, I'm probably the lowest rated guy here:
>
> "That's all... your Ruby Geek status is measured at 535.
> Have a great day, and keep coding!"
>

I came in at 124. I should probably get involved in some high-volume
Ruby stuff, try to be more active or something. Or get another CS degree.

James Britt

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys


Joe Van Dyk

unread,
Oct 25, 2005, 12:18:21 AM10/25/05
to

phhbt.. I got 29 and I've worked on Ruby stuff about full-time for a
little over a year.


Yukihiro Matsumoto

unread,
Oct 25, 2005, 1:25:33 AM10/25/05
to
Hi,

In message "Re: What's your Ruby Number? (self.to_i)"


on Tue, 25 Oct 2005 11:20:28 +0900, Hal Fulton <hal...@hypermetrics.com> writes:

|I offer this in the spirit of the old "purity test" and the
|"nerdity test" that was derived therefrom.
|
|Don't take it *too* seriously. All point weights are strictly
|my opinion and are subject to change.

|Version 1.0 follows... cut, paste, run. Or just cut and run.

It gave me 500 Ruby Number.

matz.


Shannon Fang

unread,
Oct 25, 2005, 1:57:38 AM10/25/05
to
I got 534, higher than matz... hahahhah.

Shannon

James Britt

unread,
Oct 25, 2005, 2:06:36 AM10/25/05
to
Shannon Fang wrote:
> I got 534, higher than matz... hahahhah.

Well, matz needs to get some code into the standard lib.


James, 124

nobuyoshi nakada

unread,
Oct 25, 2005, 2:50:53 AM10/25/05
to
Hi,

At Tue, 25 Oct 2005 11:20:28 +0900,
Hal Fulton wrote in [ruby-talk:162393]:


> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.

143 for me.

--
Nobu Nakada


Robert Klemme

unread,
Oct 25, 2005, 3:00:04 AM10/25/05
to

>> robert.to_i
=> 42 - 1


Jacob Quinn Shenker

unread,
Oct 25, 2005, 3:16:35 AM10/25/05
to
> jacob.to_i #=> warning: in @sum+=n, @sum may be too big

:p

Damphyr

unread,
Oct 25, 2005, 4:13:09 AM10/25/05
to
Phew, I got 48 and when I saw James' (Gray) mail complaining about his
"low" 535 I was soooo sure you can't go lower than 40 something.
Probably helps I get payed to write Ruby code for more than a year now :).
Oh and Hal, those questions about the conferences, are not fair:
RubyConf is too far away and as for Euroko, last year they changed the
dates on me and this year, well as I said, I get paid to write code...;)
V.-

--
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.


Dave Burt

unread,
Oct 25, 2005, 5:08:26 AM10/25/05
to
>>> robert.to_i
> => 42 - 1

Maybe you could try the test again, and increase your LOC estimate by 5000
or so...


Robert Klemme

unread,
Oct 25, 2005, 7:43:34 AM10/25/05
to

LOL No way: I forgot the other answers... :-))

robert

Jason Sweat

unread,
Oct 25, 2005, 7:56:42 AM10/25/05
to
On 10/24/05, Hal Fulton <hal...@hypermetrics.com> wrote:
> puts "That's all... your Ruby Geek status is measured at #@sum."
> puts "Have a great day, and keep coding!"
> puts

2 ** 5

~ 1 year or ruby dabling

Regards,
Jason
http://blog.casey-sweat.us/


Jim Freeze

unread,
Oct 25, 2005, 10:11:40 AM10/25/05
to
Wow, I came in at 251.

But that was skewed by the 120 pts
I got for the Ruby presentations I have made outside Rubyconf.
And the 100,000 LOC didn't help that much either. Maybe should
have made it 500,000.

--
Jim Freeze


mathew

unread,
Oct 25, 2005, 11:23:47 AM10/25/05
to
Hal Fulton wrote:
> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.
>
> Don't take it *too* seriously. All point weights are strictly
> my opinion and are subject to change.

Hmm, I thought it was going to be like Erdös numbers.

If you are matz, you have a Ruby number of 0.

If you've contributed patches to code written by matz, you have a Ruby
number of 1.

If you've worked on code with someone who has a Ruby number of 1, you
have a Ruby number of 2, and so on.


<URL:http://www.oakland.edu/enp/>


mathew
--
<URL:http://www.pobox.com/~meta/>
WE HAVE TACOS

Christian Neukirchen

unread,
Oct 25, 2005, 12:22:41 PM10/25/05
to
Hal Fulton <hal...@hypermetrics.com> writes:

> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.
>
> Don't take it *too* seriously. All point weights are strictly
> my opinion and are subject to change.

chris2.to_i # => 70

Probably too young, ;-)

--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org


Nick Sieger

unread,
Oct 25, 2005, 12:43:31 PM10/25/05
to
On 10/25/05, Robert Klemme <bob....@gmx.net> wrote:
>
> >
> > Maybe you could try the test again, and increase your LOC estimate by
> > 5000 or so...
>
> LOL No way: I forgot the other answers... :-))
>
>
You can try this mod which saves your answers (ruby vets feel free to
compact this even more):

=== start
require 'yaml'

@sum = 0
if File.exist?('ruby_number.yml')
File.open('ruby_number.yml') do |f|
@answers = YAML::load(f)
end
end
@answers ||= {}

def question(name)
@current = name
yield
end

def answer
puts "(Previous answer: #{@answers[@current]})" if @answers[@current]
reply = gets.chomp
@answers[@current] = reply if reply.length > 0
@answers[@current]
end

def add(n)
@sum += n

@answers[:total] = @sum


puts "#{n} points (#{@sum} total)"
puts
end

def yorn
print "(y/n): "
ch = answer


ch=='y' ? 1 : 0
end

puts


puts "First, three background geek questions:"
puts

question :compsci_degrees do


puts "How many degrees in computer science do you have?"

deg = answer.to_i
add(deg*4)
end

question :first_program_year do


puts "In what year did your write your FIRST program in any language?"

fp = answer.to_i


div4 = ((Time.now.year - fp)/4.0).ceil
add(div4*1)

end

question :software_job_years do


puts "How many years have you worked in a software-related job?"

yrs = answer.to_i
div4 = (yrs/4.0).ceil
add(div4*1)
end

puts "\n----------------------"
puts "And now the Ruby stuff:"
puts

question :started_with_ruby_year do


puts "In what year did you start using Ruby? (4 digits)"

yr = answer.to_i


partial = Time.now.year - yr
add(partial*2)

end

question :started_reading_newsgroup do


puts "In what year did you start reading the list or newsgroup? (4 digits)"

yr = answer.to_i


partial = Time.now.year - yr
add(partial*4)

end

question :raa_rubyforge_entries do


puts "How many (non-vaporware) entries do you have in RAA and/or

Rubyforge\?"
raa = answer.to_i
add(raa*1)
end

question :rubyconf_organize do


puts "How many Ruby conferences have you assisted in organizing? (US or
other)"

conf = answer.to_i
add(conf*6)
end

question :local_user_group do
puts "Have you assisted in forming a local user's group\?"
local = yorn
add(local*2)
end

question :rubyconf_presentations do
puts "At how many Ruby conferences have you made presentations\?"
conf = answer.to_i
add(conf*6)
end

question :rubyconf_attended do
puts "How many Ruby conferences have you attended\?"
conf = answer.to_i
add(conf*4)
end

puts "Now, some book questions."
puts "Translations and newer editions count separately..."
puts

question :ruby_books_authored do
puts "How many Ruby books list you as an author\?"
book = answer.to_i
add(book*6)
end

question :ruby_books_contributed_to do
puts "How many (other) Ruby books have you contributed to\?"
book = answer.to_i
add(book*4)
end

question :ruby_books_mention do
puts "How many (other) Ruby books mention your name\?"
book = answer.to_i
add(book*2)
end

question :ruby_books_owned do
puts "How many unique Ruby books do you own\?"
books = answer.to_i
add(books*1)
end

question :ruby_domain_name do


puts "Do you own a domain name (with content) including the word 'ruby'\?"
dom = yorn
add(dom*2)

end

question :packages_in_core_or_stdlib do


puts "Approximately how many packages of yours are now in the core or

stdlib\?"
core = answer.to_i
add(core*1)
end

question :matz do
puts "Is your name Yukihiro Matsumoto\?"
matz = yorn
add(matz*10)
end

question :dave_or_guy do
puts "Is your name Dave Thomas or Guy Decoux\?"
dave = yorn
add(dave*6)
end

question :nobu_shugo_or_minero do
puts "Is your name: Nobu Nokada, Shugo Maeda, or Minero Aoki\?"
nobu = yorn
add(nobu*4)
end

question :japanese do
puts "Do you know any Japanese\?"
japan = yorn
add(japan*2)
end

question :japanese_first_language do
puts "Is Japanese your first language\?"
japan = yorn
add(japan*3)
end

question :ruby_for_pay do
puts "Have you ever written Ruby for pay\?"
pay = yorn
add(pay*10)
end

question :ruby_loc_written do


puts "Estimate your total lines of Ruby code written."

loc = (answer.to_i/5000.0).ceil
add(loc*1)
end

question :ruby_presentations do
puts "How many Ruby presentations have you made (outside RubyConf)\?"
nconf = answer.to_i
add(nconf*4)
end

question :ruby_packages_downloaded do
puts "How many of your Ruby packages have been downloaded >500 times\?"
over500 = answer.to_i
add(over500*3)
end

question :rcr_accepted do
puts "Ever had an RCR accepted\?"
rcr = yorn
add(rcr*5)
end

puts "That's all... your Ruby Geek status is measured at #@sum."
puts "Have a great day, and keep coding!"
puts

File.open('ruby_number.yml', 'wb') do |f|
YAML::dump(@answers, f)
end

=== end

Oh, and I'm a ruby newb evidenced by my as yet low score of 15 :)

:ruby_books_authored: "0"
:started_with_ruby_year: "2005"
:ruby_for_pay: n
:ruby_domain_name: n
:rubyconf_organize: "0"
:first_program_year: "1982"
:ruby_packages_downloaded: "0"
:nobu_shugo_or_minero: n
:total: 15
:packages_in_core_or_stdlib: "0"
:ruby_books_contributed_to: "0"
:ruby_loc_written: "10000"
:local_user_group: n
:rcr_accepted: n
:japanese: n
:ruby_books_mention: "0"
:started_reading_newsgroup: "2005"
:matz: n
:rubyconf_presentations: "0"
:software_job_years: "10"
:ruby_books_owned: "0"
:raa_rubyforge_entries: "0"
:compsci_degrees: "0"
:dave_or_guy: n
:rubyconf_attended: "0"
:ruby_presentations: "1"
:japanese_first_language: n

Thanks Hal for the great icebreaker!

Cheers,
/Nick

rubyh...@gmail.com

unread,
Oct 25, 2005, 1:07:05 PM10/25/05
to
>
> Wow, I'm probably the lowest rated guy here:
>
> "That's all... your Ruby Geek status is measured at 535.
> Have a great day, and keep coding!"
>
> Well Hal, you certainly helped me fill out my list of, "I should do
> that!"s...

Well, obviously I screwed up the test if anyone got higher
than Matz. I should have given 100 points for having that
name. :)

What inflated your score so much? Mine was only 184.

There's no error checking, of course. You can easily tell it
you have 250 years of programming experience. Just like it
says on your resume. Just kidding. ;)

<mumble>Heard about a recruiter looking for someone with
15 years of java experience...</mumble>


Hal

Lyle Johnson

unread,
Oct 25, 2005, 1:20:04 PM10/25/05
to

> What inflated your score so much? Mine was only 184.

535 does sound awfully high. My score was a lowly 95.


James Edward Gray II

unread,
Oct 25, 2005, 1:27:30 PM10/25/05
to
On Oct 25, 2005, at 12:12 PM, rubyh...@gmail.com wrote:

> What inflated your score so much? Mine was only 184.
>
> There's no error checking, of course. You can easily tell it
> you have 250 years of programming experience. Just like it
> says on your resume. Just kidding. ;)

Oops, it was exactly that error, yes. The first date question
doesn't warn you to enter 4 digits and I didn't. Fixing it gives me:

"That's all... your Ruby Geek status is measured at 60.


Have a great day, and keep coding!"

And just to be clear, that does involve two not-yet-released books...

Sorry for the confusion.

James Edward Gray II

rubyh...@gmail.com

unread,
Oct 25, 2005, 1:51:14 PM10/25/05
to

James Edward Gray II wrote:
>
> Oops, it was exactly that error, yes. The first date question
> doesn't warn you to enter 4 digits and I didn't. Fixing it gives me:
>
> "That's all... your Ruby Geek status is measured at 60.
> Have a great day, and keep coding!"
>
> And just to be clear, that does involve two not-yet-released books...
>

LOL, I feel better now. :) Except I should have made the code more
robust. But it's just a toy eh?

Can you talk about those not-yet-released books?? Not to violate
any confidentiality, but I'm curious... one is a collection of
Ruby Quizzes, right?


Hal

Gregory Brown

unread,
Oct 25, 2005, 2:05:18 PM10/25/05
to
gregory.to_i => 63

Attending RubyConf, writing BASIC back in '91, HighLine, and my user
group account for most of the points.

Not bad for ~ a year.

David A. Black

unread,
Oct 25, 2005, 2:14:15 PM10/25/05
to
Hi --

On Tue, 25 Oct 2005, Hal Fulton wrote:

> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.

135. The LOC was more or less a guess. The number of Ruby
Conferences I've helped organized, however, is etched indelibly on my
mind :-)


David

--
David A. Black
dbl...@wobblini.net


James Edward Gray II

unread,
Oct 25, 2005, 2:16:30 PM10/25/05
to
On Oct 25, 2005, at 12:52 PM, rubyh...@gmail.com wrote:

> LOL, I feel better now. :) Except I should have made the code more
> robust. But it's just a toy eh?

I liked it. It's the geeky equivelent of those getting to know you
chain letters.

> Can you talk about those not-yet-released books??

Sure.

> one is a collection of Ruby Quizzes, right?

Yes, this is my book. Best of Ruby Quiz. I've really been pouring
all my effort into this for almost a year now, so I'm really hoping
you guys will like it. I've added content and code, talked about
more solutions, and even completely rewrote some of my summaries. If
you like following the quiz, the book is that and more, I think.

I've also contributed recipes to the Ruby Cookbook. See recent
thread here for details.

James Edward Gray II

Sean O'Halpin

unread,
Oct 25, 2005, 2:18:25 PM10/25/05
to
On 10/25/05, Christian Neukirchen <chneuk...@gmail.com> wrote:
> chris2.to_i # => 70
>
> Probably too young, ;-)

sean.to_i #=> 76

And I can't claim your excuse! :)

Sean


James Edward Gray II

unread,
Oct 25, 2005, 2:20:10 PM10/25/05
to
On Oct 25, 2005, at 1:14 PM, David A. Black wrote:

> The LOC was more or less a guess.

Ditto. My wife was reading over my shoulder when I took the test and
she said I way under bid too... <shrugs>

James Edward Gray II

why the lucky stiff

unread,
Oct 25, 2005, 2:20:46 PM10/25/05
to
I think JEGII should keep his score cause he hacked it. David Black
deserves more points, though. I ended up with 4, but only because I
knew that I couldn't take the test in good conscience without adding a
few questions that would severely dock points for unsavory traits.

I also filled it out for Minero Aoki, as a kind of fantasy quest. And
that really got me excited about starting an RPG based around the
premise of being Minero Aoki. Or maybe just a flight simulator.

_why

James Edward Gray II

unread,
Oct 25, 2005, 2:23:50 PM10/25/05
to
On Oct 25, 2005, at 1:20 PM, why the lucky stiff wrote:

> I also filled it out for Minero Aoki, as a kind of fantasy quest.
> And that really got me excited about starting an RPG based around
> the premise of being Minero Aoki. Or maybe just a flight simulator.

<dies laughing>

James Edward Gray II


Phil Tomson

unread,
Oct 25, 2005, 3:44:40 PM10/25/05
to
In article <435E75A8...@whytheluckystiff.net>,

-why, I think in your case a couple of questions should be added:
* Have you ever sung humorous, Ruby-related songs of your own
composition in front of a Ruby meeting?
(+ 50 points)
* Have you written a poignant guide to anything?
(+ 75 points)

Oh, and if you do write an RPG based around the premise of being Minero
Aoki that should be good for at least 50 points.


Phil
... don't ask what my Ruby number is ...

Anthony Moralez

unread,
Oct 25, 2005, 5:51:07 PM10/25/05
to
On 10/25/05, Christian Neukirchen <chneuk...@gmail.com> wrote:
> chris2.to_i # => 70
>
> Probably too young, ;-)


Well I got a 23, which is good because that's my age and I only
started goofing around with ruby about a year ago.


rubyh...@gmail.com

unread,
Oct 25, 2005, 6:24:50 PM10/25/05
to
mathew wrote:
>
> Hmm, I thought it was going to be like Erdös numbers.
>

That's a cool idea, too. Go ahead and implement code
to determine it. ;)

Hmm, how many of you have had Matz in your car? :D
Myself, Eric, some others...


Cheers,
Hal

Jim Weirich

unread,
Oct 25, 2005, 7:03:09 PM10/25/05
to

Hmm ... I've had Larry Wall in mine ... does that give me a negative number?

--
-- Jim Weirich j...@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


Jim Freeze

unread,
Oct 25, 2005, 7:18:23 PM10/25/05
to
On 10/25/05, rubyh...@gmail.com <rubyh...@gmail.com> wrote:
>
> mathew wrote:
>
> Hmm, how many of you have had Matz in your car? :D
> Myself, Eric, some others...


Does a rental count?


--
Jim Freeze

zdennis

unread,
Oct 25, 2005, 7:45:55 PM10/25/05
to
nobuyoshi nakada wrote:
> Hi,
>
> At Tue, 25 Oct 2005 11:20:28 +0900,
> Hal Fulton wrote in [ruby-talk:162393]:
>
>>I offer this in the spirit of the old "purity test" and the
>>"nerdity test" that was derived therefrom.
>
>
> 143 for me.

62 here...

Zach


Yukihiro Matsumoto

unread,
Oct 25, 2005, 7:46:24 PM10/25/05
to
Hi,

In message "Re: What's your Ruby Number? (self.to_i)"


on Wed, 26 Oct 2005 08:18:23 +0900, Jim Freeze <j...@freeze.org> writes:

|> Hmm, how many of you have had Matz in your car? :D
|> Myself, Eric, some others...

|Does a rental count?

Where was rental Matz available? I'd rather have one.

matz.


Hal Fulton

unread,
Oct 25, 2005, 7:57:01 PM10/25/05
to

Sure, why not. And you should get a point for having a last
name that is in the core.


Hal

Hal Fulton

unread,
Oct 25, 2005, 7:57:53 PM10/25/05
to
Jim Weirich wrote:
>>Hmm, how many of you have had Matz in your car? :D
>>Myself, Eric, some others...
>
>
> Hmm ... I've had Larry Wall in mine ... does that give me a negative number?

Nahh. Larry's OK. Better to have a Wall in your car
than a car in your wall.


Hal


Hal Fulton

unread,
Oct 25, 2005, 7:59:14 PM10/25/05
to

That is the first time in weeks I have *literally* laughed
out loud at a posting. Thanks, Matz. :)

And if you could be rented, we all would be renting you,
if we could afford it...


Hal


David A. Black

unread,
Oct 25, 2005, 8:38:07 PM10/25/05
to
Hi --

We doubled our number of core-method-named people at RubyConf this
year, thanks to the presence of Adam Keys as well as Jim Freeze.

I'm still holding out for Matt Tainted? or Joe Instance_variable_get.
And if anyone legally changes his or her last name to a core method,
he or she will be admitted free of charge.

Hal Fulton

unread,
Oct 25, 2005, 9:01:52 PM10/25/05
to
David A. Black wrote:
>
> We doubled our number of core-method-named people at RubyConf this
> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>
> I'm still holding out for Matt Tainted? or Joe Instance_variable_get.
> And if anyone legally changes his or her last name to a core method,
> he or she will be admitted free of charge.
>

Don't forget class names. Shashank Date would hate to be left out.
Pronunciation isn't relevant here.


Hal


class Object
def fulton
"Free admission!"
end
end

Timothy Hunter

unread,
Oct 25, 2005, 9:08:27 PM10/25/05
to
Message has been deleted

Nathaniel Talbott

unread,
Oct 25, 2005, 9:52:53 PM10/25/05
to

Whew... I was thinking I must've _way_ underestimated my LOC!

irb(main):002:0> nathaniel.to_i
=> 122

Speaking at every RubyConf helped :-)


--
Nathaniel Talbott

<:((><


Matt Lawrence

unread,
Oct 25, 2005, 10:35:46 PM10/25/05
to
On Wed, 26 Oct 2005, David A. Black wrote:

> We doubled our number of core-method-named people at RubyConf this
> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>
> I'm still holding out for Matt Tainted? or Joe Instance_variable_get.
> And if anyone legally changes his or her last name to a core method,
> he or she will be admitted free of charge.

Well, there are those who would agreed that "Tainted?" might be a good
description of yours truly...

-- Matt
Nothing great was ever accomplished without _passion_

Tom Jordan

unread,
Oct 25, 2005, 11:20:47 PM10/25/05
to
tdjordan.reverse.to_i => 74

--
"Nothing will ever be attempted, if all
possible objections must first be
overcome." - Samuel Johnson


Ezra Zygmuntowicz

unread,
Oct 25, 2005, 11:25:14 PM10/25/05
to


Isn't a fulton method the opposite of a singleton?

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ez...@yakima-herald.com
509-577-7732

Jim Freeze

unread,
Oct 25, 2005, 11:54:32 PM10/25/05
to
On 10/25/05, David A. Black <dbl...@wobblini.net> wrote:
>
>
> On Wed, 26 Oct 2005, Hal Fulton wrote:
> > Sure, why not. And you should get a point for having a last
> > name that is in the core.
>
> We doubled our number of core-method-named people at RubyConf this
> year, thanks to the presence of Adam Keys as well as Jim Freeze.


Yeah, but #freeze belongs to the top class, Object.
Only way to beat that is to be in Kernel. Know anyone
named 'puts' or 'fail'? :)


--
Jim Freeze

Ezra Zygmuntowicz

unread,
Oct 26, 2005, 12:56:48 AM10/26/05
to

Hopefully we will never have a method called zygmuntowicz ;-)

Joel VanderWerf

unread,
Oct 26, 2005, 1:13:30 AM10/26/05
to

That's it. I'm legally changing my name to <=>.

Sincerely, Mr. Spaceship.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


Joel VanderWerf

unread,
Oct 26, 2005, 1:15:10 AM10/26/05
to
Ezra Zygmuntowicz wrote:
>
> On Oct 25, 2005, at 8:54 PM, Jim Freeze wrote:
>
>> On 10/25/05, David A. Black <dbl...@wobblini.net> wrote:
>>
>>>
>>>
>>> On Wed, 26 Oct 2005, Hal Fulton wrote:
>>>
>>>> Sure, why not. And you should get a point for having a last
>>>> name that is in the core.
>>>>
>>>
>>> We doubled our number of core-method-named people at RubyConf this
>>> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>>>
>>
>>
>> Yeah, but #freeze belongs to the top class, Object.
>> Only way to beat that is to be in Kernel. Know anyone
>> named 'puts' or 'fail'? :)
>>
>>
>> --
>> Jim Freeze
>>
>
> Hopefully we will never have a method called zygmuntowicz ;-)

But I thought =~ was pronounced "zygmuntowicz"!

Christophe Grandsire

unread,
Oct 26, 2005, 2:16:59 AM10/26/05
to
Selon Joel VanderWerf <vj...@path.berkeley.edu>:

> >
> > Hopefully we will never have a method called zygmuntowicz ;-)
>
> But I thought =~ was pronounced "zygmuntowicz"!
>

And here I was thinking it was the chosen pronunciation for the future ** as in
**keys ;) .
--
Christophe Grandsire (to_i = 14 . That's what happens when you are a true
newbie, don't have time to code, and cannot attend conferences :( ).

http://rainbow.conlang.free.fr

It takes a straight mind to create a twisted conlang.


David A. Black

unread,
Oct 26, 2005, 7:39:54 AM10/26/05
to
Hi --

On Wed, 26 Oct 2005, Joel VanderWerf wrote:

> Jim Freeze wrote:
>> On 10/25/05, David A. Black <dbl...@wobblini.net> wrote:
>>
>>>
>>> On Wed, 26 Oct 2005, Hal Fulton wrote:
>>>
>>>> Sure, why not. And you should get a point for having a last
>>>> name that is in the core.
>>>
>>> We doubled our number of core-method-named people at RubyConf this
>>> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>>
>>
>>
>> Yeah, but #freeze belongs to the top class, Object.
>> Only way to beat that is to be in Kernel. Know anyone
>> named 'puts' or 'fail'? :)
>
> That's it. I'm legally changing my name to <=>.
>
> Sincerely, Mr. Spaceship.

The operator formerly known as Joel....

gabriele renzi

unread,
Oct 26, 2005, 8:33:27 AM10/26/05
to
David A. Black ha scritto:

> We doubled our number of core-method-named people at RubyConf this
> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>
> I'm still holding out for Matt Tainted? or Joe Instance_variable_get.
> And if anyone legally changes his or her last name to a core method,
> he or she will be admitted free of charge.
>
>
> David
>


mh.. what about second names? I am quite sure there is some joe p. smith

Austin Ziegler

unread,
Oct 26, 2005, 8:43:22 AM10/26/05
to

Hm. I may have overestimated my LOC, but I got:

austin.to_i # => 120

-austin
--
Austin Ziegler * halos...@gmail.com
* Alternate: aus...@halostatue.ca


Kaspar Schiess

unread,
Oct 26, 2005, 11:55:51 AM10/26/05
to
> Hm. I may have overestimated my LOC, but I got:
>
> austin.to_i # => 120
So did I probably ;) ..

kaspar.to_i # => 93

whatever, neat the tool.

--
code manufacture & ruby lab at http://www.tua.ch/ruby

Joel VanderWerf

unread,
Oct 26, 2005, 5:29:44 PM10/26/05
to

At least my symbol is pronounceable.
-- A Prince among programmers.

Lou Wilson

unread,
Oct 26, 2005, 6:14:00 PM10/26/05
to
I have worked for a few pointy haired managers who were puts's.

An idea that is not dangerous is unworthy of being called an idea at
all. -- Oscar Wilde

Martin DeMello

unread,
Oct 26, 2005, 6:28:47 PM10/26/05
to

Just don't compile your car with -Wall

martin

Christian Neukirchen

unread,
Oct 27, 2005, 10:21:45 AM10/27/05
to
Joel VanderWerf <vj...@path.berkeley.edu> writes:

> Jim Freeze wrote:
>> On 10/25/05, David A. Black <dbl...@wobblini.net> wrote:
>>
>>>
>>>On Wed, 26 Oct 2005, Hal Fulton wrote:
>>>
>>>>Sure, why not. And you should get a point for having a last
>>>>name that is in the core.
>>>
>>>We doubled our number of core-method-named people at RubyConf this
>>>year, thanks to the presence of Adam Keys as well as Jim Freeze.
>>
>>
>>
>> Yeah, but #freeze belongs to the top class, Object.
>> Only way to beat that is to be in Kernel. Know anyone
>> named 'puts' or 'fail'? :)
>
> That's it. I'm legally changing my name to <=>.
>
> Sincerely, Mr. Spaceship.

I wanna be flip-flop then! Don't deprecate me.

> vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org


Dave Burt

unread,
Oct 27, 2005, 10:42:06 AM10/27/05
to
Christian Neukirchen wrote:

> Joel VanderWerf <vj...@path.berkeley.edu> writes:
>> That's it. I'm legally changing my name to <=>.
>>
>> Sincerely, Mr. Spaceship.
>
> I wanna be flip-flop then! Don't deprecate me.

If you spell that ".." or "...", people might get the pronunciation confused
with "range operator" or "to" for short.

Cheers,
Dave


Sean O'Halpin

unread,
Oct 27, 2005, 10:54:50 AM10/27/05
to
On 10/27/05, Christian Neukirchen <chneuk...@gmail.com> wrote:
> Joel VanderWerf <vj...@path.berkeley.edu> writes:
>
> > That's it. I'm legally changing my name to <=>.
> >
> > Sincerely, Mr. Spaceship.
>
> I wanna be flip-flop then! Don't deprecate me.
>
Bagsy splat

*


Ryan Leavengood

unread,
Oct 29, 2005, 4:50:32 PM10/29/05
to
I'm a little late getting into this thread thanks to a little storm
called Hurricane Wilma (that is the price for living in the tropical
paradise that is Florida.) At least I have power now.

Anyhow I got a 67, which isn't bad considering the 2-3 years I was out
of the community. My participation in RubyConf 2001 helped my score
considerably (since I had the t-shirts made I consider myself an
organizer.)

Also I'm trying to remember who I drove in my car back at RubyConf
2001. I'm not sure if matz was in that group, but I remember the car
was full (myself and 4 others.) Anyone remember being driven in a blue
Lexus IS300 by me back at RubyConf 2001?

Anyhow, thanks for this Hal, it was very interesting, and like James
said it makes a nice "things I should be doing in the Ruby community"
list.

Ryan


Dirk Meijer

unread,
Oct 29, 2005, 4:58:23 PM10/29/05
to
only 6.. that must be the lowest..
i feel a bit loserish..
anyway, i'm only 16 and ruby is my first REAL language (other than silly
BASIC things on my calculator)
but the test looks great :-)
greetings, Dirk.

2005/10/29, Ryan Leavengood <leave...@gmail.com>:

Kero

unread,
Oct 29, 2005, 5:49:03 PM10/29/05
to
>> > Sure, why not. And you should get a point for having a last
>> > name that is in the core.
>>
>> We doubled our number of core-method-named people at RubyConf this
>> year, thanks to the presence of Adam Keys as well as Jim Freeze.
>
>
> Yeah, but #freeze belongs to the top class, Object.
> Only way to beat that is to be in Kernel. Know anyone
> named 'puts' or 'fail'? :)

There are enough hits on "Mr Rand" and "Mr Trap" on google :)
And "Mr Loop" is there, too.

+--- Kero ------------------------- kero@chello@nl ---+
| all the meaningless and empty words I spoke |
| Promises -- The Cranberries |
+--- M38c --- http://members.chello.nl/k.vangelder ---+

James Britt

unread,
Oct 29, 2005, 6:31:21 PM10/29/05
to
Kero wrote:
>>>>Sure, why not. And you should get a point for having a last
>>>>name that is in the core.
>>>
>>>We doubled our number of core-method-named people at RubyConf this
>>>year, thanks to the presence of Adam Keys as well as Jim Freeze.
>>
>>
>>Yeah, but #freeze belongs to the top class, Object.
>>Only way to beat that is to be in Kernel. Know anyone
>>named 'puts' or 'fail'? :)
>
>
> There are enough hits on "Mr Rand" and "Mr Trap" on google :)
> And "Mr Loop" is there, too.


Good fodder for action/adventure hero names:

Trap Randloop

Rand Traploop

Loop Randtrap

and so on.


James

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys


Dave Thomas

unread,
Nov 2, 2005, 4:48:40 PM11/2/05
to

> It gave me 500 Ruby Number.

Heh: I beat Matz!!!

It helps to be giving 2-4 Ruby talks/week :)


Ryan Leavengood

unread,
Nov 2, 2005, 5:16:31 PM11/2/05
to

Somehow I imagine you are the only person in RubyDom to beat matz, and
in fact I bet your number is greater than 1000, eh?

I hate you.

Jealously yours,
Ryan

;)


Dimitri Aivaliotis

unread,
Nov 3, 2005, 9:13:26 AM11/3/05
to
I agree - this is a great ice-breaker. It made me feel a bit better about my
minimal ruby experience - I guess it's not so 'minimal' afterall. Now I also
know where I can do some work to improve it.

- Dimitri (who got a 37)

paul....@gmail.com

unread,
Nov 3, 2005, 7:34:19 PM11/3/05
to
Then if you changed it again you'd be the programmer formally known as
<=>

William James

unread,
Nov 4, 2005, 4:22:38 PM11/4/05
to
Hal Fulton wrote:
> I offer this in the spirit of the old "purity test" and the
> "nerdity test" that was derived therefrom.
>
> Don't take it *too* seriously. All point weights are strictly
> my opinion and are subject to change.
>
>
> Version 1.0 follows... cut, paste, run. Or just cut and run.
>
>
> Cheers,
> Hal
>
>
>
> def add(n)
> @sum += n
> puts "#{n} points (#{@sum} total)"
> puts
> end
>
> def yorn
> print "(y/n): "
> ch = gets.chomp
> ch=='y' ? 1 : 0
> end
>
> @sum = 0
>
> puts
> puts "First, three background geek questions:"
> puts
>
> puts "How many degrees in computer science do you have?"
> deg = gets.to_i
> add(deg*4)
>
> puts "In what year did your write your FIRST program in any language?"
> fp = gets.to_i
> div4 = ((Time.now.year - fp)/4.0).ceil
> add(div4*1)
>
> puts "How many years have you worked in a software-related job?"
> yrs = gets.to_i
> div4 = (yrs/4.0).ceil
> add(div4*1)
>
> puts "\n----------------------"
> puts "And now the Ruby stuff:"
> puts
>
> puts "In what year did you start using Ruby? (4 digits)"
> yr = gets.to_i
> partial = Time.now.year - yr
> add(partial*2)
>
> puts "In what year did you start reading the list or newsgroup? (4 digits)"
> yr = gets.to_i
> partial = Time.now.year - yr
> add(partial*4)
>
> puts "How many (non-vaporware) entries do you have in RAA and/or Rubyforge?"
> raa = gets.to_i
> add(raa*1)
>
> puts "How many Ruby conferences have you assisted in organizing? (US or other)"
> conf = gets.to_i
> add(conf*6)
>
> puts "Have you assisted in forming a local user's group?"
> local = yorn
> add(local*2)
>
> puts "At how many Ruby conferences have you made presentations?"
> conf = gets.to_i
> add(conf*6)
>
> puts "How many Ruby conferences have you attended?"
> conf = gets.to_i
> add(conf*4)
>
> puts "Now, some book questions."
> puts "Translations and newer editions count separately..."
> puts
>
> puts "How many Ruby books list you as an author?"
> book = gets.to_i
> add(book*6)
>
> puts "How many (other) Ruby books have you contributed to?"
> book = gets.to_i
> add(book*4)
>
> puts "How many (other) Ruby books mention your name?"
> book = gets.to_i
> add(book*2)
>
> puts "How many unique Ruby books do you own?"
> books = gets.to_i
> add(books*1)
>
> puts "Do you own a domain name (with content) including the word 'ruby'?"
> dom = yorn
> add(dom*2)
>
> puts "Approximately how many packages of yours are now in the core or stdlib?"
> core = gets.to_i
> add(core*1)
>
> puts "Is your name Yukihiro Matsumoto?"
> matz = yorn
> add(matz*10)
>
> puts "Is your name Dave Thomas or Guy Decoux?"
> dave = yorn
> add(dave*6)
>
> puts "Is your name: Nobu Nokada, Shugo Maeda, or Minero Aoki?"
> nobu = yorn
> add(nobu*4)
>
> puts "Do you know any Japanese?"
> japan = yorn
> add(japan*2)
>
> puts "Is Japanese your first language?"
> japan = yorn
> add(japan*3)
>
> puts "Have you ever written Ruby for pay?"
> pay = yorn
> add(pay*10)
>
> puts "Estimate your total lines of Ruby code written."
> loc = (gets.to_i/5000.0).ceil
> add(loc*1)
>
> puts "How many Ruby presentations have you made (outside RubyConf)?"
> nconf = gets.to_i
> add(nconf*4)
>
> puts "How many of your Ruby packages have been downloaded >500 times?"
> over500 = gets.to_i
> add(over500*3)
>
> puts "Ever had an RCR accepted?"
> rcr = yorn
> add(rcr*5)
>
>
> puts "That's all... your Ruby Geek status is measured at #@sum."
> puts "Have a great day, and keep coding!"
> puts

I have a feeling that Robert will be unhappy until this
contains a couple of injects.


puts [

[ "\nFirst, three background geek questions:" ],

[ "\nHow many degrees in computer science do you have?",
:i, 4 ],

[ "In what year did your write your FIRST program in any language?",
:y, [4] ],

[ "How many years have you worked in a software-related job?",
:i, [4] ],

[ "\n----------------------" ],
[ "And now the Ruby stuff:" ],

[ "\nIn what year did you start using Ruby?",
:y, 2 ],

[ "In what year did you start reading the list or newsgroup?",
:y, 4 ],

[ "How many (non-vaporware) entries do you have in RAA and/or
Rubyforge?",
:i ],

[ "How many Ruby conferences have you assisted in organizing? (US or
other)",
:i, 6 ],

[ "Have you assisted in forming a local user's group?",
:YN, 2 ],

[ "At how many Ruby conferences have you made presentations?",
:i, 6 ],

[ "How many Ruby conferences have you attended?",
:i, 4 ],

[ "Now, some book questions." ],
[ "Translations and newer editions count separately..." ],

[ "\nHow many Ruby books list you as an author?",
:i, 6 ],

[ "How many (other) Ruby books have you contributed to?",
:i, 4 ],

[ "How many (other) Ruby books mention your name?",
:i, 2 ],

[ "How many unique Ruby books do you own?",
:i ],

[ "Do you own a domain name (with content) including the word
'ruby'?",
:YN, 2 ],

[ "Approximately how many packages of yours are now in the core or
stdlib?",
:i ],

[ "Is your name Yukihiro Matsumoto?",
:YN, 10 ],

[ "Is your name Dave Thomas or Guy Decoux?",
:YN, 6 ],

[ "Is your name: Nobu Nokada, Shugo Maeda, or Minero Aoki?",
:YN, 4 ],

[ "Do you know any Japanese?",
:YN, 2 ],

[ "Is Japanese your first language?",
:YN, 3 ],

[ "Have you ever written Ruby for pay?",
:YN, 10 ],

[ "Estimate your total lines of Ruby code written.",
:i, [5_000] ],

[ "How many Ruby presentations have you made (outside RubyConf)?",
:i, 4 ],

[ "How many of your Ruby packages have been downloaded >500 times?",
:i, 3 ],

[ "Ever had an RCR accepted?",
:YN, 5 ],

[ "That's all... your Ruby Geek status is measured at" ]

].inject(0){ |sum,question|
puts question.shift
points =
question.inject(0){ |num,x|
case
when :i == x
gets.to_i
when :YN == x
(gets =~ /^y/i) ? 1 : 0
when :y == x
num = gets.to_i
num += (num<20) ? 2000 : 1900 if num < 100
Time.now.year - num
when x.respond_to?(:pop)
( num / x.first.to_f ).ceil
when x.respond_to?(:/)
num * x
else
raise "\n\n\aBad item: #{ x.inspect }\n\n"
end
}
puts " #{points} points (#{sum+points} total)\n\n" if
question.size > 1
sum + points
}

0 new messages