This is a self-paced course in programming.
It is based on Berkley's course delivered in Spring 2011 of the same name.
The target audience are serious programmers looking to advance their knowledge beyond some specific language or technology.
The course itself is based on the highly acclaimed SICP book, considered by many to be one of the most important Computer Science books ever written.
Fork the repo.
Study each item in sequence, checking off each item as you finish it.
You can use Dr. Racket in SICP compatibility mode to execute the code in the book.
Computer science isn’t about computers (that’s electrical engineering) and it isn’t primarily a science (we invent things more than we discover them).
CS is partly a form of engineering (concerned with building reliable, efficient mechanisms, but in software instead of metal) and partly an art form (using programming as a medium for creative expression).
Programming is really easy, as long as you’re solving small problems. Any kid in junior high school can write programs in BASIC, and not just exercises, either; kids do quite interesting and useful things with computers. But BASIC doesn’t scale up; once the problem is so complicated that you can’t keep it all in your head at once, you need help, in the form of more powerful ways of thinking about programming. (But in this course we mostly use small examples, because we’d never get finished otherwise, so you have to imagine how you think each technique would work out in a larger case.)
We deal with three big programming styles/approaches/paradigms:
- Functional programming (2 months)
- Object-oriented programming (1 month)
- Client-server programming (1 week)
- Logic programming (1 week)
The big idea of the course is abstraction: inventing languages that let us talk more nearly in a problem’s own terms and less in terms of the computer’s mechanisms or capabilities. There is a hierarchy of abstraction:
Application programs
High-level language (Scheme)
Low-level language (C)
Machine language
Architecture (registers, memory, arithmetic unit, etc)
circuit elements (gates)
transistors
solid-state physics
quantum mechanics
We look at lower levels; all are important but we want to start at the highest level to get you thinking right.
-
Watch Computer Science 61A - Lecture 1: functional programming 1
-
Watch Computer Science 61A - Lecture 2: functional programming 2
-
Read Section 1.3: Formulating Abstractions with Higher-Order Procedures
-
Watch Computer Science 61A - Lecture 3: higher-order procedures 1
-
Watch Computer Science 61A - Lecture 4: higher-order procedures 2
-
Read Section 1.2-1.2.4: Procedures and the Processes They Generate
-
Watch Computer Science 61A - Lecture 8: recursion and iteration
-
Read Section 2.4: Multiple Representations for Abstract Data
-
Read Section 2.5 (through 2.5.2): Systems with Generic Operations
-
Watch Computer Science 61A - Lecture 18: object-oriented programming
-
Watch Computer Science 61A - Lecture 19: object-oriented programming
-
Watch Computer Science 61A - Lecture 20: object-oriented programming
-
Read Sections 3.3.1-3.3.3
-
Read Section 3.5.1-3.5.3
-
Read Section 3.5.5: Modularity of Functional Programs and Modularity of Objects
-
Watch Computer Science 61A - Lecture 36: metacircular evaluator
-
Watch Computer Science 61A - Lecture 37: metacircular evaluator
-
Read Section 4.4.1-4.43