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

H

Hal Fulton

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
 
J

James Edward Gray II

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
 
J

James Britt

James said:
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
 
J

Joe Van Dyk

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

Yukihiro Matsumoto

Hi,

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

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

nobuyoshi nakada

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

Jacob Quinn Shenker

PiBqYWNvYi50b19pICM9PiB3YXJuaW5nOiBpbiBAc3VtKz1uLCBAc3VtIG1heSBiZSB0b28gYmln
Cgo6cAoKT24gMTAvMjUvMDUsIFJvYmVydCBLbGVtbWUgPGJvYi5uZXdzQGdteC5uZXQ+IHdyb3Rl
Ogo+IG5vYnV5b3NoaSBuYWthZGEgd3JvdGU6Cj4gPiBIaSwKPiA+Cj4gPiBBdCBUdWUsIDI1IE9j
dCAyMDA1IDExOjIwOjI4ICswOTAwLAo+ID4gSGFsIEZ1bHRvbiB3cm90ZSBpbiBbcnVieS10YWxr
OjE2MjM5M106Cj4gPj4gSSBvZmZlciB0aGlzIGluIHRoZSBzcGlyaXQgb2YgdGhlIG9sZCAicHVy
aXR5IHRlc3QiIGFuZCB0aGUKPiA+PiAibmVyZGl0eSB0ZXN0IiB0aGF0IHdhcyBkZXJpdmVkIHRo
ZXJlZnJvbS4KPiA+Cj4gPiAxNDMgZm9yIG1lLgo+Cj4gPj4gcm9iZXJ0LnRvX2kKPiA9PiA0MiAt
IDEKPgo+Cj4KPgo+Cj4K
 
D

Damphyr

Joe said:
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...;)
V.-

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

____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
 
J

Jim Freeze

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

Matt Lawrence

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_
 
E

Ezra Zygmuntowicz

--Apple-Mail-25--481425792
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed


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


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

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
(e-mail address removed)
509-577-7732


--Apple-Mail-25--481425792--
 
J

Jim Freeze

------=_Part_20903_16138462.1130298869699
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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'? :)
 
E

Ezra Zygmuntowicz

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'? :)

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

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
(e-mail address removed)
509-577-7732
 
J

Joel VanderWerf

Jim said:
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.
 

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,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top