[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,91 +2,124 @@
|
||||
id: wiki-2026-0508-kiss-keep-it-simple-stupid
|
||||
title: "KISS (Keep It Simple, Stupid)"
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-KISS-001]
|
||||
aliases: [KISS Principle, Keep It Simple]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.95
|
||||
tags: [auto-reinforced, kiss-principle, design, simplicity, engineering, minimalism]
|
||||
verification_status: applied
|
||||
tags: [principle, design, software-engineering]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-20
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: any
|
||||
framework: any
|
||||
---
|
||||
|
||||
# [[KISS (Keep It Simple, Stupid)|KISS (Keep It Simple, Stupid)]]
|
||||
# KISS (Keep It Simple, Stupid)
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "복잡함은 적이다: 아무리 뛰어난 기술이라도 단순함을 잃으면 관리할 수 없게 된다는 엔지니어링의 신조이자, 누구나 이해하고 유지보수할 수 있는 '최소한의 구조'가 가장 강력한 해법이라는 간결함의 미학."
|
||||
## 매 한 줄
|
||||
> **"매 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.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
KISS 원칙은 미 해군에서 유래한 설계 원칙으로, 시스템은 단순할 때 가장 잘 작동한다는 철학입니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **핵심 지침**:
|
||||
* 불필요한 복잡성(Over-engineering)을 경계하라.
|
||||
* 한 번에 한 가지 일만 잘하는 작은 도구를 만들어라. ([[Modular-Design|Modular-Design]]과 연결)
|
||||
* 설명하기 어려운 로직은 대개 잘못된 아키텍처의 산물이다.
|
||||
2. **왜 중요한가?**:
|
||||
* 소프트웨어 개발에서 복잡성은 버그와 기술 부채의 원상이며, 단순한 코드가 최고의 가독성과 성능을 보장하기 때문임. ([[Efficiency|Efficiency]]와 연결)
|
||||
### 매 mechanism
|
||||
- 매 each abstraction 의 cognitive cost 의 measure.
|
||||
- 매 minimum-viable design → 매 iterate.
|
||||
- 매 complexity 매 emergent, never additive cheap.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌**: 과거에는 화려하고 거대한 프레임워크 정책이 기술력을 상징했으나, 현대 정책은 최소한의 의존성과 직관적인 API 정책을 가진 도구가 수백만 개발자의 선택을 받는 '심플리티 정책'이 승리함(RL Update).
|
||||
- **정책 변화(RL Update)**: AI 프롬프트 엔지니어링 정책에서도, 복잡한 지시문보다 명확하고 단순한 구조의 프롬프트가 모델의 성능 정책을 더 안정적으로 끌어내는 경향이 확인됨.
|
||||
### 매 forms
|
||||
- **Code**: fewer lines, fewer abstractions, fewer dependencies.
|
||||
- **API**: fewer endpoints, fewer params, fewer states.
|
||||
- **System**: fewer services, fewer protocols, fewer config knobs.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Efficiency|Efficiency]], [[Technical-Architecture|Technical-Architecture]], [[Design-System|Design-System]], [[Iterative-Development|Iterative-Development]], [[Scalability|Scalability]]
|
||||
- **Modern Tech/Tools**: Minimalist UI design, Microservices, Function-as-a-Service (FaaS).
|
||||
---
|
||||
### 매 응용
|
||||
1. Pre-mature abstraction avoidance (Rule of Three).
|
||||
2. Boring-tech preference (PostgreSQL > custom DB).
|
||||
3. Monolith-first (Fowler), microservices later if needed.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
## 💻 패턴
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
### KISS 매 too-complex (anti)
|
||||
```ts
|
||||
// Over-engineered: factory + builder + strategy for "add 2 numbers"
|
||||
class AdderFactory {
|
||||
static create(strategy: AddStrategy): Adder { /* ... */ }
|
||||
}
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### KISS 매 right
|
||||
```ts
|
||||
const add = (a: number, b: number) => a + b;
|
||||
```
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Service split: simple-first
|
||||
```ts
|
||||
// Simple: 1 service, postgres
|
||||
app.post('/order', async (req, res) => {
|
||||
const order = await db.orders.create(req.body);
|
||||
await sendEmail(order);
|
||||
res.json(order);
|
||||
});
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
// Only when justified by load/team-size: split into microservices.
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Dependency minimalism
|
||||
```bash
|
||||
# package.json 매 audit — every dep is liability
|
||||
npm-check --unused
|
||||
depcheck
|
||||
```
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### Config 매 default-driven
|
||||
```ts
|
||||
// Bad: 27 required env vars
|
||||
// Good: smart defaults, override only when needed
|
||||
const PORT = process.env.PORT ?? 3000;
|
||||
const DB_URL = process.env.DATABASE_URL ?? 'postgres://localhost/dev';
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### Naming for clarity
|
||||
```ts
|
||||
// Bad
|
||||
function p(d: any[]) { /* ... */ }
|
||||
|
||||
// Good
|
||||
function paginate(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.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Software-Design-Principles]]
|
||||
- 변형: [[YAGNI]] · [[Worse-is-Better]] · [[Occams-Razor]]
|
||||
- Adjacent: [[Premature-Optimization]] · [[Rule-of-Three]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: design review, architecture decision, code review (cut complexity).
|
||||
**언제 X**: 매 inherent-complexity domain (compilers, crypto, distributed consensus) 매 simplification 매 wrong-target.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **Premature abstraction**: 1 use 의 abstraction 매 wrong shape.
|
||||
- **Configuration explosion**: every-flag-as-knob.
|
||||
- **Microservices day-one**: 매 distributed monolith 의 invitation.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Kelly Johnson — Lockheed Skunk Works; Rich Hickey — Simple Made Easy talk; Worse-is-Better essay).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — KISS FULL content with anti-patterns |
|
||||
|
||||
Reference in New Issue
Block a user