r/cpp • u/Its_Blazertron • Aug 25 '21
Experience C++ developers: do you enjoy using C++ (even for personal/hobby projects?)
Do you actually enjoy using C++, or do you only use it for work, or purely for performance? This question is aimed at people with years of experience, who've worked on large projects in C++. I see people who dislike the language, but use it purely for performance reasons. This sort of discourages me from learning it. I don't want programming to feel like work.
204
Upvotes
18
u/echidnas_arf Aug 25 '21
Nothing wrong with classes, and nothing wrong with an object-oriented approach, if appropriate.
Just be aware that C++ offers other ways of implementing polymorphic behaviour, such as static polymorphism (i.e., templates) and runtime polymorphism based on type erasure which are often more appropriate than classical OO class hierarchies.