r/cpp • • Nov 03 '26

How I design C++ classes

https://rafb.eu/blog/cpp-class-design/

This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.

66 Upvotes

46 comments sorted by

View all comments

Show parent comment

4

u/decapod2005 Nov 04 '26

Yeah like I said, it has its uses. If you need a class with stable ABI, great, use it. But even if you need that for some classes in your library, most will still be internal and not need it. So it is not great advice to generically say "Here is how you design a good class" and then show pimpl or a couple layers of oop.