Skip to main content
InterviewHubPRO
Section Overview
Q31

Question 31 of 50

Part 3: Enterprise Architecture, Package Design & Enforcement (25 - 35)

62%
SOLID & OOP Principles (50 Qs)•Part 3: Enterprise Architecture, Package Design & Enforcement (25 - 35)

What is the Rule of Three in software refactoring and avoiding Premature Abstraction?

senior LevelSystem Design

In Simple Words: Don't extract a shared abstraction when you see code duplicated once. Wait until you write it for the third time so you have enough data points to create the correct abstraction.