Capstone projects
Three programs built lesson by lesson, each one finishing a piece the course already taught. The first writes JSON: a sealed interface of records for the values, an object and an array, and a writer with a StringBuilder, escaping, and an output checked by hand. The second is a task tracker: records, a status enum, an in-memory store, a text format that saves the tasks and reads them back, a command line with a status per verb, and a JUnit test of the store. The third puts the tracker behind HttpServer, with JSON by hand and a curl request against it, tests of the handler, and a runnable jar with a Main-Class.
129
Capstone 1: a JSON value
a sealed interface of records, null, a number, a string, an object
Open
130
Capstone 1: writing JSON
a writer with StringBuilder, escaping, the output checked by hand
Open
131
Capstone 2: a task model
records, a status enum, an in-memory store, the operations
Open
132
Capstone 2: saving tasks
a text format, Files, a missing file, a round trip
Open
133
Capstone 2: the command line
args, a command per verb, an error status, a JUnit test of the store
Open
134
Capstone 3: an HTTP service
HttpServer, a handler, JSON by hand, curl against it
Open
135
Capstone 3: tests and a runnable jar
JUnit tests of the handler, jar with a Main-Class, java -jar
Open