Week 3 Slides
Here are the week 3 slides that we’ll be reviewing tonight.
Here is the Week 3 Homework.
Tonight we’ll review the week 3 slides, and work on the week 2 homework in class. I’m making the week 3 homework due on Friday April 18th.
This entry was posted
on Wednesday, April 9th, 2008 at 4:08 pm and is filed under Homework, Slides.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
“…there’s a girl that’s been on my miiind…” + 3.times do |i| “su ” end +ssudio
http://www.youtube.com/watch?v=gB775nB3YBI
I’m not sure if this was brought up in class, but I found this wonderful explanation of metaclasses by the always poignant Why:
http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html
There’s a slight 1.9isim in the Week 3 homework. It seems the test case for test_add_to_the_metaclass is expecting the array of method names returned from Kernel#singleton_methods to be symbols. However, in 1.8 they are Strings as it is discussed here: http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9 in the section “Kernel#singleton_methods, Kernel#methods”. Is it OK for us to go ahead and change the test case to the 1.8 version?
–Garrick West
Absolutely. I think I had 1.9 on the brain. As we discussed in class, 1.8 is not very consistent when it comes to Strings vs Symbols. Changing those to strings is the right thing to do! Good catch!
[...] found a problem with the Week 3 homework and posted in the comments for week 3. In the week 3 homework, test_add_to_metaclass should be [...]