"매 simplest-thing-that-could-possibly-work". 매 1960s Lockheed Skunk Works 의 Kelly Johnson 의 aerospace heuristic → 매 software 매 universal 의 design principle. 매 sibling: YAGNI, Worse-is-Better, Occam's Razor.
// Simple: 1 service, postgres
app.post('/order',async(req,res)=>{constorder=awaitdb.orders.create(req.body);awaitsendEmail(order);res.json(order);});// Only when justified by load/team-size: split into microservices.
Dependency minimalism
# package.json 매 audit — every dep is liability
npm-check --unused
depcheck
Config 매 default-driven
// Bad: 27 required env vars
// Good: smart defaults, override only when needed
constPORT=process.env.PORT??3000;constDB_URL=process.env.DATABASE_URL??'postgres://localhost/dev';
Naming for clarity
// Bad
functionp(d: any[]){/* ... */}// Good
functionpaginate(items: Item[]):Page<Item>{/* ... */}
매 결정 기준
상황
Choice
First version
Simplest possible, single file if needed
매 second feature 의 same shape
Still don't abstract
매 third 의 same shape (Rule of Three)
Now abstract
기본값: Inline the code. Abstract only when 매 third 의 same pattern emerges.