Skip to content

SOLID

Five design principles that make code flexible and maintainable:

  • S - Single Responsibility: one reason to change;
  • O - Open/Closed: open for extension, closed for modification;
  • L - Liskov Substitution: subclasses substitute base;
  • I - Interface Segregation: narrow interfaces;
  • D - Dependency Inversion: depend on abstractions.

Why in AI Projects

Scripts and pipelines quickly grow. SOLID helps keep them modular: replacing a model or storage does not break everything.

See Also

← All terms