All challenges
Multiple ChoiceIntermediate 45s

Wrong abstraction (Sandi Metz)

Two features were unified behind a shared abstraction, but callers keep adding conditionals and boolean flags to the shared method. What does this most likely indicate?
Options
  1. 1The callers are badly written and should be refactored to match the abstraction
  2. 2More configuration flags should be added to make the abstraction flexible
  3. 3The abstraction should be replaced with an even more generic one
  4. 4The abstraction is wrong; the shared code should be split back into separate, explicit implementations

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.

Play this in a 3-minute battle