RU beehive logo ITEC dept promo banner
ITEC 380
2019spring
ibarland

schedule

These lecture notes are provided as a reference (my own personal lecture-prep). They are not intended as a substitute for attending class.

datelecture notesreadinghw
week 1
Aug.27languages steer programmer choices§§1.0–1.3 (pp.5–16); §§10.0–10.2 (pp.505–509) (skim)
Aug.29racket intro§10.3.0 (pp. 509–512)
week 2
Sep.03The Design Recipe: unit-tests (pizza-area) code: before, afterhw01, on D2L
Sep.05Union types (and, cond) code: before, after
week 3
Sep.10Union types: further examples incl. numeric intervals; use helpers for union-of-unionshw02/
Sep.12language-vocab-and-concepts/§1.6.1, and skim the rest of Chpt.1 (§1.4–1.7). Do look at how Figures 1.21 (GCD program in C) and 1.22 (its tokenized version) have counterparts in Fig. 1.25 (its parse tree -- a big diagram, but don't be intimidated).
week 4
Sep.17start structs introhw03/
Sep.19Finish structs intro; Design exercise: a GUI textbox code: before, after (and an alternate version)
week 5
Sep.24Structs within structs (easter-egg textbox)
Sep.26union of structs (book-or-dvd) code: before, after; Families of languageshw04/
week 6
Oct.01list introduction§6.6, and §10.1–10.3.1. Suggested/optional: all of §6 and §10.3. Challenge/option: §10.5.
Oct.03hw05a (2 problems)
week 7
Oct.08A non-list example of recursive data, stepping through a recursive functionlists.html
Oct.10exam01
week 8
Oct.15Tail recursion (code: before, after)§2.1: Grammars
Oct.17intro grammars/BNF; practice: grammar for field-declarations
week 9
Oct.22discuss hw06-soln (incl. hex vs. binary); reflect on immutable data; Scope (for fun: an abusive main.java)hw06: grammars
Oct.24passing-functions-before.rkt (and passing-functions-after.rkt as completed in class)
week10
Oct.29ancestor-tree-before.rkt (video (32m23s)) (and ancestor-tree-after.rkt as completed in class)
Oct.🎃video: defining ancestor trees in Java (14m41s) (composite pattern), video: writing size and template (17m12s); video: writing changeName (14m22s)
Optional: AncTrees in scala (code, video).
week11
Nov.05Decide on our language's U0 syntax and internal representation of Exprs/parse-trees; start the law-of-racket.rkt
Nov.07Look at U0.rkt: data-def'n for an expression, examples of the data, test cases for parse! and expr->string, and the code for expr->string.
week12
Nov.12explaining the code (incl. recursive-descent parsing, and (optionally) some of the tricks used in the accompanying test-harness).
See the videos at the bottom of Interpreting U.
Nov.14scope-simple-examples.rkt; prolog intro§3.3, but you can skim §§3.3.4-3.3.5.AncTrees and Expr Trees
week13
Nov.19prolog practice; Prolog: recursive relationsScott Chpt.11, but skip §11.2.6
Nov.21Review U4-soln; lists in prolog§3.6 (“the binding of referencing environments”)U4 shadowing, function-application; prolog
thanksgiving cornucopia br
eak
week14
Dec.03Finish lists in prolog.
Possible: sorts.pl, and/or numbers in prolog
Dec.05Finish looking at: implementing objects-with-let-over-lambda.rkt (pretty much). Wrap-upU6: environments
finals week
May.07
(Tue)
14:45
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.

Helpful Links


logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.