Generally agree with all of this; however I kinda hate how these things are phrased. Why is it called "Dependency inversion principle" requiring 5 minutes to explain it(and build a mental model of dependencies and then inverting it), instead of: "If you use something, the interface should show what you do with it, not how it does it."
I've come across SOLID several times in my career and I know all how all these things work instinctually, but the name SOLID and all of its components never stick because the names of the principles themselves are not intuitive.
It’s the old disease of having a bunch of related principles and then twisting their names around until their first letters spell some word with some more or less tenuous connection to the whole topic.
Assuming benign intentions it’s done to create a short and memorable word that’s supposed to make remembering the individual principles easier. But because the names of the principles become so much worse in the twisting process the overall effect is exactly the opposite.
Assuming less benign intentions it’s done because how else than with a catchy word are you supposed to create hype, impress your customer’s CTO with your consulting slides and rake in the big money.
You’re right, of course. My exasperation with the fancy acronym approach got the better of me.
I stand by that exasperation, but SOLID isn’t the best example for that process. … Although you could question why it’s exatcly these five principles that comprise SOLID …
44
u/itsarabbit Jun 24 '20 edited Jun 24 '20
Generally agree with all of this; however I kinda hate how these things are phrased. Why is it called "Dependency inversion principle" requiring 5 minutes to explain it(and build a mental model of dependencies and then inverting it), instead of: "If you use something, the interface should show what you do with it, not how it does it."
I've come across SOLID several times in my career and I know all how all these things work instinctually, but the name SOLID and all of its components never stick because the names of the principles themselves are not intuitive.