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

sean.to_i #=> 76

And I can't claim your excuse! :slight_smile:

Sean

ยทยทยท

On 10/25/05, Christian Neukirchen <chneukirchen@gmail.com> wrote:

chris2.to_i # => 70

Probably too young, :wink:

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

ยทยทยท

On Oct 25, 2005, at 1:14 PM, David A. Black wrote:

The LOC was more or less a guess.

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

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.

ยทยทยท

On 10/25/05, Christian Neukirchen <chneukirchen@gmail.com> wrote:

chris2.to_i # => 70

Probably too young, :wink:

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. :wink:

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

Cheers,
Hal

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 :slight_smile:
greetings, Dirk.

ยทยทยท

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

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

It gave me 500 Ruby Number.

Heh: I beat Matz!!!

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

I got 534, higher than matz... hahahhah.

Shannon

ยทยทยท

From: Joe Van Dyk <joevandyk@gmail.com>
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: What's your Ruby Number? (self.to_i)
Date: Tue, 25 Oct 2005 13:18:21 +0900

On 10/24/05, James Edward Gray II <james@grayproductions.net> 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!"
>
> Well Hal, you certainly helped me fill out my list of, "I should do
> that!"s...

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

Joe Van Dyk 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...

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

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...:wink:
V.-

ยทยทยท

On 10/24/05, James Edward Gray II <james@grayproductions.net> wrote:

On Oct 24, 2005, at 9:20 PM, Hal Fulton wrote:

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

____________________________________________________________________
http://www.freemail.gr - รƒยครƒยนรƒยฑรƒยฅรƒยœรƒยญ รƒยตรƒยฐรƒยงรƒยฑรƒยฅรƒยณรƒยŸรƒยก รƒยงรƒยซรƒยฅรƒยชรƒยดรƒยฑรƒยฏรƒยญรƒยฉรƒยชรƒยฏรƒยฝ รƒยดรƒยกรƒยทรƒยตรƒยครƒยฑรƒยฏรƒยฌรƒยฅรƒยŸรƒยฏรƒยต.
http://www.freemail.gr - free email service for the Greek-speaking.

Dave Burt wrote:

robert.to_i

=> 42 - 1

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

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

    robert

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

ยทยทยท

On 10/25/05, rubyhacker@gmail.com <rubyhacker@gmail.com> wrote:

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

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

ยทยทยท

On Oct 25, 2005, at 12:12 PM, rubyhacker@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. :wink:

<dies laughing>

James Edward Gray II

ยทยทยท

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.

In article <435E75A8.3070502@whytheluckystiff.net>,

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

-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 ...

ยทยทยท

why the lucky stiff <ruby-talk@whytheluckystiff.net> wrote:

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

ยทยทยท

On Tuesday 25 October 2005 06:27 pm, rubyhacker@gmail.com wrote:

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. :wink:

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

--
-- Jim Weirich jim@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)

Does a rental count?

ยทยทยท

On 10/25/05, rubyhacker@gmail.com <rubyhacker@gmail.com> wrote:

mathew wrote:

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

--
Jim Freeze

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

:wink:

ยทยทยท

On 11/2/05, Dave Thomas <dave@pragprog.com> wrote:

> It gave me 500 Ruby Number.

Heh: I beat Matz!!!

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

Shannon Fang wrote:

I got 534, higher than matz... hahahhah.

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

James, 124

ยทยทยท

--

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

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 :slight_smile:

: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

ยทยทยท

On 10/25/05, Robert Klemme <bob.news@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... :-))

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. :slight_smile: 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