![]() |
![]() |
|
These lecture notes are provided as a reference (my own personal lecture-prep). They are not intended as a substitute for attending class.
date | topic | reading | |
---|---|---|---|
week 1 | |||
Jan.21 | languages steer programmer choices | §§1.0–1.3 (pp.5–16); | |
Jan.23 | racket-intro.html; |
§11.3.0 (pp. 539–542) | |
week 2 | |||
Jan.28 | The Design Recipe: unit-tests (pizza-area) | ||
Jan.30 | Another ex. of design recipe; refactoring (monogram) |
||
week 3 | |||
Feb.04 | Union types |
||
Feb.06 | |||
week 4 | |||
Feb.11 | struct-intro.html |
||
Feb.13 | video: union of structs (book-or-dvd) video: struct of structs (collectors editions) |
||
week 5 | |||
Feb.18 | language-vocab-and-concepts/ | §1.6.1, and skim the rest of Chpt.1 (§1.4–1.7). | |
Feb.20 | list: a datatype-definition; |
§6.6, and §10.1–10.3.1. | |
week 6 | |||
Feb.25 | using let to avoid repeated-computation |
||
Feb.27 | another union-of-struct recipe example: Ancestor Trees |
||
week 7 | |||
Mar.04 | video: defining trees in Java (14m41s) (composite pattern),
|
||
Mar.06 | data-def'n for natnums a nonsense example;; AncTree.java: video: writing size, and template (17m12s); video: writing changeName (14m22s) |
||
spring 🌷 br eak | |||
week 8 | |||
Mar.18 | Language families video (32m23s), and reflect on immutable-data-trade-offs.html; lists.html solution; language-vocab-and-concepts/ |
||
Mar.20 | exam01 | ||
week 9 | |||
Mar.25 | passing functions as arguments: |
||
Mar.27 | tail recursion (a practice problem: tail-recursion-sum-2^i.html) |
video (24m15s)recording | |
week10 | |||
Apr.01 | grammars-intro.html; practice: grammar for field-declarations | §2.1: Grammars | |
Apr.03 | finish grammars, and parse trees | ||
week11 | |||
Apr.08 | Decide on our language's H0 syntax and internal representation of Exprs/parse-trees; | ||
Apr.10 | Look at H0.rkt: data-def'n for an expression, examples of the data, and tests+code for eval, expr->string, and recursive-descent parse!ing. | ||
week12 | |||
Apr.15 | H0 test harness, both in racket video (14m14s)and (slightly more involved and less flexible) in Java video (8m08s) Note: These test-harness videos are from a different semester's language, so the exact examples will be different from H0, but otherwise it's identical. |
§3.3, but you can skim §§3.3.4-3.3.5. | |
Apr.17 | immutable-data-trade-offs.html | ||
week13 | |||
Apr.22 | Review H2-soln; Prolog intro: run file heroes.pl |
Scott Chpt.11, but skip §11.2.6 | |
Apr.24 | prolog-recursion.html; prolog-lists.html | §3.6 (“the binding of referencing environments”) | |
week14 | |||
Apr.29 | sorting in prolog |
||
May.01 | objects-with-let-over-lambda.rkt (pretty much); course-summary.html | ||
finals week | |||
May.06 | final exam | [0,∞) :-) |
Opening notes in .rkt files: Many of the lecture-notes links are .rkt files, not html. You should (a) download the file (say, via right-click or save-as; on Windows you might need to re-name the suffix to .rkt manually), (b) start DrRacket, and then (c) choose File » Open… them. Do not copy-paste into an empty DrRacket window — the language-preference won't be set correctly, and the initial lines may be goofed up. One possible result is the error message read-syntax: `#lang` not enabled.
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |