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
134
u/[deleted] Aug 25 '21
"Modern C++" is much different than what a lot of students encounter in academia. I've heard some stories of the "best practices" from university courses and it sends shivers down my spine (`using namespace` everywhere, not using smart pointers, avoiding standard library, C-style structs only, etc.).
I really like C++ for the ludicrous amounts of control it gives you, and it's great for having enough high-level features to interface directly with C code without writing or getting bindings for things. A lot of the work gets front-loaded into setting up a build, so I just made up my own "starter" project for things. The simplicity of using C code and intrinsics and massive ecosystem improvements in Ada means I've been using that a lot lately, though I've used Rust quite a bit in the past as well.
I don't think you could go wrong using C++, as long as you're using updated references to learn from. Yes, the language is complicated and it seems overwhelming, but the overall system has improved immensely and you'll be learning a lot of neat low-level things.