Retour aux cas pratiques
SOLID PrinciplesAvancé

Refactoring d'une interface trop large vers ségrégation cohérente

Scénario

Contexte Une interface IDataService contient : read(), write(), delete(), export(), validate(). Le Problème Certaines implémentations n’utilisent que read() et write(). Contraintes Segmenter l’interface en interfaces plus petites spécialisées tout en maintenant compatibilité ascendante. Livrable attendu Une architecture respectant Interface Segregation Principle avec interfaces ciblées.

Compétences ciblées

solidispinterface-designrefactoringarchitecture
    Refactoring d'une interface trop large vers ségrégation cohérente — mise en situation SOLID Principles | CodeDuel