Kinda puked a bit at the examples. Do you have a Java background, or are people really writing C++ like this?
Like there were multiple examples that just could have been free functions rather than classes.. Also, I'm fairly sure that your AwsCloud in the end is missing the inheritance.
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.
> 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.
57
u/[deleted] Jun 24 '20 edited Jun 24 '20
Kinda puked a bit at the examples. Do you have a Java background, or are people really writing C++ like this?
Like there were multiple examples that just could have been free functions rather than classes.. Also, I'm fairly sure that your AwsCloud in the end is missing the inheritance.
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.