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
3
u/[deleted] Aug 25 '21
Outch... I understand that you are not writing C++ every day and then it my be difficult because you need to ask yourself each time if you need to copy or reference (or move... don't forget the move please). But actually it is the very basics of C++.
Actually, the default (if any) should be to const ref when speaking about complex object like std container, not to copy. Ask yourself when you need to copy.