Lecture/Lab Schedule

ICS-33: Intermediate Programming


Course Expectations

Lectures and Labs

Learning to program well is an intensive activity. We will have class every day of the week: MWF lectures and TuTh labs. By staying on task 5 days per week, learning and practicing what we learn, we are more likely to master programming in Python. One learns programming by practicing programming.

Work Before, During, and After Lecture

I expect students to read the assigned lecture materials, either before class (as a way to preview the lecture) or after class (where the lecture previews the reading), to get the most out of both: cover the material twice. I will lecture during class, but I prefer discussing the material and answering questions; asking you questions about the material, and amplifying on those topics that need further discussion. I expect most "lectures" to be interactive, with students participating. Lecture mottoes: "Those who are ashamed of asking are ashamed of learning." and "The only stupid question is the one left unasked."

Carefully read the lectures and examine the code they contain. Test and explore this code in Eclipse/Python to verify that you understand the material both theoretically and practically. Try to work out solutions to the assigned lecture problems, to prove that you have understood the material; you can often test/verify/explore your solutions on the computer. Here understanding means "be able to use the information operationally to write code that solves problems". If you have difficultly with a problem, it indicates that you should probably go back over the related reading -or certainly ask a question about it on the MessageBoard Forums. One of the few advantages of a big class like this is the potental for peer-teaching.

Because these lecture problems are not graded, feel free to discuss them, but don't give away the answers for those still working on them: working on exercises like these builds your programming muscles. Students will be required to solve similar problems on weekly take-home quizzes, on which collaboration is NOT allowed. Don't cheat yourself in this aspect of the course by failing to do the appropriate work.

Lecture Attendance and Decorum

I expect students to attend class daily, arriving on time, and settling down when class starts: I will wait until there is silence before starting class. The announcements made at the start of class are often very important. I expect students to neither carry on private conversations, nor use their computers to answer e-mail, surf the web, day trade stocks, or perform any other activities unrelated to this course. Do not use your personal media in any way that would disturb students sitting near you.

Someone once said, "Distance education begins in the 8th row of the classroom": once you are that far back, it is easy to stop paying attention. So, I recommend that students sit in the rows that are at the front of the room. More than once I have had a comment like the following on my final teaching evaluation, "Write bigger: I could never read what you wrote on the whiteboard from my seat in the back of the class." I have many deficiencies as an instructor; students should help themselves get what they need out of this class -like by sitting near the front if necessary.

Ringing cell phones disrupt my lectures. Unless you are responsible for someone's life, your cell phone should be turned off. Otherwise, you should set it to operate in some silent mode (as mine will be set); if it rings silently and you decide you must answer the call, please leave the class, with a minimum of disruption to the rest of the students. If your cell phone rings audibly in class, you will be asked to leave class for that day. Finally, if you know that you must leave early, please sit by a door, so that you can exit quietly and without disturbing others in the class.

Overall, please strive to be a considerate class member, both to me and to your fellow students; doing so is especially important in large classes.

Studying for the Midterm and Final Exams

A few days before these exams, students often ask me how to study for them. This reminds me of a marathon runner who asks his/her coach a few days before a race how to prepare for it: by then, it is too late. The best way to study for the midterm and final exams is to keep current on all the readings. By doing so, you will not need to cram for these exams. Often I will suggest that students review the quizzes before these exams (and review the midterm before the final), and lightly review the programming assignments and In-Lab exams.


Schedule, Topics, Readings, and Problems

 
Week     Activity       Date Topic (read for this date/do problems) Problems
#0Lab 9/28 Start Program #0: Python, Eclipse (Debugger Perspective), and Testing  
 Lecture 9/29 Course Overview (all)
A Review of File Reading
1,3,5,9
1
#1Lecture 10/2 Review Python I: start - paralle/tuple/list assignment 1-9
 Lab 10/3 Work on Program #0: Python, Eclipse (Debugger Perspective), and Testing  
 Lecture 10/4 Review Python II: iterable - hashable vs. mutable 10-15
 Lab 10/5 Start Program #1: Iteration and Major Data Types  
 Lecture 10/6 Review Python III: comprehensions - trivial things
Parameters: Including * and ** (examples)
16a-17
#2Lecture 10/9 EBNF: A Notation to Describe Syntax
Typographic conventions for EBNF documenting Python
1,2,6,7
 Lab 10/10 Work on Program #1: Iteration and Major Data Types  
 Lecture 10/11 Regular Expressions: Patterns
retester.py (Regular Expression Tester)
Online regular expression tester (for Python)
Click Python in Your regular expression in:
2,4,5,7
 Lab 10/12 Work on Program #1: Iteration and Major Data Types  
 Lecture 10/13 Regular Expressions: Methods
remethods (Folder with programs illustrating RE methods)
8,9
#3Lecture 10/16 Class Review 2,3,5
 Lab 10/17 Start Program #2: Classes, Overloaded Operators, Iterators  
 Lecture 10/18 Class Operator Overloading I 1,2
 Lab 10/19 Work on Program #2: Classes, Overloaded Operators, Iterators  
 Lecture 10/20 Class Operator Overloading II 2,4
#4Lecture 10/23 Iterator Protocol and Examples of Use 1,3,4,7
 Lab 10/24 Practice setting-up for In-Lab Programming Exam (given Thursday)
Work on Program #2: Classes, Overloaded Operators, Iterators
 
 Lecture 10/25 Iterators in Classes with iter and next 1,2,4,5
 Lab 10/26 In-Lab Programming Exam I: Iteration and Major Data Types  
 Lecture 10/27 Generators (and yield): Functions that Act Like Iterators 2,4,5
#5Lecture 10/30 Recursive Functions 1,3,6
 Lab 10/31 Start Program #3: namedtuple  
 Lecture 11/1 Functional Programming/Combinatorial Computing
Solution to Minimum # of Stamps Problem
1,3,6,7
 Lab 11/2 Work on Program #3: namedtuple  
 Lecture 11/3 Decorators for Calling Functions (download decorators project) 1
#6Lecture 11/6 Linked Lists (download linked list project) 1,2,4,5
 Lab 11/7 Work on Program #3: namedtuple  
 Lecture 11/8 Trees I (download tree project) 1,3,4,5
 Lab 11/9 Midterm Written Exam (covering Lectures 10/2-11/3) 1,3,5
 Lecture 11/10 Holiday (No Classes): Veterans Day
But read: Trees II (download tree2 project)
 
#7Lecture 11/13 Inheritance I (download counters project) 1-3
 Lab 11/14 Start Program #4: Annotation Checker  
 Lecture 11/15 Inheritance II (download inheritance project) 1
 Lab 11/16 Work on Program #4: Annotation Checker  
 Lecture 11/17 Inheritance III 1-2
#8Lecture 11/20 Analysis of Algorithms and Complexity Classes 1-3
 Lab 11/21 Work on Program #4: Annotation Checker  
 Lecture 11/22 The Complexity of Python Operators/Functions tba
 Lab 11/23 Holiday (No Classes): Thanksgiving  
 Lecture 11/24 Holiday (No Classes): Thanksgiving  
#9Lecture 11/27 Empirical Efficiency (up to Hashing for sets and dicts)
(download empirical project)
tba
 Lab 11/28 Start Program #5: Inheritance and Animation  
 Lecture 11/29 UnitTest (download unittests project) (view unittest pictures) tba
 Lab 11/30 In-Lab Programming Exam II: Classes, Overloaded Operators, Iterators  
 Lecture 12/1 Finish Empirical Efficiency and UnitTest  
#10Lecture 12/4 Python Machine [Code] (download disassembly project)  
 Lab 12/5 Work On Program #5: Inheritance and Animation  
 Lecture 12/6 Introduction to Java: Static Typing/Collection Classes  
 Lab 12/7 Work On Program #5: Inheritance and Animation  
 Lecture 12/8 Class Wrapup and Quick Review for Final Exam  
Finals Exam Week12/15 We will have a comprehensive 2-hour written final exam on Friday, December 15th from 1:30pm - 3:30pm in HIB 100 (see the Final Exam Schedule). Bring a photo ID with a legible name and picture (UCI, drivers license, passport, etc). I will send email when I have computed/entered final grades, which are due to UCI by Thursday, December 21st at 5pm.