9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
126 lines
3.5 KiB
Markdown
126 lines
3.5 KiB
Markdown
---
|
|
id: wiki-2026-0508-kiss-keep-it-simple-stupid
|
|
title: "KISS (Keep It Simple, Stupid)"
|
|
category: 10_Wiki/Topics
|
|
status: verified
|
|
canonical_id: self
|
|
aliases: [KISS Principle, Keep It Simple]
|
|
duplicate_of: none
|
|
source_trust_level: A
|
|
confidence_score: 0.95
|
|
verification_status: applied
|
|
tags: [principle, design, software-engineering]
|
|
raw_sources: []
|
|
last_reinforced: 2026-05-10
|
|
github_commit: pending
|
|
tech_stack:
|
|
language: any
|
|
framework: any
|
|
---
|
|
|
|
# KISS (Keep It Simple, Stupid)
|
|
|
|
## 매 한 줄
|
|
> **"매 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.
|
|
|
|
## 매 핵심
|
|
|
|
### 매 mechanism
|
|
- 매 each abstraction 의 cognitive cost 의 measure.
|
|
- 매 minimum-viable design → 매 iterate.
|
|
- 매 complexity 매 emergent, never additive cheap.
|
|
|
|
### 매 forms
|
|
- **Code**: fewer lines, fewer abstractions, fewer dependencies.
|
|
- **API**: fewer endpoints, fewer params, fewer states.
|
|
- **System**: fewer services, fewer protocols, fewer config knobs.
|
|
|
|
### 매 응용
|
|
1. Pre-mature abstraction avoidance (Rule of Three).
|
|
2. Boring-tech preference (PostgreSQL > custom DB).
|
|
3. Monolith-first (Fowler), microservices later if needed.
|
|
|
|
## 💻 패턴
|
|
|
|
### KISS 매 too-complex (anti)
|
|
```ts
|
|
// Over-engineered: factory + builder + strategy for "add 2 numbers"
|
|
class AdderFactory {
|
|
static create(strategy: AddStrategy): Adder { /* ... */ }
|
|
}
|
|
```
|
|
|
|
### KISS 매 right
|
|
```ts
|
|
const add = (a: number, b: number) => a + b;
|
|
```
|
|
|
|
### 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);
|
|
});
|
|
|
|
// Only when justified by load/team-size: split into microservices.
|
|
```
|
|
|
|
### Dependency minimalism
|
|
```bash
|
|
# package.json 매 audit — every dep is liability
|
|
npm-check --unused
|
|
depcheck
|
|
```
|
|
|
|
### 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';
|
|
```
|
|
|
|
### 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]]
|
|
- 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 |
|