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
ruslan#
I love C more than C++, but I still code in C++ occasionally. I try not to go beyond C++98 syntax (or C++2003). I hate templates, iterators and long namespaces. Basically I don't like STL, though I may use it. I use NULL for null pointers and I use pointers instead of references. I think this style was called "C with classes" back in the days. :-)
nly#
I write and review C++ all day every day.

The language has left a lot of people behind, and that's for the best. It's a different beast now

rebisway1 reply#
C++ is nice, after basic, turbo pascal, C, I meet C++ and a whole word opened in front of me. Classes where a good breakthrough for me. Although I never fail in love with templates and friends, oo is a very good way of organisation.

I style write open-source app (see my github) in c++, very small bin output, easy cross-platform,
I've been very reluctant with STL but now I got used to it, so far so good.
Ressent lambda and new threads capabilities is a good thing, well I liked it.
Although I use a lot C#, I keep doing some projects with c++. It's fun.

rosyyyy#
modern c++ offers great performance and cleaner code with STL, lambdas, and threads. github also makes open-source collaboration and code reviews easier.
adg001#
I never enjoyed programming in C++. I feel its (original) syntax and approach to OOP to be obnoxious. I never looked into C++11, though; I hope things improved. The first love was always for C; notwithstanding all its shortcomings, I feel at home writing C, and I would still enjoy doing so.

Load more comments