Do You want to take part in the creation process of exam series,
covering Ruby itself and RoR framework?
Those who are familiar with Java may have noticed the place on the web
called JavaBlackBelt.com. JavaBlackBelt is a community for Java & open
source skills assessment. Everybody is welcome to take existing and
build new exams.
Until now only Java and related technology exams were available over
there. In the recent feature it is planned to expand existing content
with a set of Ruby related exams.
The first step of exam creation is to define an exam objective and
question categories. This first step was accomplished and a draft
version is available right here:
http://www.javablackbelt.com/WikiPage.do?action=view&page=ExamRuby
The goal of objective is to define a Ruby knowledge boundaries needed
to pass the test. The content will be created according to stated
question categories.
What we need is a feedback of experienced Ruby enthusiasts (means You).
Please tell what do You think of the question categories. Are they too
complex or too simple for Basic level exam? May be there is statements
that are not easy to understand or they are just totaly wrong? May be
some topics should not be included in basic level, may be some new
added?
P.S. I will post here a message when the process of exam creation will
be started and everyone will have a change to add a tricky questions
and take the exams.
Dmitry
What's the purpose of the exam? There was a thread a while back[1] where
most people expressed a strong dislike for anything resembling Ruby
'certification'.
[1]http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/163911?163839-166046
-Justin
> Do You want to take part in the creation process of exam series,
> covering Ruby itself and RoR framework?
Not really, but I doubt you want to hear that. ;) So, I better at
least point some things out. From your basic exam:
> Vocabulary and concepts (1 questions)
> Ruby source file supposed to have .rb extension.
While this is good practice, it is certainly not required. There are
even times it would be considered undesirable (making a command-line
executable, for example).
> Understand that basic commands like puts and exit are actualy
> Kernel class methods.
They are actually Kernel *instance* methods.
> Ruby Environment (1 question)
> Know that RUBYPATH contains a list of directories to look for
> included files.
This variable is not set on my system, just FYI.
> Naming (3 questions)
>
> Ruby naming style and how it affects code
>
> * Constants: UPPER_CASE
> * Classes: Starting with uppercase
..at each new word: LikeThis.
> * Methods and variables: starting with lowercase
..and using underscores to separate words: like_this.
> Know that methods ending with ! are supposed to be mutators (sort!).
Actually, they are considered dangerous. exit!() is not a mutator,
for example.
> Comments (1 question)
> Know that the Ruby code has a # (sharp) comment symbol.
..and multi-line comments:
=begin
This is a comment.
=end
> Variables (2 question)
> Know that there is no unbound variables, but only class attributes.
What does this mean?
> Know that it is not necessary to define staring value in Ruby. It
> is nil.
You will probably get a warning for programming like this though, if
Ruby's warnings are on.
> Know how to check if variable is defined with nil? method.
You check if a variable is nil with nil? and defined with defined?.
> I/O (2 questions)
> IO reading iterators: each_line
Or its alias: each().
> Classes (3 questions)
> Know that the name of constructor method in Ruby is 'initialize'.
The name of Ruby's default constructor is new(). The name of the
method new() calls to complete object construction is initialize().
> Understand that class methods are supposed to work without any
> object being created.
That's a little more fuzzy in Ruby than Java, since the class itself
is an object.
> Know that Ruby does not care what is the class name of the object
> until it has called methods.
What does this mean?
> Methods (2 questions)
> Know what does method 'alias' means in Ruby.
alias is a keyword, not a method.
> Blocks (1 question)
> Usage of blocks and iterators.
These are two pretty broad topics that probably should not be lumped
together under one topic.
> Not covered: creating own iterators and using 'yield'.
yield is used to call a block. That might be to create an iterator,
but it does not have to be.
> Exceptions (2 questions)
> Know that Exception is a class and custom exceptions should inherit
> it.
I believe most custom exceptions should inherit from RuntimeError.
> 'catch' and 'throw' constructs.
Why are these here? They have nothing to do with exceptions.
> Modules (1 question)
>
> Understand the difference between require and load commands.
This is not related to modules.
> Know that it is not mandatory to include file extension in 'require/
> load' directives.
Again, nothing to do with modules.
> Dynamic usage of load command.
Again.
James Edward Gray II
2006/3/28, Dmitry Buzdin <buz...@gmail.com>:
--
"winners never quit, quitters never win"
Really? Splendid, thanks :) See - this _is_ useful.
>> Know that it is not necessary to define staring value in Ruby. It
>> is nil.
>
> You will probably get a warning for programming like this though,
> if Ruby's warnings are on.
And class scope variables - they don't default to nil.
>> Know that Ruby does not care what is the class name of the object
>> until it has called methods.
>
> What does this mean?
Dynamically typing?
> Hey if people is against an exam, why not make it more like a test
> so that
> people and especially newbies (like me!) would know on which areas to
> improve themselves?
> I've seen such a test for C++, and I thought it was a really great
> tool.
If you're not aware of it, you may get a lot from: http://
www.rubyquiz.com/
Certainly, the language tests I've done have seemed to be a terrible
representation of my abilities (and I'm not just bitter about being
bad at them, as I've generally done well :). For instance, in c++,
they'd generally ask lots of ridiculous detail about totally obscure
sections of the language (oooh, bit fields, and exactly what happens
when you do all sorts of things that any good book will strongly warn
you against - basically, questions that if you need to know the
answer to, you're almost certainly doing something in an
inappropriate manner). At the same time, they tend to miss out on
more useful things like "do you know what the STL and Boost are, and
why they're good".
I think everyone I know with any kind of "official" certification for
being competent with a technology believes it to be a total waste of
time. Useful for getting the odd job, but otherwise pointless.
:) But I've got to say, I'm not sure why I have an irrational dislike
of the idea of Ruby certification. Maybe a simple one would be having
a gem up on rubyforge :) And your "score" could be the number of
downloads it gets :) So I'm a zero and a zero so far...
Want to get better at Ruby? Help answer questions on ruby-talk.
People ask all sorts of stuff, from the simple to the sublime.
When a question comes up, offer an answer.
See, if you take a test in private, you can be a major doofus and no one
need know. But if you try answering questions in public, then the
pressure is on; few things sharpen the mind like fear of public ridicule.
Actually, few people get ridiculed here. But if you are wrong, people
*will* point it out; so you either confirm you knowledge, or expand it.
Far better than any test.
Want a certificate? Tell people to Google "Ruby+#{your_name}" and judge
for themselves.
--
James Britt
"In Ruby, no one cares who your parents were, all they care
about is if you know what you are talking about."
- Logan Capaldo
No. For the reasons others have mentioned. Public mailing lists are
a better way to learn, and any test to 'measure your skills' will
surely be missing some important things and have some unnecessary
things.
I agree with James Britt's and Gregory's assessments. I know I've
learned a lot more from answering questions on this mailing list than
I would from studying for and taking some exam. I think the whole
certification/exam thing fits in more with a very corporate
environment, like you find in the Java community. I know Rails has
drawn a lot of attention to Ruby from the corporate world, but I'd
prefer to keep the nice community spirit we have and not get too
sucked into the corporate environment, at least as far as culture is
concerned.
With that said, there is nothing stopping people from making exams or
certifications for Ruby, but frankly they won't mean much without the
support of the community. Plus it is very important to have Ruby
experts involved otherwise the exam itself may not even be accurate
(as James Edward Gray II illustrated earlier in this thread.) That
situation is worse than have no exam at all...much worse.
Ryan
And some of us consider the creation of a certification as the
hallmark that a language is undergoing the process of dilbertization.
Sorry to be so blunt, Dmitry.
--
Jason Perkins
jper...@sneer.org
"The computer allows you to make mistakes
faster than any other invention, with the
possible exception of handguns and tequila."
>
>
>
>
>
2006/3/29, James Britt <jam...@neurogami.com>:
When I have posted at Ruby group I have expected far more "blunt"
relpies, believe me ;)
Now allow me to try to 'defend' myself a bit :)
What we are talking here about is a bit different, than traditional
certification. The main purpose is learning. You pass the exam and see
that You don't know some answers. After the exam it is possible to see
the explanation and to learn (multiple-line comments is realy a good
example :) ) As I have mentioned before, everyone will be allowed to
add new questions and the best of them will be chosen by approval
process. No single no-expert person (like me) is going to create a set
of questions and call it a certification. I will be posting mine and
humbly waiting for other Ruby specialists to rate or comment it. And of
course public mailing list and practice ARE better ways to learn :)
And tell me one more thing - why some of You afraid of Ruby becoming
popular?
Dmitry
Enumerable#select always returns an array. On a hash too, it returns
an array of arrays of key-value pairs.
The issue with this approach is that 'select' calls cannot be chained.
It is now mandatory to know whether the receiver is the original hash
or is the result of at least one 'select'.
Thus, for 'select'ing a second (or subsequent) time, the semantics of
the block themselves have to change.
Else, the result of the first selection has to be manually converted
to a hash (may be using something like hsh =
Hash[select_result.flatten]).
Is there some reason why when a filter is applied to a hash, we get an
object of a different type?
This is not so much an issue, semantically, with Set instances, though
the principle applies there, as well.
Wouldn't it be good if application of a filter on an object of a given
type results in an object of the same type?
Best regards,
JS
Right.
> The issue with this approach is that 'select' calls cannot be chained.
> It is now mandatory to know whether the receiver is the original hash
> or is the result of at least one 'select'.
It works for me:
h = { 0 => 0, 1 => 2, 2 => 3, 4 => 4 }
h.select { |k,v| k % 2 == 0 }.select { |k,v| v % 2 == 0 }
# => [[0, 0], [4, 4]]
Can you show us your problem?
Regards,
Pit
Allow me to apologize for the incorrect problem statement.
The issue is actually not with downstream 'select's, but with other
calls that assume a hash-like behaviour on the part of the container.
Examples include Hash#[] and Hash#each_value.
Should I choose to use these calls somewhere, I need to first know
whether the container I have been passed is the original hash or the
result of at least one 'select'.
The matter is confusing since Hash#reject actually returns a hash!
Yes, Hash#reject is equivalent to Hash#delete_if on a 'dup' of self.
But, semantically, the exclusion filter on the hash is returning a
hash again, while the inclusion filter is not!
I hope this explains my question better.
Best regards,
JS
____________________________________________________________________
http://www.freemail.gr - ÎŽÏÏÎ”ÎŹÎœ Ï
ÏηÏΔÏία ηλΔÎșÏÏÎżÎœÎčÎșÎżÏ ÏαÏÏ
ÎŽÏÎżÎŒÎ”ÎŻÎżÏ
.
http://www.freemail.gr - free email service for the Greek-speaking.
It's not pretty but...:
>> h = { 0 => 0, 1 => 2, 2 => 3, 4 => 4 }
=> {0=>0, 1=>2, 2=>3, 4=>4}
>> Hash[*h.select { |k,v| k % 2 == 0 }.flatten].each_value {|v|
p v}
0
3
4
=> {0=>0, 2=>3, 4=>4}
marcel
--
Marcel Molina Jr. <mar...@vernix.org>
> Yeah I could do that, but this is my first language and I can still
> only
> answer basic questions.
We all started there my friend. How do you think we got better? ;)
James Edward Gray II
I am just learning Ruby, new to the mailing list/Ruby world so plz no
bashing (especially because I am partially on Dmitry's side ;-).
Currently i am a professional Java/J2EE coder, for the last 5 years.
I have picked up Python about 2 years ago, and fell in love with it
immediately. I have found much more productive, effective, quick and
mainly fun way of developing SW.
However, some weeks ago gave Ruby a try (I did know about Ruby for
years, but i said Python is essentially just the same with different
syntactic sugar, so why waste time to learn the same thing twice) - but
now, to say the least i am really happy that i did sacrifice some time
to read the pickAxe. Just now i am thinking about switching to Ruby from
Python.
Why i am writing this? Because i remember having exactly the same debate
on the python-tutor list. Somebody asked for some kind of python
certificate, and got crushed by several guys in matter of minutes. What
was even worse there, they did not even explain him what they do not
really like about such a certificate.
Believe me, I can absolutely understand your points. I do not like to
work in Java at all, it is obscure, not suited for creative thinking,
byrocratic, overcomplicated (With my pythoninc friend who dislikes java
too, we designed once a tutorial for absolute beginners: You had to
install HelloWorldFramework where you only had to implement IHelloWorld
interface to get started to write your first 'Hello World' app ;-) .
Unfortunately at my current company we are doing something big and it is
not possible for us to switch to python/ruby, and as i am interested in
the solution we are developing, i have to stick with Java, despite my
disgust. Of course i do not like it's certificate approach, which values
lexical knowledge of idiotic obscure language details over natural
talent/creativity (which is hard to measure anyway).
But still, I can understand Dmitry's point as well. I believe (hope) he
is looking for a different facet of a 'certificate' (probably the word
'certificate' is flawed right away) than a test which certifies you are
a good/bad ruby programmer. I can summarize this feature in one URL:
http://www.pythonchallenge.com/
I also solved the python challege up to level 20 or something when it
got too time consuming. To sum it up: to get to the next level you
needed to apply some python technique/module (like regexps, loading a
web page, IO, gfx, GUI, etc) and it was gradually getting harder and
harder. The catch was, that even the non-programmers rushed to learn to
program - because there was no other way around to get to the next level
and because you wanted to get to the next level badly (it was kinda
addictive). When the next level came up, it was immediately clear that
you are missing info on this or that technique/module/feature of the
language.
I know that the ruby-quiz is around, and i think it is a great idea - i
hope i will manage to find some time to play around with it. However,
what was different in the case of the python challenge: it was
hierarchical, and in a very natural yet funny way it somehow certified
your skills in python/programming (i.e. if you got yourself to level X,
you had some experience with regexps, IO, web, UI, ...). I think this is
the kind of certificate which would be interesting to see in Ruby as
well - and not the Java style experience-with-obscurity-is-knowledge
style crap.
peter
>> Understand that basic commands like puts and exit are actualy
>> Kernel class methods.
>
> They are actually Kernel *instance* methods.
Robert Dober was kind enough to point out that RDoc may have led me
astray here. You can call Kernel methods like class methods and they
do not show up in the list of instance_methods(). They are mixed
into Object though, right? Can someone clue me in here?
James Edward Gray II
P.S. See how hard it is to get a test right? ;) We now know I'm
not smart enough to write one...
J> Robert Dober was kind enough to point out that RDoc may have led me
J> astray here. You can call Kernel methods like class methods and they
J> do not show up in the list of instance_methods(). They are mixed
J> into Object though, right? Can someone clue me in here?
a global function is a Kernel module function : this mean that it's a
*private* method (this is why #instance_methods don't display it) and a
public singleton method
moulon% ruby -e 'module M def f() end; module_function :f end; p M.instance_methods'
[]
moulon%
moulon% ruby -e 'module M def f() end; module_function :f end; p M.private_instance_methods'
["f"]
moulon%
moulon% ruby -e 'module M def f() end; module_function :f end; p M.singleton_methods'
["f"]
moulon%
Guy Decoux
Ah, but that gives you a certain advantage. You can explain to other
newcomers those things that at first seemed odd or confusing.
People who've been using a language for a while tend to forget those things.
--
James Britt
http://web2.0validator.com - We're the Dot in Web 2.0
http://refreshingcities.org - Design, technology, usability
http://yourelevatorpitch.com - Finding Business Focus
http://www.jamesbritt.com - Playing with Better Toys
>
> And tell me one more thing - why some of You afraid of Ruby becoming
> popular?
Wow, good troll.
:)
Pretty sure no one here ever expressed concern over Ruby's popularity.
--
James Britt
"In physics the truth is rarely perfectly clear, and that is certainly
universally the case in human affairs. Hence, what is not surrounded by
uncertainty cannot be the truth."
- R. Feynman
Thanks for the lesson Guy. Insightful as always.
James Edward Gray II
http://www.ruby-doc.org/core/classes/Module.html#M000725
--
James Britt
"A principle or axiom is of no value without the rules for applying it."
- Len Bullard
I knew I was wrong all the time, ty for showing me
here we go ;)
irb(main):015:0> Kernel.private_instance_methods
=> ["gets", "catch", "String", "`", "sleep", "getc", "warn", "gsub!",
"iterator?", "sprintf", "remove_instance_variable", "Integer", "split",
"putc", "abort", "chop", "lambda", "initialize_copy", "srand", "p",
"local_variables", "singleton_method_removed", "printf", "caller",
"require", "sub", "eval", "set_trace_func", "callcc", "binding", "readline",
"throw", "Array", "chop!", "syscall", "raise", "autoload?", "format",
"trace_var", "exit!", "block_given?", "trap", "Float", "at_exit", "puts",
"loop", "sub!", "chomp", "system", "singleton_method_undefined",
"method_missing", "scan", "select", "rand", "exit", "print", "fork", "gsub",
"exec", "autoload", "singleton_method_added", "global_variables",
"readlines", "proc", "fail", "chomp!", "open", "untrace_var", "test",
"load"]
irb(main):016:0> Kernel.private_instance_methods.include?("puts")
=> true
Cheers
Robert
--
Deux choses sont infinies : l'univers et la bĂȘtise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.
- Albert Einstein
Right now, I'm working my way through Pick-axe, and some other books to
learn about the syntax and features of the language. In my case, having
some kind of quiz/test would be helpful, as it would force me to test
my knowledge, and would make me aware of holes in my Ruby knowledge
which I would need to address. I like the idea of working up to
different levels mentioned in Peter's posting about Python, and can see
how it would be helpful to a lot of new fans of Ruby.
I can understand how some people are worried about the word
certification, fearing that it would create some kind of hierarchy of
insiders, with everyone else being outsiders. Maybe this is because of
the nature of the word "certification".
However, if we can have exams/quizzes or whatever else you want to call
them to help newbies like me to learn Ruby, that would be a really
welcome move.
Paul
On Thu, 30 Mar 2006, paul.de...@gmail.com wrote:
> I can understand how some people are worried about the word
> certification, fearing that it would create some kind of hierarchy of
> insiders, with everyone else being outsiders. Maybe this is because of
> the nature of the word "certification".
I share that fear. I'd hate to see people brand themselves as
outsiders by getting Ruby "certification" :-)
David
--
David A. Black (dbl...@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
"Ruby for Rails" chapters now available
from Manning Early Access Program! http://www.manning.com/books/black
Interesting. I was looking for an interactive Python
interpreter on the web page. I did the first couple using
IRB. I did like the humor... ("Have you ever heard of jvon
files??")
For Ruby, have you seen http://tryruby.hobix.com/ ?
I think tryruby is awesome. I've given the link to people who
were interested in ruby but not only had never tried it, they
had very little programming experience. The feedback has been
positive (apart from the session timing out when they took a
short break. :)
Anyway, so the python challenge got me wondering what an
advanced-skill version of tryruby would be like . . . .
Regards,
Bill
> what was different in the case of the python challenge: it was
> hierarchical, and in a very natural yet funny way it somehow certified
> your skills in python/programming (i.e. if you got yourself to level X,
> you had some experience with regexps, IO, web, UI, ...). I think this is
> the kind of certificate which would be interesting to see in Ruby as
> well - and not the Java style experience-with-obscurity-is-knowledge
> style crap.
I tentatively agree with the others about official certification, but
this idea of some sort of online interface that covers all (or many) of
the features, tools, libs, etc. of Ruby in an interactive, educational
fashion sounds appealing.
Certainly, if there were a site that advertised itself with "Want to get
better at Ruby and have fun doing it? Visit http://....." I would click
in an instant. :)
Perhaps all Dmitry needs is a name change (of the idea, not him). I
think the rough concept is worth brainstorming around and sculpting.
Pistos
--
Posted via http://www.ruby-forum.com/.
> And tell me one more thing - why some of You afraid of Ruby becoming
> popular?
I'm not afraid of it becoming popular in general. Am I afraid of it
becoming popular like Walmart? You bet ya. I don't want ruby to be
low prices always.... at the expense of it's community. To the extent
that it gets popular, I should hope that it does so on it's own merit,
which it is already doing.
Ruby can be appreciated and competent rubyists can be found without
some sort of organization telling me what a good Rubyist is or what I
should know to be considered competent.
> Certainly, if there were a site that advertised itself with "Want to get
> better at Ruby and have fun doing it? Visit http://....." I would click
> in an instant. :)
Yes yes... but I meant BESIDES that. ;)
From endless hours on #ruby-lang, of course. ;-)
> James Edward Gray II
--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org
> :) But I've got to say, I'm not sure why I have an irrational dislike
> of the idea of Ruby certification. Maybe a simple one would be having
> a gem up on rubyforge :) And your "score" could be the number of
> downloads it gets :) So I'm a zero and a zero so far...
good != popular
good != publishes code
That said, definitely look at Ruby code of the people you want to hire.
A RubyOnRails version of the online tutorial would be really neat!
Can you imagine building your own web app with an online tutorial...
Paul
..
>
> *Fewf* sorry for all the oral spew..
> James dont take this as criticism for rubyquiz, I love what you're
> doing for the community over there.
> I just dont think that its the "next step" to learning ruby that many
> claim it to be.
If you (or anyone else) are as passionate about this as your post
suggests, then I encourage you to just go and do it. Make a site,
however simple, just get it going, invite people to join in, and see
where it goes.
People can go round and round arguing the merits of something, but a
working site trumps speculation.
--
James Britt
"Programs must be written for people to read, and only incidentally
for machines to execute."
- H. Abelson and G. Sussman
(in "The Structure and Interpretation of Computer Programs)
+1 ... couldn't have said it better myself.
--
Ross Bamford - ro...@roscopeco.REMOVE.co.uk
I thinks thats a great idea James, I'm going to add this to my list of current
projects, I'll post back to the list when I have something started
that people can join and help with if they are interested, give it about a week.
--
Alex Combas
http://noodlejunkie.com/
I find teaching (contributing) to be the best vehicle for learning.
It forces you to really fill in the gaps in your own understanding as
you work through it. Plus, if there are still gaps, others will
kindly point those out as well. :)
In addition, there's such things as IRC, RubyConf, RailsConf, Rails
Studio, etc.. etc..
Michael
[...]
>> Ruby Environment (1 question)
>
>> Know that RUBYPATH contains a list of directories to look for
>> included files.
>
> This variable is not set on my system, just FYI.
And that's not what RUBYPATH does. That's what RUBYLIB does.
[...]
>> Understand the difference between require and load commands.
>
> This is not related to modules.
>
>> Know that it is not mandatory to include file extension in 'require/
>> load' directives.
>
> Again, nothing to do with modules.
And furthermore:
[/tmp/slumos]0% touch blah.rb
[/tmp/slumos]0% irb
irb(main):001:0> require 'blah'
=> true
irb(main):002:0> load 'blah'
LoadError: no such file to load -- blah
from (irb):2:in `load'
from (irb):2
irb(main):003:0> load 'blah.rb'
=> true
>> Dynamic usage of load command.
>
> Again.
>
> James Edward Gray II
Steve
The reason I find the lists a good learning method is because,
although there is a flood of postings they run the gamut. There are
very beginner type questions and then there are questions / comments
about stuff that I have no way of even following. The advantage is
it's an "iron sharpens iron" type of environment. I only have to pay
attention to those things that are in my sphere of understanding at
any given moment. Often seeing the different approaches / answers
works in a mentoring kind of way. For me that's beneficial.
Hopefully you can codify that which you think would be beneficial for
those people in that "in-between" stage and provide an effective
platform for them. I really think that has merit. Good luck.
Michael
What's really important is good design skills, especially using Ruby's
tools (OO, metaprogramming, agility, etc.). And these are the type of
things which are almost impossible to test on a curicullum based,
multiple choice, certification.
Knowing a language means little more than knowing a bunch of syntax.
It's a world apart from knowing how to develop. Right now, there are
only two languages where it's usually safe to assume that someone who
knows "language" is also a good developer (Ruby and Python) - I'd hate
to see Ruby fall from that.
Wow! That's a big claim! Can you support that at all? What do you mean by
it?
Cheers,
Dave
Well, this post was exactly about my issue in this thread, just Alex
expressed much more better. I have been describing *exactly* the same
thing. http://www.pythonchallenge.com/ has the great advantage that it
goes gradually from 'how much is 2^38' till really advanced issues, and
to go on you were forced to study the techniques needed in a funny and
addictive way.
Btw, what would You (the whole list) think about porting
www.pythonchallenge.com to Ruby? (E.g. we could name it... huh... let me
think... maybe rubychallenge.com? ;-) By the 'porting' i mean several
different possible levels:
1) (e.g. one-to-one: this you can do actually as-it-is, up to a certain
level the stuff is solvable even in Java - however, the difference would
be that the solutions (there is a wiki for solutions) and the discussion
would be in Ruby rathen than in Python. This is the quickest, but
definitely not the best solution.
2) Using the same style, create a different site with different riddles;
This would be the ultimate solution, but it takes time of course. Time
is the only negative factor here, all the other ones are positive ( Ruby
style, thus geared towards ruby constructs like blocks, metaprogramming
etc..., much improvements (i have also some ideas ;-) etc). The idea we
need is:
-) it gets harder gradually, thus you have to learn techniques from n00b
to pro
-) you have to solve level n to go to n+1
-) some really cool riddles
-) good solutions, discussions etc.
-) +improvements - we could introduce even more goodies!
There are some possible levels of porting inbetween 1) and 2). Of course
the best would be the everything-from-scratch extreme if somebody would
have time for this (e.g. i would be happy to participate myself, but to
do this alone would be too time consuming for me due to other tasks. So
if somebody would like to start with this, LMK). python challange also
started of much mire simpler, just a few riddles, then they were added
gradually as people were flooding the authors with 'give me more' ;-)
BTW. pythonchallallange.com was also inspired by notpron
(www.deathball.net/notpron - titled ' - The Hardest Riddle Available on
the Internet') so actually it would not be a 'franchise steal'.
If somebody is sceptic about this kind of stuff, he has to try
pythonchallange to see how addictive it is - it really stirred up the
python list, everybody was looking for answers in different techniques
(wrt the task he solved ATM), i remember myself to even neglecting
normal work to swish through XML-RPC, HTTP and cookies related python
stuff just to get past a certain level ;-)
What do you think?
peter
My point is that this kind of stuff has a great potential to evangelize
the language to the noob/beginner/i'll-give-it-a-try/non-programmer
people. You can put down pickAxe because of other tasks. You can neglect
reading ruby talk. But you will not be able do this (at least based on
my experience, and based on others solving python challange) with
rubychallange.com! ;-)
Ruby quiz is very cool, but such a girl i have described above would
never had a chance to begin it.
This is of course absolutely OK: ruby quiz is intended for a different
audience.
peter
I can meet girls if I change from Ruby to Python?
Bye-bye, Ruby-using suckers!
;Daniel
--
Daniel Baird
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things
That Suck)
[[My webhost uptime is ~ 92%.. if no answer pls call again later!]]
Okay, I went over to this pythonchallenge.com and got to level 3 (using
irb, hehehe). It was semi-fun, and I can see how it might appeal to
some people.
It seems like a lot of work to do anything similar, at least in whole.
Perhaps whoever is going to do this could start small, and just work up
over time.
> I think tryruby is awesome. I've given the link to people who
> were interested in ruby but not only had never tried it, they
> had very little programming experience. The feedback has been
> positive (apart from the session timing out when they took a
> short break. :)
Hey, thanks, Bill. By all means, pass it around. I'm moving tryruby to
a machine with a lot more power and memory (and the application is a bit
more lightweight now) so I should be able to increase the time limits.
I'm also working on checkpointing the thing so sessions can be stored on
disk and resumed later.
_why
Hmm, I didn't get past Level 1. (Did I start at the wrong place--you start
with a cryptic "Hint: try to change the URL address."?)
Anyway, the idea as I imagined it in my mind sounded good, the actual
implementation of the idea annoys me, it seems like one of those adventure
games where you search all over the place until you get lucky and find
something useful.
Anyway, ignoring all that, I'd be interested in seeing something implemented
along the lines I imagined--you go to some page where there is a fairly well
laid out problem to solve (with adequate descriptive text). There is some
way for you to provide an answer (either via a code fragment, or maybe some
(well thought out) multiple choice answers. If you answer the question
right, you get credit for a "level" and move to the next challenge. If you
answer it wrong, you can either try again (immediately) or seek (and find)
resources to help you understand what you didn't understand before.
I was hoping that the Python challenge site included a listing of the problem
they solved at each of the challenge levels, and what they expected the
challenger to learn as a result--is there such a list?
Anyway (I guess I like that word), although I'm quite busy at the moment, I
suggest anybody who is interested in this just start--by adding their
thoughts to this thread, and then moving thoughts somewhere else as they jell
(sp?).
What makes sense as the first challenge for something like that? I guess over
on Python challenge, it has to do with (after changing the URL) to something
related to 2**38. And, of course, there is the traditional "Hello, World!"
program. Anybody have other suggestions for either the first challenge or
any subsequent challenges?
(If we don't find anything better, I'd propose to start creating relevant
pages on WikiLearn (http://twiki.org/cgi-bin/view/Wikilearn).
Randy Kramer
Oh, I have challenge #27 (just guessing at the number)--install Ruby, tcl/tk,
TkHTML, and whatever else is required to make TkHTML display a simple HTML
string like <h3>Test page</h3> (with the correct HTML). (Then do the same
for wxHTML, kHTML, Gecko, and ???
I have checked and corrected everything.
As to the purpose of the exams - it will be definetly not for the
splitting Ruby people by certified and uncertified. Like I said it is
for educational purposes and for fun :)
The Ruby has not so many documentation (especialy for libs) and
sometimes You just don't know that there is a more attractive and DRY
way to do things. Taking exams is a way to compare your knowledge to
the knowledge of other people who created and approved the questions
and a different way to learn. I can at least say that it works for me
when I have taken Java exams.
As for fears that it will be an exam only covering syntax, I could say
that it is called "Ruby Basic" for reason. The next step will be to
create next levels, like exams for specific libraries, Rails, design
style, OO patterns or something else. If you have some ideas please
share.
It will be possible to add your questions and evaulate existing ones in
the closest time. At the beginning Ruby exams will be mixed with all
the Java stuff. But if there will be interest shown, it will be posible
to divide all Ruby exams from Java and create a separate assesment
platform.
Dmitry
I do not think anybody implied you would, sorry if it came over like this.
But believe me, someone else would.
BTW I encourage you doing this, because if you feel it is a good thing to
do, do so.
Some people prefer not to participate in this, that is all. Personal choices
we have to take and to respect.
On the other hand I would love to talk you out of it ;)
The Ruby has not so many documentation (especialy for libs) and
> sometimes You just don't know that there is a more attractive and DRY
> way to do things. Taking exams is a way to compare your knowledge to
> the knowledge of other people who created and approved the questions
> and a different way to learn. I can at least say that it works for me
> when I have taken Java exams.
If it worked for you it will work for others, so if such an exam turns out
harmful eventually (I think it will, but I might be wrong), at least there
will be benefits.
It does not work for me though.
At the beginning Ruby exams will be mixed with all
> the Java stuff.
That will make Java look a clumsy language!!! (one can object the term
"language" if one wants)
Maybe that will serve the Ruby community after all.
But if there will be interest shown, it will be posible
> to divide all Ruby exams from Java and create a separate assesment
> platform.
>
> Dmitry
>
>
> Just to be clear, I am still against it!
But if it is eventually done I will adjust my judgement.
Personally I would love it becomes much more "educational" than
"certification".
Cheers
Robert
--
Deux choses sont infinies : l'univers et la bĂȘtise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.
- Albert Einstein
Yeah, that was a nice one. Just very suble at the end.
Like waving a red cape in front of a newsgroup full of bulls!
Also, good frigg'n work on the Elevator Pitch site. Yesterday I had the
rather horrible experience of having to pitch my company to a VC who
didn't seem to get it. So, can't wait to perfect the pitch for the next
one.
Maybe the next one will have ever heard of Ruby. Doubt it.
-hampton.
Tact is my specialty.
>
> Also, good frigg'n work on the Elevator Pitch site.
Thank you. I work with very good people.
--
James Britt
http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.30secondrule.com - Building Better Tools
...although it *might* be arguable that many Ruby programmers are certifiable.
-austin
--
Austin Ziegler * halos...@gmail.com
* Alternate: aus...@halostatue.ca
Might? I thought it was a requirement. You mean you're therapist
didn't tell you to sign up for this list? I know mine did.
> -austin
> --
> Austin Ziegler * halos...@gmail.com
> * Alternate: aus...@halostatue.ca
>
--
Bill Guindon (aka aGorilla)
The best answer to most questions is "it depends".
Must be a quack.
:)
--
James Britt
http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://refreshingcities.org - Design, technology, usability
I really like that site.
> Gregory Brown wrote:
>>> Certainly, if there were a site that advertised itself with "Want
>>> to get
>>> better at Ruby and have fun doing it? Visit http://....." I
>>> would click
>>> in an instant. :)
>>
>> rubyquiz.com
>
> Yes yes... but I meant BESIDES that. ;)
Kind of rubyquizlets.com?
Peter Szinek and myself are currently working on a Ruby version
of the pythonchallenge.com project.
We've registered the rubychallenge.com domain, and we've talked
to the Nadav who created pythonchallenge.com. In fact Nadav actually
offered to join us and give us all of his puzzles to port over to ruby.
We've decided to not go that route, although it will take a bit
longer we felt that original content would be better in the long run.
We have registered the project on rubyforge and hopefully
we'll have something available soon for people to see and play with.
We've got some really innovative ideas happening, this is not going to
be a port, in fact its not going to be like anything else on the market.
I'll be at Canada on Rails in Vancouver on April 13-14 and hopefully
will have something to show people by that time.
--
Best regards,
Alex Combas
http://noodlejunkie.com/