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.

5 Responses to “Week 3 Slides”

  1. Mark Holton says:

    “…there’s a girl that’s been on my miiind…” + 3.times do |i| “su ” end +ssudio

    http://www.youtube.com/watch?v=gB775nB3YBI

  2. Leigh Caplan says:

    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

  3. Garrick West says:

    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

  4. Aaron Patterson says:

    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!

  5. [...] 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 [...]

Leave a Reply