3 ms·
I believe a lot of these principles came out of the observation that some good codebases followed them, and this was taken as a sign that all good codebases sho
by userbinator 12y ago
I believe a lot of these principles came out of the observation that some good codebases followed them, and this was taken as a sign that all good codebases should; it's a sort of "if X is good, then not doing X is bad" type of fallacy. If you try to analyse them in detail they all have an element of subjectivity and vagueness (e.g. "what is a 'responsibility'?" ) that tends to encourage overabstraction and unnecessary, misguided extensibility. Blind, dogmatic application of a set of principles with little reasoning behind them is basically cargo-cult-programming in disguise. Trying to follow the indirections in such a codebase where SOLID has been applied liberally, which is particularly troublesome when debugging, does not make it any easier to maintain or extend.
There is no replacement for careful thought (including foresight) and pragmatic design.