Week 8: More tools and techniques
Summary: We return from fall break and embark on Iteration 1.
Goals:
- Meet with the instructor to review your plan for Iteration 1.
- Make progress on Iteration 1 features/use cases.
- Learn about good practices for pair programming.
- Learn how to use regular expressions in Python.
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.
- Describe the responsibilities of the driver (the person at the keyboard), as you understand them.
- Describe the responsibilities of the navigator (the person or persons not at the keyboard), as you understand them.
- What's the most important thing you learned from this article?
- 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.
- If you were in class Monday, what lesson(s) can you take from the final exercise?
- 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'].
- 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!'
- Why do you think I had you read about joining lists and splitting strings as well as regular expressions?
- What's the most important thing you learned from today's reading?
- 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