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.
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.
April 10th, 2008 at 12:10 am
“…there’s a girl that’s been on my miiind…” +
3.times do |i|
“su ”
end
+ssudio
http://www.youtube.com/watch?v=gB775nB3YBI
April 10th, 2008 at 10:26 pm
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
April 13th, 2008 at 4:05 pm
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
April 14th, 2008 at 9:58 am
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!
April 14th, 2008 at 10:20 am
[...] 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 [...]