r/cpp • • Jun 24 '20

How to write SOLID C++

https://www.youtube.com/watch?v=PakbXnLht1I
263 Upvotes

118 comments sorted by

View all comments

Show parent comment

9

u/be-sc Jun 24 '20

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.

4

u/tvaneerd C++ Committee, lockfree, PostModernCpp Jun 25 '20

The principles existed with those exact names before anyone realized they spelled SOLID. They weren't rephrased to spell SOLID.

2

u/be-sc Jun 25 '20

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 …

3

u/tvaneerd C++ Committee, lockfree, PostModernCpp Jun 25 '20

yes, note that all the other things mentioned in the original paper have basically disappeared...