r/cpp • • 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

327 comments sorted by

View all comments

Show parent comments

9

u/NotYoDadsPants Aug 25 '21

Just as a friendly FYI, you might be tempted to use new when you should not. Here's a nice SO answer as to when is the right time use new, that is to use dynamic allocation.

1

u/gc3 Aug 25 '21

Although it forgets static allocation as the third type