4 ms·
OOP is not C++ best practice these days. For me C++ best practice is: - Smart pointers - auto and const references all over the place - RAII - Pure data str
by pharmakom 4y ago
OOP is not C++ best practice these days. For me C++ best practice is:
- Smart pointers
- auto and const references all over the place
- RAII
- Pure data structs
- Free functions
- A little bit of templating but not too crazy
Modern C++ reads a bit like JavaScript strangely!
- Shorel 4y ago> Modern C++ reads a bit like JavaScript strangely! I yield to your comment.
- FpUser 4y agoThere is no "best practice". It depends on context. OOP is good for some things and not that much for others. Same goes for your list of "best" practices. Dismissing a paradigm in totality because some Joe Shmoe of today has declared it non cosher looks rather more like a religious statement than a practical choice.
- lelanthran 4y ago> OOP is not C++ best practice these days. I didn't say it was. I didn't say anything about best practice, only about familiarity.
- pharmakom 4y agoGood point. Bad ideas don’t die, only practitioners