WEBVTT

00:00:00.500 --> 00:00:03.546
Everything outside reaches the school through a public method.

00:00:04.447 --> 00:00:07.689
Think of each one as a door, and write three things on it.

00:00:08.588 --> 00:00:09.772
Who may come through.

00:00:10.671 --> 00:00:12.012
What they may ask for.

00:00:12.910 --> 00:00:13.926
What they get back.

00:00:14.825 --> 00:00:17.572
That is a contract, and it is yours to design.

00:00:18.470 --> 00:00:22.546
Write it as a table: method, caller, allowed when, reply.

00:00:23.444 --> 00:00:24.864
Notice what is missing.

00:00:25.762 --> 00:00:28.353
No method asks the caller which student they are.

00:00:29.252 --> 00:00:31.465
The school works that out from who is calling.

00:00:33.600 --> 00:00:36.672
Mira tries to record a score of one hundred for Sol.

00:00:37.573 --> 00:00:41.427
The door asks Courses one question: who teaches course twelve?

00:00:42.326 --> 00:00:43.107
Tov does.

00:00:44.005 --> 00:00:45.425
Mira is not Tov.

00:00:46.323 --> 00:00:48.510
She stops at the door and gets the reason.

00:00:49.409 --> 00:00:51.714
Nothing inside was asked to change.

00:00:52.612 --> 00:00:55.320
Now Tov tries to change Sol's score to sixty.

00:00:56.219 --> 00:00:58.914
Tov is the instructor, so the door opens.

00:00:59.813 --> 00:01:02.026
Office builds the action and dispatches it.

00:01:02.925 --> 00:01:06.154
The roll looks at its own state: Sol is already scored.

00:01:07.052 --> 00:01:08.081
It refuses.

00:01:08.979 --> 00:01:11.271
No prepared change, no block.

00:01:12.169 --> 00:01:13.732
There is no third way in.

00:01:14.630 --> 00:01:18.602
No door leads to the roll's memory, to Settings, or to anyone's

00:01:18.615 --> 00:01:19.005
memory.

00:01:19.904 --> 00:01:21.870
Passing a door gives you a request.

00:01:22.768 --> 00:01:24.240
It never gives you the data.

00:01:26.400 --> 00:01:27.780
Reads get doors too.

00:01:28.680 --> 00:01:32.417
A query door changes nothing, and it still has a caller rule.

00:01:33.316 --> 00:01:35.529
Mira may read her own transcript.

00:01:36.428 --> 00:01:39.891
Later today Mira will hold ticket seven, and Ode will not be

00:01:39.904 --> 00:01:41.376
able to read its status.

00:01:42.274 --> 00:01:45.490
And one locked door is for the controller alone: the dean sets

00:01:45.503 --> 00:01:46.428
the pass mark.

00:01:47.326 --> 00:01:48.563
Cross to the registry.

00:01:49.462 --> 00:01:52.573
Its authority is different, so its doors are different.

00:01:53.472 --> 00:01:57.782
Suspend, reinstate, accredit and revoke are locked to the board.

00:01:58.680 --> 00:02:01.571
Verify is open to anyone, and it only reads.

00:02:02.469 --> 00:02:06.024
Mira cannot suspend her own school, and neither can the dean.

00:02:06.922 --> 00:02:10.047
One door is left, and its caller is not a person.

00:02:10.946 --> 00:02:14.071
To issue a card, the caller must be a school canister that the

00:02:14.084 --> 00:02:15.594
board has added as a peer.

00:02:16.493 --> 00:02:19.370
The registry knows which school by who delivered the message,

00:02:19.592 --> 00:02:21.232
never by a name inside it.

00:02:22.131 --> 00:02:25.777
And that school may ask for one thing only: issue a card, for

00:02:25.790 --> 00:02:29.110
a course it is accredited to teach, while it is in good standing.

00:02:30.008 --> 00:02:31.141
It cannot revoke.

00:02:32.040 --> 00:02:33.954
It cannot speak for another school.

