M
M
Max Onflic2015-12-22 17:41:51
Objective-C
Max Onflic, 2015-12-22 17:41:51

SOLID. Dependency conversion. Abstractions should not depend on details. Details should depend on abstractions. What do you mean by "details"?


if possible, an example in Objective C / Swift

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Kuznetsov, 2015-12-22
@max-kuznetsov

Robert Martin once said about this that there should be no dependencies on concrete classes, and relationships should lead to an abstract class or interface. Consider that "details" are a concrete implementation, and "abstraction" is a certain selected basis, necessary and sufficient for defining a connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question