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
9
u/gnosnivek Aug 25 '21
> why not just use C?
This is actually a really interesting question that I haven't thought about. I wonder if schools feel like they have to give both a low-level and high-level introductory programming experience, don't want to have one class for each, and fall back to C++ because you "can" do both in the same language.
I remember trying to tutor a student who was taking a C++ intro programming class, and after going through classes, constructors, inheritance, operator overloading, and some basic data structures, the class suddenly went "now for your final project, write a game of life simulation using only C constructs (arrays, malloc/free, printf)"
It was a gratuitous turn into "low level" programming (low level in massive air quotes here) and I wonder if that was there because someone said "well we need to make sure the students have experience with C before moving on" and nobody was willing to commit to actually having a quarter to properly teach it.