Resources
Textbooks and reading
This course is based on several free resources, which are available online.
Main textbooks
[DCIC] https://dcic-world.org/ – Data-Centric Introduction to Computing by Fisler et al. uses Pyret and Python to provide a data-analysis perspective on the traditional introductory course; inspired by (older) [HtDP] (below)
[CU] https://drue-coles.github.io/cmsc-120/ – a Java textbook written by Drue Coles (CU) for past iterations of CMSC-120
Secondary textbooks
[UH] https://java-programming.mooc.fi/ – a successful Java MOOC from the University of Helsinki. Parts 1–3 are relevant for this course.
[dev.java] https://dev.java/learn/ – Learn Java, the official Java tutorials from Oracle.
[HtDP] https://htdp.org/ – How to Design Programs by Felleisen et al. uses Racket to teach freshmen systematic program design
Reference pages
The ones you will use every week, each on its own page, in the order they appeared in the course:
- How Pyret runs your program — the seven rules, the directory of names Pyret keeps while it runs, and a worked trace of a
casesexpression. - Writing a function: the design recipe — the order to write a function in, and what the
where:examples are for. - Getting your work off the lab machine — your files stay on the one machine you saved them on. Two ways to take your work home.
- Check your file before you submit — drop your
.arrin and it says what the copy broke: a missinguse context starter2024, curly quotes, invisible characters. Check.java: Pyret’sis, for Java — the file that makesCheck.iswork, to download and keep beside your own.- How to run Java — the course project in IntelliJ IDEA, the same files on OneCompiler, a new file, and the Java version it all needs.
- Expressions, statements, and values — what has a value, what does something, and what the program’s state is made of, Pyret beside Java.
- Enums and records — a type whose values are all listed, the
switchthat answers for each of them, and a value made of named parts. - Lists in Java — Pyret’s list as a Java type,
map,filterandfold, the arrow, andcasesas aswitch. - Git and GitHub at home — your
cmsc-120-lstproject on any machine: the one-time setup, then commit and push, and pull, all from IDEA. ==or.equals— an inventory: what==compares for each kind of value in this course, where.equalsis the question instead, and which oneCheck.isuses.
What we work through together in class has its own section: In Class, one page per meeting.
Exam practice
- Progress Exam 2 — what it covers, and how to prepare.
- Progress Exam 1 — what it covered, with the four problems and their solutions.
- Practice Exam 1 — the four problems from Wednesday, September 16, with worked answers. It was not marked.
Software
All the items below are freely available for using online or for downloading and local use. Prefer latest versions if unsure.
https://code.pyret.org/ – Pyret as online service
- Alternatively: VS Code with the Pyret extension
https://onecompiler.com/java – Java as online service
a Java IDE, for instance:
VS Code from Microsoft with the Java extension
JavaFX, TYPE: SDK (not jmods)
Git, a version control system
Where to get help
- Office hours — see Syllabus: Course info
- Course forum — see the Discord link on the {{ brightspace }}