Abstractions
Adding abstractions in advance does not make code more flexible in practice. The article recommends programming against abstractions rather than concrete types. Interfaces should be defined for service roles such as notifiers and payment p…
2 sources - 6 claims
Adding abstractions in advance does not make code more flexible in practice. The article recommends programming against abstractions rather than concrete types. Interfaces should be defined for service roles such as notifiers and payment processors. Unnecessary abstractions create barriers for future developers trying to understand code. Separating responsibilities alone may not remove tight coupling to concrete implementations. An abstraction should not be added without an immediate concrete use case.