Skip to content

Glossary: Software Design Patterns in Java

Premature abstraction

Adding an interface, base class or factory before there are two or three real cases. It guesses what will vary, and a wrong guess is hard to undo.

Where the book teaches it

Related terms

Rule of threeYAGNI