CSC302 2007S, Class 25: Discussion of Mid-Semester Examination Admin: * Three readings for Wednesday: (a) A Quick (and Hopefully Painless) Ride Through Ruby (with Cartoon Foxes); (b) Chapter 1 of A Little Ruby, A Lot of Objects; (c) Chapter 2 of A Little Ruby, A Lot of objects * Since there were significant problems on the exam, we should decide what to do about those problems. * More class time going over the exam? * More credit for those closer to 75? * Why are there no CS t-shirts? Overview: * General Issues. * Bad citations * No citations * Sam is trying to leave as little on the Web as possible * Problem 1. SOME OF YOU WROTE, NOT NECESSARILY CORRECTLY In Algol, if can have form if test then goto X * Problem 2. * Significant misunderstanding (define proc body) * Usually (define proc (lambda (params) body)) * One point of HOP is that the lambda is unnecessary Instead of (define add2 (lambda (x) (+ 2 x))) Write (define add2 (l-s + 2)) * Sam expected (define curry2 ...) (define no-inexact-odds ...) (define selector ...) * In many cases, Sam got (define (curry2 x y) ...) * Problem 3. * Yay, fun coding * Problem 4. Be prepared to answer the following two questions on Wednesday (1) Given that I care about you learning / understanding the material, what can I do to help with that? (2) Given that grades should be secondary to (1), what should I do about the grades? The Ruby readings are now due Friday, but start them soon anyway.