Jersson G Arrivasplata Rojas
TipFundamentosSOLID1 min de lectura

Principio de Segregación de la Interfaz (ISP)

Interface Segregation Principle

Ninguna clase debe implementar interfaces con métodos que no utilice. Crea interfaces específicas según el tipo de cliente, no de propósito general.

  • Facilita refactorizar.
  • Brinda una buena estructura del código.
  • Permite un sistema desacoplado.
Jersson G. Arrivasplata RojasSoftware Engineer & Technical Leader · Lima, Perú
TipFundamentalsSOLID1 min read

Interface Segregation Principle (ISP)

Interface Segregation Principle

No class should implement interfaces with methods it does not use. Create specific interfaces for each type of client, not general-purpose ones.

  • It makes refactoring easier.
  • It gives the code a good structure.
  • It allows a decoupled system.
Original post
Jersson G. Arrivasplata RojasSoftware Engineer & Technical Leader · Lima, Perú
TipFundamentosSOLID1 min de leitura

Princípio da Segregação de Interfaces (ISP)

Interface Segregation Principle

Nenhuma classe deve implementar interfaces com métodos que não usa. Crie interfaces específicas para cada tipo de cliente, não de propósito geral.

  • Facilita a refatoração.
  • Dá uma boa estrutura ao código.
  • Permite um sistema desacoplado.
Jersson G. Arrivasplata RojasSoftware Engineer & Technical Leader · Lima, Perú

Apoya mis proyectos

Si una librería, guía o recurso de este sitio te fue útil, puedes aportar con Yape o Plin. Ayuda a mantener el código abierto y la documentación.

987 347 691Jersson G. Arrivasplata Rojas · Soles