Re:Refactoring in C++: Top Techniques and Best Practices – T...
by rileymat2 on Friday December 13, 2024 @09:16AM
(#42408581)
> Some of the tips are even quite dangerous and highly context dependent, like creating a base class when two classes share common functionality.
Yeah, I am a pretty big fan of inheritance, but that makes me cringe. Don't do this unless you understand the semantics of the class, and even then probably don't.
Yeah, I am a pretty big fan of inheritance, but that makes me cringe. Don't do this unless you understand the semantics of the class, and even then probably don't.