CSC151.02 2016S, Class 08: Writing Your Own Procedures
======================================================

* Continue partners and places.  Those who were absent on Wednesday
  should work on Dahl.

_Overview_

* Preliminaries.
    * Admin.
    * Upcoming Work.
    * Extra Credit.
    * Questions.
* Quiz.
* Lab.

Preliminaries
-------------

### Admin

* The Registrar's Office wants you to know that today is the last day to
  add or drop a full-semester class.
* Today's lab will continue through Monday's class, although we may have a
  writeup from early in the lab.
* Friday PSA.  

### Reminders

* Office hours: MTWF 10-11, Tu 1-2.
    * Sign up at <http://rebelsky.youcanbook.me>.
    * Also feel free to stop by when my door is open.
    * Or to email me for an appointment.
* Tutor hours
    * Sunday, 3-5 p.m.
    * Sunday-Thursday, 7-10 p.m.
* Weekly review sessions:
    * Wednesday at 8pm in the CS Commons with ?
    * Thursday at 10am in this room with SamR
    * Thursday at 8pm in the CS Commons with ?

### Upcoming Work:

* No additional readings for Monday, although you might want to review
  the ones for today.  
* [Assignment 3](../assignments/assignment.03.html) due Tuesday
  at 10:30 p.m.  (Your assignment partner is your partner from today.)
* Lab Writeup: Exercise _____
    * Send email titled __CSC 151 Lab Writeup 8 (Your Names)__
    * Do not include the underscores.
    * Send to <CSC151-02-grader@grinnell.edu>
    * Due before class on Tuesday.

### Extra Credit

* Send to <rebelsky@grinnell.edu> with subject "CSC 151 Extra Credit".

#### Academic

* Africans vs African Americans, Noon, Saturday, JRC 101.
* Aids in South America Talk in ARH 305 at 4:15.
* Franz Schubert's Winterreise, Sunday, 2 p.m. Sebring-Lewis
* Next week's Rosenfield Symposium on Campaign Finance
* Monday, February 8, 4:15 p.m. in Bucksbaum Miriam Langer enjoins you to 
  "Do Your Work in Public" 
  (part of the series "Digital in Public: Intellectual and Technical Skills 
  for Making a Difference")
* Monday, February 8, 7:30-9:00, JRC 101: The Complex Relation Between 
  Alcohol and Sexual Assault
* Noon Tuesday in the White PDR: Bowie, Mickey, and the NFL: Copyright in
  the 21st century (copies of the reading outside Sam's office)
* 7:30 pm next Tuesday in ARH 131 - Funding for unfunded internships
* Anything in next week's Carnival and Creativity series

#### Peer

* Track and Field Grinnell Invite February 6. (10 a.m.)
* Swimming February 6 vs. UN and IAState.  (1 p.m.)
* Love Notes.  If the $2 is a stretch, Sam will pay.  Email the
  person mentioned in class or JS.

#### Regular Peer

* Social Dance Workshop Tuesdays 7:00-8:00 in Bucksbaum Dance Studio
  (starting next week)
* Pun club Saturdays at 4pm in Younker (max 2)
* Socrates Cafe' Saturdays (max 2) email [socratescafe] to be added
  to the mailing list to hear about the top secret meeting location
* Electronic Potpourri on KDIC Fridays at Five

### No Extra Credit, But Still Good

* Fill out the Disability Student Space Survey
  <https://docs.google.com/forms/d/1hIXOjkd1j9goBgoWoDv2EiZu8vhhETOZS3bDTcKypLE/viewform?usp=send_form>

### Questions

* Coming Monday.

Quiz
----

Lab
---

Three important lessons from today's lab ....

1. The `(define ...)` tab is really useful.

2. If you write

        (define bound
          (lambda (val lower upper)
            (min (max val lower) upper)))

and then call

        (bound 5 0 10)

DrRacket substitutes 5 for `val`, 0 for `lower`, and 10 for `upper`, giving

        (min (max 0 5) 10)

Which it then computes.

3. Indentation can improve readability

        (define rgswap (lambda (color) (irgb (irgb-green color) (irgb-red color) (irgb-blue color))))

        (define rgswap
          (lambda (color)
            (irgb (irgb-green color)
                  (irgb-red color)
                  (irgb-blue color))))

4. Zachary says "Save early and often."

5. Sarah says "Mark where you are in the lab."
