Available now
The thousand token rule
AIPlatform agnosticAdvanced
A practical guide to professional software development with AI assistants. Learn to front-load decisions into cheap document iterations, use AI to enforce good practices, and ship quality code faster.
Chapters
Test planning
Systematic planning before writing tests. Edge case identification, failure mode enumeration, and coverage goals.Stubs as specification
Code structure without implementation. Type signatures, documentation, and assertions as executable specs.Interface first contracts
Treating internal boundaries like external APIs. The companion file pattern and dependency management.Machines checking machines
Automated verification of AI-generated code. Build repeatable pipelines and configure tools for signal over noise.Languages and feedback quality
How language choice affects AI effectiveness. Comparing feedback loops across Rust, TypeScript, Go, and Python.Unit tests as contract
Test-driven development with AI. Writing tests against stubs, property-based testing, and when tests reveal design problems.Integration and end to end tests
Beyond unit tests. The testing pyramid, environment management, and test isolation strategies.Implementation as formality
When implementation feels inevitable. The constraint check and recognizing when to go back instead of improvising.One function at a time
Small increment implementation. The implement-test-commit rhythm and model routing for cost optimization.Context management
Structuring code for limited context windows. Context budgets, the companion file pattern, and module sizing.Audit and triage
Post-implementation verification. Specialized audits, the audit loop, and prioritizing findings.Review by exception
Focusing human attention. Change classification, risk-based review, and auto-commit criteria.Guided review
AI-assisted human review. Pre-review explanations, catching inconsistencies, and cost-benefit analysis.Plans become documentation
Evolving planning artifacts into long-term docs. The documentation lifecycle and avoiding duplication.The feedback loop
Improving the process over time. Metrics, template evolution, and knowing when to break the rules.
Details
| Format: | Text, diagrams, templates, code examples |
| Audience: | Developers using AI coding assistants |
| Platform: | Platform-agnostic (examples in Rust) |
| Length: | 8-12 hours |