News for hackers. Stuff that matters.
Re:Popular Myths about C++, Part 3 by cheepin on Monday December 22, 2014 @09:35PM (#8786546)
"C++ sucks" has become a bit of a meme around here. The upsides outweigh the downsides for a surprising number of cases. Every alternative is either immature, doesn't solve the use case that needs C++ or doesn't have the required libraries/tools.
Re:Popular Myths about C++, Part 3 by cageface on Monday December 22, 2014 @11:29PM (#8786762)
There are people that sit back and bash C++ and then there are people that just roll up their sleeves and build really cool things with it. I'd certainly rather be in the second camp. I wouldn't mind having a simpler, more elegant language with the same design tradeoffs but that language doesn't yet exist.
Re:Popular Myths about C++, Part 3 by fsloth on Tuesday December 23, 2014 @02:05AM (#8787138)
My experience with legacy C++: Main problem with C++ is that it has lots of accidental complexity and a relatively weak standard feature set. The lava layer pattern is apparently very hard avoid in old applications. Due to the aforementioned weaknesses the lava layering now applies also to the modules that would be standard static modules in other languages. So it's a bit wastefull.

But since lava layering is caused by cultural and architectural issues I cannot claim that the system would be in any better shape just if some other language had been used.

Re:Popular Myths about C++, Part 3 by lomnakkus on Tuesday December 23, 2014 @12:45AM (#8786946)
False dichotomy. Plenty of people who "build really cool things with it" also bash C++, and rightfully so.
Re:Popular Myths about C++, Part 3 by cageface on Tuesday December 23, 2014 @01:58AM (#8787122)
Nobody I know. People I know that use C++ every day will admit it has issues but are also realistic enough to understand that any language with the same design constraints and long history as C++ will be complex.

It's the catbirds in the gallery that don't actually have to write the kind of apps that require a language like C++ that "bash" it.

Re:Popular Myths about C++, Part 3 by jbergens on Tuesday December 23, 2014 @06:47AM (#8787773)
But for projects that don't view those design constraints as very important and projects created when there were other languages that don't have the same history those compromises/explanations won't help. If/when there is a better language you don't have to suffer the history of C++ anymore, just use a newer language without the history. And if the constraints for example were to make it C compatible and very fast, for many projects those may not be of much importance anymore. Other language may be fast enough and easier to write in. I think it is probable that most of todays applications has lower speed requirements than C++ were aiming for. Those who needs speed can probably still use C.
Re:Popular Myths about C++, Part 3 by jevgeni on Tuesday December 23, 2014 @02:52AM (#8787235)
Catbirds like Linus Torvalds, for example?
Re:Popular Myths about C++, Part 3 by rgbrenner on Tuesday December 23, 2014 @03:26AM (#8787294)
Does Torvalds write anything in C++?

The kernel and git are in C

Re:Popular Myths about C++, Part 3 by jevgeni on Tuesday December 23, 2014 @03:56AM (#8787361)
This is my point exactly. I'd consider both git and the Linux kernel tough projects, so the choice of the programming language is interesting. More so, given his stance on C++.
Re:Popular Myths about C++, Part 3 by inDigiNeous on Tuesday December 23, 2014 @04:33AM (#8787455)
How come it's interesting ? Linus has always been a C -programmer, and kernel space is something where you want to keep things simple and access tha raw bits of things, so C is a natural choice.

And if you've been programming C for 20 years or more, writing git with C feels like a natural solution.

It's not always about writing stuff with the most high definition solution, it's more about expressing ideas with the tools you know also.

Re:Popular Myths about C++, Part 3 by jevgeni on Tuesday December 23, 2014 @09:04AM (#8788119)
In the case of git, C++ was actually evaluated (in a manner very natural to Linus) and not discarded due to some habit:

http://harmful.cat-v.org/software/c++/linus

Re:Popular Myths about C++, Part 3 by yongjik on Tuesday December 23, 2014 @01:51PM (#8789528)
> I've come to the conclusion that any programmer that would prefer the project to be in C++ over C is likely a programmer that I really would prefer to piss off, so that he doesn't come and screw up any project I'm involved with.

Quintessential Linus, but I wouldn't call this an "evaluation"... :)

Re:Popular Myths about C++, Part 3 by jevgeni on Tuesday December 30, 2014 @11:06AM (#8815110)
Fair enough.

As a side note: I think we as a community should promote the catchphrase "You've Been Torvalds'd".

Re:Popular Myths about C++, Part 3 by nadams on Monday December 22, 2014 @10:53PM (#8786694)
I want to point out that Tiobe ranks C++ as the #4 most popular language - http://www.tiobe.com/index.php/content/paperinfo/tpci/index....

I'll just say I'm not a fan of C++ and would rather write my own language similar to the source-to-source compiler idea of HaXe ( http://haxe.org/ ).

Re:Popular Myths about C++, Part 3 by _RPM on Tuesday December 23, 2014 @01:31AM (#8787047)
Another meme / idiom seems to be "Why use C/C++ when you can use Rust?"
Re:Popular Myths about C++, Part 3 by Retra on Tuesday December 23, 2014 @02:46AM (#8787220)
Sounds better than labelling anything you've seen twice as a meme/idiom/myth/design pattern, etc.
Re:Popular Myths about C++, Part 3 by adamnemecek on Monday December 22, 2014 @10:26PM (#8786644)
I know. I was hoping he would respond with some misguided suggestion further revealing his ignorance.