All challenges
Multiple ChoiceIntermediate 45s

ISP: fat interface vs client-specific ports

Six consumers use a Repository interface but each uses only 2 of 12 methods. What is the most defensible application of Interface Segregation here?
Options
  1. 1Keep one interface but document which methods each consumer may call
  2. 2Delete methods that appear unused across the codebase
  3. 3Replace the interface with a generic Object-returning method taking a string verb
  4. 4Split into focused role interfaces (Reader, Writer, Seeker) that consumers depend on

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