Computing which screens to reread
We kept handwritten lists of the screens to reread when a record changed. We now compute them from the tables SQLite reads and writes.
For each command we wrote which screens to re-read. There were 37 such lists, with related code scattered across about 300 places. Of the 59 reads on screen, 12 were in no list. From the code alone we couldn't tell whether they were left out because they don't need re-reading or because someone forgot to write them down.
Filling in the 12 may make it right today. But if a screen starts reading another record tomorrow, the list is wrong again. The problem isn't that the list was written carelessly. It's that what the code actually reads and the list people wrote can move separately.
Based on what the app actually did
Finding table names in SQL wasn't accurate. So we used SQLite's authorizer. SQLite itself tells us which tables each SQL statement reads and writes. When a record is saved, every screen that read a changed table is read again.
At first we kept the hand-written lists too. It looked safer, but it meant managing the same fact in two places. If one is wrong, which do we trust? Today we deleted 25 hand-written lists and 70 name constants and moved reads into one typed table. We also cut the update causes written by hand from 44 to 15.
Now nobody has to remember which screens to read again.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
