Week 8: More tools and techniques

Summary: We return from fall break and embark on Iteration 1.

Goals:

Looking ahead:

Monday, October 29: Pair programming

Read All I really need to know about pair programming I learned in kindergarten [posted on Blackboard].

Email me your answers to the following questions by 10 a.m. Put "CSC223-OCT-29" in the email subject line.

  1. Describe the responsibilities of the driver (the person at the keyboard), as you understand them.
  2. Describe the responsibilities of the navigator (the person or persons not at the keyboard), as you understand them.
  3. What's the most important thing you learned from this article?
  4. What's one question you still need to answer?

Welcome back from Fall Break! In class, we'll do some fun, non-programming exercises that reveal some further advantages of using pair programming.


Wednesday, October 31: Regular expressions in Python

Read the following:

Email me your answers to the following questions by 10 a.m.  Put "CSC223-OCT-31" in the email subject line.

  1. If you were in class Monday, what lesson(s) can you take from the final exercise?
  2. Write a Python expression that splits the string 'spam, bacon, spam, eggs, spam, coffee, spam' into the list ['spam', 'bacon', 'spam', 'eggs', 'spam', 'coffee', 'spam']. 
  3. Write a Python expression that replaces each instance of the word 'spam' in a string with 'SPAM (TM)'. If 'spam' is part of a longer word (e.g., 'Spamalot' or 'spam.com'), it should remain unchanged. Thus, 'Buy spam and more spam at spam.com!' should be transformed to 'Buy SPAM (TM) and more SPAM (TM) at spam.com!'
  4. Why do you think I had you read about joining lists and splitting strings as well as regular expressions?
  5. What's the most important thing you learned from today's reading?
  6. What's one question you still need to answer?

In class, we will do a lab on regular expressions and practice pair programming.


Friday, November 2: Project workshop

You will have time to work on your projects in class today. I'll check in with each team; come prepared with something you want feedback on.


Janet Davis (davisjan@cs.grinnell.edu)

Created October 23, 2007
Last revised October 29, 2007