Cost of Premature Abstraction

Back to YAGNI

Abstractions created before the problem is fully understood often prove wrong. Removing or changing a premature abstraction is harder than adding the right one later. “Duplication is far cheaper than the wrong abstraction” (Sandi Metz).

property yagni premature-abstraction