Session 13
February 13th, 2008
I will NOT provide power point slides today. You guys chose a very
different (yet correct) approach to creating a reduce() method than I had
anticipated so my slides would only confuse you.
Instead, here is a brief list of what we did:
- Spent about 10-15 minutes talking about ways to eliminate the "extra"
variables from Recipe 23 from yesterday's lab and why it is important to not
have lines that say something like
x = x + 1
- Talked through the reduce() method and two different ways it could be
produced. I really like the way you guys wanted to take it. It is
cleaner than my version (see attached code)
- Talked a little bit about why running reduce() a second time using the
smaller image was FOUR times faster than the first time you called it.
- STARTED to look at enlarge(). We produced a method that APPEARED to
work when we looked at the code, but didn't do what we expected in reality.
We will start class on Friday by revisiting this issue.