QuizNot attempted
DRY, KISS or YAGNI?
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- YAGNI
- YAGNI (you aren't gonna need it) says don't build speculative flexibility for a requirement that doesn't exist
- build for today and keep the code easy to change.
- Not DRY: there is no duplication to remove.
- Not KISS: related (the simple thing is simpler), but the specific smell is building for an imagined future.
- Not SRP: nothing here has too many responsibilities.