From: Benoit Daloze Date: 2011-08-20T07:47:49+09:00 Subject: Re: Introducing Blirb--a tongue-in-cheek interactive quiz/game/tutorial On 17 August 2011 05:57, Ian M. Asaff wrote: > Hi Everyone, > > I've put together a simple little gem that functions as an interactive > quiz/game for learning ruby. You are given simple tasks and as you complete > each one, you are given another. > > Would love to hear any feedback. Hi, Nice work! This would be really awesome to teach stuff, especially metaprogramming, with some additional check on the user input, to test whether he uses the right method. I noticed: * Some errors are handled well, but some not, like missing constants and undefined local vars (I got full backtraces of 25 levels) * In task 4 subject: "4 - Define 'Bro' so that he has a private method 'drink_natty_ice'. [...]", I thought to a private *class* method of Bro, not a private instance method, but that must be because I like too much doing it weird. * In task 5 test code, you should maybe check if brah is a Bro. * Don't assume Kernel#gets returns a String, if someone stop giving input (Ctrl+D), it will return nil. Keep on releasin', Benoit Daloze PS: I passed task 6 with `Bro, LittleBro = nil; def LittleBro.ancestors; [nil, Bro]; end`. I know, I'm evil.