News for hackers. Stuff that matters.
Re:Has C++ jumped the shark? by greyman on Monday March 28, 2011 @03:55PM (#2379794)
But you can already have "simple C++", just specify for your project which parts of the language you want/don't want to use, and enforce it. This I think is a good coding practice, and for example Google also have its own C++ Style guide (http://google-styleguide.googlecode.com/svn/trunk/cppguide.x...). For example, you can specify that you will not use exceptions, template meta-programming, default parameters, etc.

This I think is the power of C++ - it is a multi-paradigm language, and you are perfectly free to not use some of the paradigms, or more powerful techniques.

Re:Has C++ jumped the shark? by cicero on Monday March 28, 2011 @04:08PM (#2379846)
Several years after I swore I would never work in C++ again, I agreed to do C++ in order to get a job with a company I was really interested in joining. I ended up working on a project that used C++ with lots of rules and restrictions, and it was not too bad except for lots of boilerplate.

I would like to see something better come along that has some of the low-level power of C, but also supports sophisticated high-level abstractions. I was hoping Go might fit that bill, but the Go designers have made some interesting choices that seem to alienate a lot of developers.

Re:Has C++ jumped the shark? by coliveira on Monday March 28, 2011 @06:09PM (#2380317)
> I would like to see something better come along that has some of the low-level power of C, but also supports sophisticated high-level abstractions

Objective C this very well. It adds classes and protocols. Closures can be implemented with blocks. Everything else is the same as in C.

Re:Has C++ jumped the shark? by cpeterso on Tuesday March 29, 2011 @01:40AM (#2381519)
As a C++ programmer dabbling in Objective-C, I have been extremely impressed. After clearing the "weird syntax" hurdle, Objective-C is a beautiful language. It is object-oriented, type-safe when you want, dynamic when you want, and C-compatible without all the problems C++ added.

However, much of joy of using Objective-C is Apple's Cocoa Foundation classes. Stuff like autorelease and NSString are not part of Objective-C's core language. And support for Objective-C or Cocoa on non-Apple platforms is limited or not well-supported.

Re:Has C++ jumped the shark? by blub on Tuesday March 29, 2011 @03:28AM (#2381759)
The problem with Objective-C is that it only adds things, it doesn't make the C part easier to use or safer.

As you've said: everything else is the same as in C.

Re:Has C++ jumped the shark? by cicero on Saturday April 02, 2011 @07:39PM (#2401282)
I've been intending to try Objective C for many years now. I like C, I like Smalltalk, and I like Mac OS. Maybe when I finish my degree, but there's no time now.
Re:Has C++ jumped the shark? by robrenaud on Monday March 28, 2011 @05:09PM (#2380110)
Maybe try D? An­drei Alexan­dres­cu likes it, and he knows C++ really well.
Re:Has C++ jumped the shark? by wglb on Monday March 28, 2011 @09:01PM (#2380869)
My theory is, upon reading his book, is that he knows it as well as all but two or three people anywhere.
Re:Has C++ jumped the shark? by andralex on Monday March 28, 2011 @11:26PM (#2381235)
Could you please clarify that a bit? That would imply that either everybody knows C++ or that I don't. Thanks!
Re:Has C++ jumped the shark? by njs12345 on Tuesday March 29, 2011 @12:28AM (#2381338)
My reading of that comment is that he's saying you're in the top 4 worldwide..
Re:Has C++ jumped the shark? by andralex on Tuesday March 29, 2011 @01:08AM (#2381432)
Lysdexia is killing me.
Re:Has C++ jumped the shark? by wglb on Wednesday March 30, 2011 @08:33AM (#2386890)
Sorry for the confusion.

I was trying to say that he (is that you??) understand more about C++ than almost everybody.