Hey all, We've discussed this before and it came up again at this month's meeting. As an exercise, we're going to take on one of the Ruby Quizzes (http://www.rubyquiz.com) each month then discuss our results the next month. If it proves successful, we might do it more often.
Since the next meeting is in about 2 weeks, I picked one of the easier quizzes. In the future we should talk about some kind of nomination process to pick, but this will work fine for now. This month, I've picked Quiz 41, Stock Portfolios. You can read the quiz at http://rubyquiz.com/quiz41.html. It's not very difficult, but it's has a lot of practical things to teach. The synopsis is to created a small script that allows the user to simulate a stock portfolio. You should be able to buy stock either by specifying the amount of money or the number of shares. You should be able to check on the value of your portfolio at any time. Read the quiz for more details. This is kind of boring, but like I said, it demonstrates some common needs like fetching data from external sources. If that's just too boring for you, try a subset of quiz 16, Paper Rock Scissors (or Rock Paper Scissors, if you grew up around here): http://rubyquiz.com/quiz16.html. Specifically, create a player that can defeat the BACheater class defined therein. We'll talk about solutions next month. If this takes off, I'll get an svn repository set up for everyone to use. In the meantime, if you want to version control your solutions but don't have access to an svn server, email me off-list and I'll hook you up. Also, please look over the available quizzes and propose ones to take on next month. Eric also suggested we look at the Perl Quiz of the Week, but I didn't have a chance to do so yet. Good luck! Ben _______________________________________________ PDXRuby mailing list [email protected] IRC: #pdx.rb on irc.freenode.net http://lists.pdxruby.org/mailman/listinfo/pdxruby
