Multiple ChoiceBeginner 45s
Premature abstraction cost
A team writes three generic interfaces, a factory, and a strategy layer for a feature that has exactly one implementation and no known variation. What is the primary risk?
Options
- 1The code will fail to compile in most languages without a second concrete implementation present
- 2It will become impossible to add automated tests for the single feature at any later point
- 3Indirection that adds cost and complexity without a real second case to justify it
- 4The application will run noticeably slower at runtime due to the extra layers of delegation
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.