Design Patterns · Junior · Question 33 of 75

What does the YAGNI principle mean?

Explanation

You Aren't Gonna Need It: premature generality ("what if we need five languages") costs time and complicates code, and the assumptions often don't come true. It's not a ban on thoughtful architecture but a stance against "just in case" code.

Further reading

Problem with a question

Design Patterns · Junior · question 33

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz