PART 2 · CHAPTER 07
The Junior: The Apprenticeship Dilemma
Fast output is not learning unless the developer can reason about cause and consequence.
Saved locally in this browser, not synced to an account.
Central idea: Fast output is not learning unless the developer can reason about cause and consequence.
Why this chapter matters
When AI can draft a seemingly complete implementation within minutes, the important question is no longer only whether the program can be written. It is whether someone can explain its behaviour, judge the trade-offs, verify real-world assumptions and operate it responsibly. This chapter of Systems Over Syntax develops that distinction with a concrete software engineering situation.
Junior development is an apprenticeship in forming correct mental models. AI should create more opportunities for questioning and exploration.
It is helpful to separate a demonstration from a production commitment. Demonstrations show that a workflow can be expressed and executed. A production commitment adds obligations: correct behaviour under retry and failure, understandable ownership, measurable reliability, secure data handling, controlled change and a plan for recovery. AI can assist with all of them, but it cannot make an undefined business rule unambiguous by generating more code.
A practical engineering story
Situation. A junior developer asks AI to resolve intermittent 500 errors in a Node.js API.
What can go wrong. The suggested catch-all suppresses exceptions and returns success even when the database transaction failed.
This is the important moment in the engineering story. A team can look at the running application, see successful output and reasonably feel optimistic. But the missing case is often not visible in the demonstration. It appears when a user retries an operation, two events arrive in the wrong order, a dependency times out, an administrator changes permissions, or real traffic behaves differently from development traffic.
A catch-all handler that converts every database error into HTTP 200 makes dashboards appear healthy while customers lose data.
Before selecting a design, ask five questions:
- What outcome matters to the user? Define it without referring to a programming language or framework.
- What must always be true? Identify the invariants that protect business and technical correctness.
- What can fail? Consider duplicate requests, partial failures, invalid input, unavailable dependencies and conflicting updates.
- Who may decide or act? Make authorisation and accountability explicit.
- What evidence is sufficient? Decide how tests, logs, metrics or reviews will establish confidence.
These questions are useful whether the implementation is handwritten, AI-generated, assembled from managed services or built by a mixed human–agent team.
Designing the solution
Recommended approach. Require explanation of a fix, reproduce the failure, and add a failing test before accepting the change.
Concrete contract or example. Test the API with a simulated connection drop; expect 503, a correlation ID and no false success.
A useful design review should connect the business decision to executable evidence. Start by stating the expected behaviour in plain English. Then express the rule in a form a developer or an agent can implement, such as a state transition, contract, test case or access-control policy. Finally, determine which component enforces the rule and what happens if enforcement fails.
Evaluate explanations and failing tests, not the speed with which a patch is produced.
A lightweight engineering decision record
| Review item | Question to answer before release |
|---|---|
| Business goal | What measurable outcome makes the change worthwhile? |
| Data and ownership | Which system is authoritative, and who can modify the state? |
| Preconditions | What must be true before the operation is accepted? |
| Failure handling | What happens on timeout, duplicate submission or partial completion? |
| Verification | Which independent evidence proves the rule works? |
| Operations | What will alert us to a failure, and how will we recover? |
The table is intentionally short. A good engineering record does not have to be a lengthy document. It must preserve the decisions that someone else—human or AI—would otherwise have to rediscover.
Where AI helps, and where judgment remains important
AI is valuable for producing a first implementation, comparing alternative patterns, drafting tests, describing an unfamiliar library and identifying possible edge cases. The practical benefit is that engineers can examine more possibilities without manually writing each draft from scratch.
However, a generated solution can be internally consistent and still be wrong for the organisation. It may assume a different business policy, invent a missing constraint or select a design too complicated for the team to support. Even generated tests can merely confirm the same faulty assumption used in the implementation.
A disciplined workflow therefore uses AI as an accelerator inside the engineering process, not as a replacement for it. The person or team accountable for the result should be able to defend the design without pointing to the model’s confidence as evidence.
Failure analysis: test beyond the happy path
Suppose the initial version passes a basic demonstration. Before declaring the chapter’s example complete, challenge it from four angles:
- Correctness: Try an input or event sequence that violates an unstated assumption. What exactly happens?
- Security and permissions: Attempt the operation as an actor with insufficient authority. Does the trusted server reject it?
- Recovery: Interrupt the workflow halfway through. Can it resume safely or roll back without corrupting state?
- Maintenance: Imagine a second engineer changing this feature in six months. Can they discover the rationale and the acceptance tests?
A resilient system need not eliminate every possible failure. It must make important failures understandable, bounded and recoverable. The level of assurance should match the consequences: a hobby prototype and a financial transaction system should not have identical controls.
A focused exercise
Try this: Have the junior explain the bug without looking at the generated patch.
Write down the expected result before asking AI to implement it. Then ask an assistant for two alternative solutions and a list of assumptions. Check those assumptions against your own requirements. Choose an approach and add at least one negative test—one that should prove an unsafe or incorrect behaviour is blocked.
Finally, explain the result in a short design note: what changed, why this option was chosen, which risks remain and what evidence would justify deployment. This is a better test of engineering understanding than measuring how quickly a complete file appears.
Key takeaways
- Fast output is not learning unless the developer can reason about cause and consequence.
- AI can reduce the effort of creating an initial solution, while integration, verification and operational ownership remain real work.
- Domain rules, failure behaviour and access decisions should be explicit and enforced by trusted components.
- Evaluate time to verified value, not just code-generation speed.
- A good human–AI workflow makes assumptions visible and creates reusable evidence for the next change.
Questions for reflection
- Which assumption in this example would be most costly if it were wrong?
- How would you measure the difference between a fast implementation and a safe release?
- What additional context would allow another engineer—or an AI agent—to make a better decision?
- Which part of this workflow could be delegated, and which requires an accountable decision-maker?