reference: the full school

reference: the story, the full path, the measured repository and the chapter list

demo-school

why

what breaks

Change + to - in apply and the replay still prints a number. A check that computes its answer by calling apply goes green. The closed-form oracle does not.

where it fits

This is a demo. A paid school is built over a real repository in the same shape: source anchors, runnable proofs, claims with standing, and a gate that goes red when the source changes.

try it

Open the first topic, run the grep in the proof callout, then change + to - in src/Ledger.fs and run grugschool check ..

the path through the cave

this is the order a reader needs. a page that says learn first must be read before the page that names it.

mid grug (level 2 of 6) (1 topic(s))
flowchart TB
  subgraph L2["mid grug (level 2 of 6)"]
  direction TB
  T1["1 one entry changes a balance by a fixed amount"]
  end
  click T1 href "ledger-apply.html" "one entry changes a balance by a fixed amount"
        
senior grug (level 3 of 6) (2 topic(s))
flowchart TB
  subgraph L3["senior grug (level 3 of 6)"]
  direction TB
  T1["2 replay is one fold over the entries"]
  T2["3 the oracle is a closed form, not a transcription"]
  end
  T1 --> T2
  click T1 href "replay-is-a-fold.html" "replay is one fold over the entries"
  click T2 href "closed-form-oracle.html" "the oracle is a closed form, not a transcription"
        
the same path as a plain list of links
  1. one entry changes a balance by a fixed amount mid grug (level 2 of 6)
  2. replay is one fold over the entries senior grug (level 3 of 6)learn first: one entry changes a balance by a fixed amount
  3. the oracle is a closed form, not a transcription senior grug (level 3 of 6)learn first: replay is one fold over the entries

what grug found in the repo

grug read the repo before anyone wrote a topic. The numbers here come from the files. There are 1 project(s) in 1 language(s). the lay of the land shows what each one measures and where they meet.

open the measured diagram and the size contrast
srcsrcF#, 3 files6 lines

one chapter for each project: 1 chapter(s) below

grug writes these with no author, from the files alone, and rebuilds them when the files change. Each chapter says what the project holds, in what order to read it, who uses it and what it uses. The topics explain why the code has this shape. Every chapter below is in the search too.

open the list of all 1 measured chapters
  • src, F#, 3 source file(s)

what goes wrong for this kind of app

every app of this kind must answer the same hard questions: what happens when the network goes, when the same request arrives twice, and who may do what. The catalog names each question, says what this codebase answers, and says plainly when there is no answer. 0 answer(s) in code, 0 partial, 0 missing, 0 not applicable, and 21 not yet judged. read the list.

what the levels mean

these are the six rungs of the cave. a page carries the badge of the rank it teaches.

  1. junior grug (level 1 of 6) follow a worked trace and say what the code did
  2. mid grug (level 2 of 6) say why one file has its shape and what breaks if it changes
  3. senior grug (level 3 of 6) trace a path through the system and name the parts it joins
  4. staff grug (level 4 of 6) predict how a change in one part shows up in another
  5. principal grug (level 5 of 6) judge a claim against the code and a proof
  6. distinguished grug (level 6 of 6) teach the shape of the system to another grug and change it without breaking what sits next to it

how to learn in the cave

  1. read this page first, then walk the path above from the top. earlier topics make later ones easy.
  2. every topic end with questions. Say the answer out loud first, then tap. grug remembers what you miss and asks again in the pop quiz.
  3. press / on any page to search every topic.
  4. when a topic page shows a demon watch box, grug measured the file it explains. The enemy is the complexity spirit demon, worse than a t-rex, because grug can see a t-rex. The box only tells you where to look, so open the file and look.
  5. You know a topic when you can explain it to another grug and change it without breaking what sits next to it.

back to the school