I wish someone would publish this "tasteful subset of C++," kind of like Douglas Crockford's Javascript: The Good Parts. Then I could just learn that and skip all the crazy template shit.
Check out the Google C++ Style Guide. I'm biased (being a Googler), but I think it leads to pretty nice and readable C++:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.x...
Re:LLVM's Clang Successfully Self-Hosts
by Locke1689 on Friday February 05, 2010 @05:57AM
(#1103273)
This is fantastic. My main gripe with C++ in non-system code is that there are too many features which complicate the code base and should never be used. This seems like great guidelines and a good subset.
thxu.
Too bad it assumes knowledge of C++. I hope I can still follow it with my limited C++ knowledge.
I'm no longer certain which I consider is the better language to code in overall. I've heard the C++ hate from Yossi Kreinin, Linus Torvalds, Steve Yegge, and other high profile people, and I've experienced the pain and misery of trying to understand and use its more complex features myself, but in the end, for most applications are you really better off sticking with C than using a "tasteful subset of C++" like the LLVM team does?