The Hedonistic Engineering Method
Pick up a half-built project on Monday morning and two questions come first. What did we promise? How will I know it works? The method gives the next person the original request in the Compact and a test they can run.
The Compact
Written at Project GenesisKeep the words that started the job. The Compact records who the work is for, where it stops, and what success will look like. The team writes it once.
“Processing a 500MB NDJSON file uses less than 50MB of RAM”
From the Compact for jcsv, a command-line tool that turns JSON into CSV
The developer has a memory budget. The reviewer knows how big a file to feed the finished program.
What happens when the request changes?
Keep the original Compact in the project. Attach the change to the promise it affects so the next person can follow the decision.
- Accord
- The team wants to offer the converter as a public API. An Accord records the new direction, why it matters, and which parts of the project it affects.
- Amendment
- The team chooses how clients will sign in to that API. The Amendment points to the Accord. A change within the original scope can point straight to the Compact.
Foundations
Once per projectFour checkpoints take the team from the first conversation to a project anyone on it can build and test. Work through them in order.
0Project Genesis
Save the original request in the Compact. Set up the repository, the instructions for people and agents, and the task list. Make the first commit with a project that builds, even while it is empty.
1Project Charter
List the capabilities and mark which ones people need for the first delivery. Work out which depend on others, put them in build order, and estimate their size. For the converter, a formatter needs records it can read from the parser.
2Architecture Foundation
Draw where the data goes. Sketch the interfaces, record the decisions that shaped them, and mark the connections to other systems. A new contributor can now explain how the system fits together. In the converter, they can trace one record from input to output.
3Toolchain & Environment
Wire up the build, linter and test runner. Have continuous integration run all three on every push. The team can now check a fresh change the same way on another machine.
Who signs off on a Foundation?
The Steward records what the team delivered. The Advocate checks whose needs it meets. The Archivist checks the documents and their links. From the Project Charter onward, the Guardian also checks whether the requirements can be tested. All four record their sign-off in the task list before the team moves on.
Builds
For each capabilityTake one useful behavior all the way through. For the converter, that might be reading a file one record at a time. The same memory limit follows that work from the requirement to the integration check.
1Requirements
Write down what someone needs to do and the observable result they expect. Link each requirement to the Compact or to the Accord or Amendment that authorized it. The Advocate looks for missing cases.
2Design & Estimation
Decide how the capability will work and estimate the time for implementation, tests and documentation. For the converter, decide what stays in memory between one record and the next.
3Test-driven development
Write a test for each desired outcome and watch it fail. Include bad input and boundary cases. The Guardian reviews the test plan and signs off before implementation begins.
4Implementation
Write the code that makes those tests pass. Commit each logical change and keep the task list current so another contributor can pick up the work.
5QA & Docs
Record the steps you tried, the edge cases you checked, what passed, and what caused each failure. Document the behavior someone will actually use. The Archivist checks that the instructions match what the team built.
6Integration
Review the change, merge it, and run the regression suite. Check that the converter still writes correct CSV while it stays inside the memory budget. Update the architecture if it changed. The Guardian signs off on the capability.
When is a release ready?
Once per release, run the full regression suite and the release pipeline, review security, and bring the guides and release notes up to date. The Guardian signs first and can stop the release. The Archivist checks the record while the Advocate checks what users asked for. The Steward authorizes the release.