Lurker News
In the recent years C++ received a lot of backlash due to its complexity and (perceived) feature creep. However, since C++11 I really enjoyed writing C++ with its strict type system (including const), range-based for loops, smart pointers, and how much you can do with templates. On the other hand, I know that it can be very tricky to write, for instance, a correct iterator, to get handling of rvalue references right, or to read error messages that involve templates.

So, do you enjoy or dislike writing C++ source code and why?

Comments (93) 66 threads

Earlier comments
BiraIgnacio#
since you asked, yes. Coding in C++ for me was mostly about having fun. Or trying to.

I know this doesn't add much to the conversation but, well.

kristiandupont#
When I switched from C++ to C# many years ago because of a job, I felt a real ick. Not just because of garbage collection, I remember feeling repulsed by the fact that every class had a "ToString()" method! Bjarne says that the common denominator of all classes is the empty set! But also, an English word, made from letters! Yuck! Everyone knows that you should only ever overload operators because special characters are so much purer!

My C# days are now long gone as well, and I guess when I switched to JS/TS, I was so deep in the filth that I had just surrendered. I will say though, that looking back, I do feel like I was in a bit of a cult. I appreciate abstractions being free or near-free, but it feels like the language sort of wants you to engage in bike shedding.

taspeotis#
I enjoy using C++ as “C with classes.”
codynaut#
I haven't been able to work in C++ for a few months now because of work and other projects, but I still love it, mostly because of how far down it lets you go. The last thing I used it for was reverse engineering Tarkov, only the PvE mode and not PvP because I'm not a dickhead, after a friend of mine was using a cheat there and I got curious whether I could build something similar myself.

Load more comments