In Practice
Some things have been decided through experience. They don't need to be revisited - they need to be executed. Each traces back to the rules.
Settled decisions
- No ORM. SQL, written by hand.
- An ORM's model of the database never quite matches the database, and the gap becomes workarounds every developer has to learn. That's Rule One, not taste.
- Start on the lowest rung that works.
- SQLite before a database server. Move up only when you can't get away with the rung you're on.
- Dependencies earn their place.
- An outside tool is admitted only if it fits the direction of the plan. A tool built for different goals imposes its goals on yours. A second language's runtime is never tooling for the first.
- Deletion is deliberate.
- Soft deletes and audit columns are the default for records, so any past state can be reconstructed - not just the current one. Some data isn't a record: a health check that polls once a second doesn't need the history of every reading. And some data has to go - when the law requires it, when a person is entitled to have it gone, or when keeping it is the greater risk. Either way, losing history is a decision, never an accident.
- Pages are usable without JavaScript.
- Some interactivity may be lost, but the product never fails outright.
- Refactoring is incremental. Never big-bang.
- The code keeps working between every step.
Where the work is heading
These are partial implementations with a long way to go. They show the direction, not a finished proof.
- Paste to debug
-
Reproducible State · Errors That Teach
For an API that only reads, the exact URL your code is calling should work pasted into a browser, and if something's wrong, the response says what and how to fix it. That's safe because a read has no side effects. A call that changes something can't be replayed that way; that is what a really good log is for. The Bible Verse API is the live example, and it's half there: a bad action or a bad translation comes back with help, but a malformed verse reference still returns success with no syntax help.
- Errors that carry their own diagnosis
-
In dlpr_framework, a misconfigured app doesn't fail with a stack trace. When a request reaches the access check without an identity, the error names which middleware didn't run and where to wire it back in. It's shown in development and is logged in production.
- Warn, don't convert
-
The TAD format tools don't silently change your data. An operation with a side effect stops, says what would be lost, and tells you how to proceed deliberately - converting floats to integers loses stored precision, so it requires an intentional action.