Welcome! In CS 152, we extend our introduction to major computer science topics through instruction in imperative computer programming, continued development of data structures topics, and exploration of memory management approaches.
CS 152 is designed for students intending to major or minor in the subject, although others are welcome. To enroll in CS 152, students must have previously taken one of the department's first quarter courses.
The specific goals of the course are these:
- to learn imperative programming techniques,
- to build an understanding of the memory usage of computer programs, including an awareness of the stack/heap distinction, fluency with pointers and dynamic memory allocation and deallocation, and
- to design a variety of useful data structures including lists, trees, maps, and graphs.
We use the C programming language in our studies. C is the lingua franca of computer programmers, and one of the historic and ongoing successes in the design of practical programming languages.
Having learned a second programming language well, and having viewed a variety of common problems from two distinct vantage points, students who complete CS 152 will begin to see past the superficial characteristics of computer programs to appreciate their deeper properties.
To anticipate a common question: we do not make use of Canvas in CS 152.
- Matthew Wachs, email: mwachs, office: Crerar 211.
- Zewei Chu
- Daniar Kurniawan
- Tara Vogel
If you have questions about the course, and those questions are in a sense impersonal -- that is, they are about course material or course logistics -- we ask that you post those questions publicly on piazza, rather than contacting any of the staff members directly. This ensures you will receive the fastest, most consistent possible response from the staff. Since students usually have common questions, posting public questions is also very efficient for your classmates as well. As yet another advantage, it avoids duplication of work on the part of the staff.
In cases where you have a question that is about your own personal situation and not relevant to the class as a whole, you may ask a "private question" on piazza, which is invisible to your classmates.
We do not allow the use of electronic devices during lectures. They are simply too distracting. This includes laptops, smartphones, and tablets. The lone exception to this policy is for students whose handwriting issues necessitate their use of a device for note taking, who will be permitted to use a plain text editor on a laptop whose wireless capability is turned off.
Students must register for and attend lab sessions each week. Lab sessions are held in the Computer Science Instructional Laboratory (also known as the CSIL); it is located on the first floor of Crerar Library. Attendance at the lab session for which you are registered is mandatory.
The lab meeting times are as follows:
- Tuesday 2:00–3:20 (CSIL 5)
- Tuesday 3:30–4:50 (CSIL 5)
- Tuesday 5:00–6:20 (CSIL 5)
- Tuesday 6:30–7:50 (CSIL 5)
Information about office hours will be maintained on Piazza.
In addition to the instructor's and TAs' office hours, the College Core Tutor Program employs computer science tutors Sunday through Thursday nights from 7pm-11pm, starting in the second week.
The course does not make use of a textbook. Many suitable references for the C programming language are available online, if desired.
All the software we use in this course is available free of charge for all common platforms. We will mainly use vim, clang, and svn (subversion). Users of macOS: all necessary tools are either already installed on your computer, or macOS will offer to install them upon your first attempt to use them. Windows users: options and instructions for installation will be posted on Piazza. Linux users: if clang is not already installed, use your distribution's package manager to set it up; the other programs are likely already present on your system.
Coursework is comprised of lab exercises (done at lab sessions, discussed above), homework assignments, projects, and exams. The relative weighting of these in computing your grade is below.
- Homeworks: There will be weekly homework assignments. These will be assigned around the middle of the week and will be due the following Monday.
- Labs: Started at the Tuesday lab sessions, they are due on Friday.
- Projects: There will be a longer multipart project during the latter part of the term.
- Exams: There will be exams on Monday, February 3rd from 7-9pm and Monday, March 9th from 7-9pm.
Each student's final grade will be computed according to the following formula:
- Homeworks: 20%
- Labs: 15%
- Projects: 25%
- Exams: 20% each
Your lowest homework grade will be dropped. Please note: this specifically means a homework, not a lab or project.
We will scale the grades, so what precisely constitutes an A, B, etc. will be determined by the collective performance of the class.
Graders, TAs, and instructors do make mistakes, so it is normal and expected that a few assignments will have grading errors. In order to manage the workload of regrade requests, however, regrade requests must be submitted within one week of the assignment being returned. No regrade requests will be accepted after this point.
Deadlines in this course are rigid. Since you submit your work electronically, deadlines are enforced to the minute. Late work will not be counted.
(We will accept late work in the case of special circumstances, when those circumstances are extraordinary.)
In this course, as in all your courses, you must adhere to college-wide honesty guidelines as set forth here. The college's rules have the final say in all cases. Our own paraphrase is as follows:
- Never copy work from any other source and submit it as your own.
- Never allow your work to be copied or seen by another student.
- Never submit work identical to another student's.
- Never look at someone's working solution in order to solve your error.
- Document all collaboration.
- Cite your sources.
It is University of Chicago policy to not allow a withdrawfrom a course after a student has been accused of cheating / copying / etc. This means you will not be able to avoid receiving a low or failing grade if you are found to have engaged in such conduct.
If you are found to have engaged in any cheating in the course, you cannot receive a grade above a C, if indeed you receive a passing grade at all. If you have elected pass / fail and are found to have committed an academic honesty violation, your election will be disregarded, and you will receive a low or failing grade as a "quality" grade on your transcript. Students who have been involved in academic honesty violations are also barred from being members of course staffs in the Department in the future.
Writing code that does what it is supposed to do can be joyful, even exhilarating. By contrast, fighting for hours with broken code is misery. We would like to help you experience more of the former and less of the latter. Work methodically. Start your work well ahead of time. Beyond a certain point, it is not profitable to be stumped. If you have made no progress in some nontrivial chunk of time, say, one hour, it is time to stop and change your approach. Use one of our many support mechanisms to get some assistance (office hours, Piazza). We will help you get going again when you are stuck. We are very familiar with common mistakes that stump students for hours but require only minutes for us to identify. Please take advantage of our experience.
Version Control with Subversion by Pilato, Collins-Sussman and Fitzpatrick (full text online) [website]
Piazza (Q&A, announcements, course materials) [website]