1// How I approach every feature
2async function buildFeature(requirements: Spec) {
3 // 1. Understand the WHY
4 const context = await understand(requirements);
5
6 // 2. Design before coding
7 const architecture = planArchitecture(context);
8
9 // 3. Build incrementally
10 for (const step of architecture.steps) {
11 const implementation = await implement(step);
12 const validated = await test(implementation);
13 await review(validated);
14 }
15
16 // 4. Optimize what matters
17 return optimize(implementation, {
18 metrics: ['performance', 'ux', 'maintainability']
19 });
20}