This course is closed. The accuracy of this page's content is not guaranteed. [Return to college.yukondude.com]

You really should consider upgrading your browser to a more recent version. You'll still be able to view everything on this site, but it'll be an ugly experience.

CPSC128: Object-Oriented Programming I (W'06)
Class Notes

Lecture notes, handouts, and readings for upcoming classes will be posted here. Lecture notes are usually posted two or three days after class.

Week 14

Week 13

Week 12

Week 11

Week 10

  • Lecture Notes: Copying Instances
  • Python Cheatsheet: Week 10 Draft
  • Readings: No new readings for this week, but have another look through the OOP-related sections of Learning Python (chapters 19 through 22).

Week 8

Week 7

Week 6

  • Lecture Notes: Object Identity
  • Exercises: Classes
  • Python Cheatsheet: Week 6 Draft
  • Readings: Learning Python, Chapter 19 (OOP: The Big Picture) but go ahead and gloss over the mentions of "inheritance" for the time being, Chapter 20 (Class Coding Basics) just up to "Classes are Customized by Inheritance" on p.310, Chapter 21 (Class Coding Details) just the "The Class Statement" and "Methods" sections pp.317-321;
    A Byte of Python, Chapter 11 (Object-Oriented Programming) but skip the "Inheritance" section;
    How to Think Like a Computer Scientist, Chapter 12 (Classes and Objects), Chapter 13 (Classes and Functions), Chapter 14 (Methods), Chapter 15 (Sets of Objects)

Week 5

  • Lecture Notes: Modules
  • Exercises: Functions and Modules
  • Python Cheatsheet: Week 5 Draft
  • Readings: (Some readings have been moved from last week to this week.)
    Learning Python, Chapter 15 (Modules: The Big Picture), Chapter 16 (Module Coding Basics) but skip the "Module Namespaces" section pp.261-266, Chapter 18 (Advanced Module Topics) just the section "Mixed Usage Modes: __name__ and __main__" pp.280-281;
    A Byte of Python, Chapter 8 (Modules)

Week 4

  • Lecture Notes: Functions and Side-Effects
  • Exercises: Containers and Functions
  • Python Cheatsheet: Week 4 Draft
  • Readings: Learning Python, Chapter 11 (Documenting Python Code) but skip the "PyDoc: HTML Reports" section pp.178-181, Chapter 12 (Python Basics), Chapter 13 (Scopes and Arguments) just the sections "Name Resolution: The LEGB Rule" on pp.199-202 and "Passing Arguments" from page 207 up to the "Arbitrary Arguments Examples" section on page 212;
    A Byte of Python, Chapter 7 (Functions);
    How to Think Like a Computer Scientist, Chapter 3 (Functions), Chapter 5 (Fruitful Functions) but skip section 5.5 "More Recursion" through to the end

Week 3

Week 2

Week 1

↑Top