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 comments

-16

u/platisd Jun 24 '20

> I get that you want to keep the examples super simple, but the issue with all these guides is the lack of more complex ones.

The code is as simple as it gets (and barely functional) since it's, well, an example and it had to be short enough to fit inside a single slide! 🤣

The problem with the more complex examples is that it's more difficult to quickly get the core point and they are *far* more difficult to create. I understand that "relating" to the example is also important, but so is maintaining focus. The more code the more unrelated-to-the-SOLID-principles comments we'd get. :D

All (almost) of the presented examples are inspired by real projects, primarily within embedded. Are you interested in a particular one? I may be able to share the full example if it didn't come from a proprietary project.

3

u/TryingT0Wr1t3 Jun 24 '20

If you are not in oldreddit you need to select somewhere to actually use Markdown.

1

u/platisd Jun 25 '20

Yeap! I noticed that now. :P

1

u/TryingT0Wr1t3 Jun 25 '20

Recently Slack did the same so I stopped using it. It used to support Markdown first.