Skip to content

QuizNot attempted

DRY, KISS or YAGNI?

You build a plugin system "in case we need it later" for a form that has exactly one use today. Which principle says don't?
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.