#Dependency-Inversion
3 notas · última:
Ports and Adapters (Hexagonal Architecture), Explained with Two Real Codebases
Explains how ports, adapters, and a registry keep business logic independent from vendors, making payment, email, and frontend API changes cheaper and easier to migrate.
Dependency inversion in architectural patterns
The article says dependency inversion is common in architectural patterns because it protects a core from change through interfaces or adapters. It distinguishes cases where suppliers follow a defined SPI from cases where adapters translate between incompatible APIs.
Dependency Inversion vs. Dependency Injection
The article distinguishes dependency inversion as a principle that favors abstractions over concrete implementations, and dependency injection as a pattern that supplies those dependencies at runtime.
