2,772 reputation
1230
bio website
location Argentina
age 38
visits member for 3 years, 11 months
seen 5 hours ago

Software developer and science fiction fan.


May
22
comment Is Software Testing Really Needed?
@LorenPechtel I agree software testing alone wouldn't have solved the problem. But the causes for the problem were compound; there was not a single cause. There certainly were multiple serious software bugs, which would have been caught by testing. And I do think system integration tests would have been pretty damn useful.
May
21
comment Is Software Testing Really Needed?
@LorenPechtel Disagreed. While the failure was a mixture of multiple causes, at least parts of it could have been eliminated with testing. Some were clearly software defects, like this: "The software set a flag variable by incrementing it, rather than by setting it to a fixed non-zero value. Occasionally an arithmetic overflow occurred, causing the flag to return to zero and the software to bypass safety checks."
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim I disagree. The OP asked if C++ was popular on technical merit or due to luck or marketing. This answer stated marketing had nothing to do with it. I quoted well-known and respected colleagues of Stroustrup who claimed C++ wasn't a particularly good language at the time, but that Stroustrup's strong lobbying and willingness to include everything and the kitchen sink helped. That's marketing 101. Note I'm not talking about C++11 current merits, which is not what this question was about!
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim Wait, I'm trolling because I said C++ was not adopted on technical merit alone? Wow. I mean, WOW. Someone is sensitive...
May
20
comment Why is C++ preferred over C for commercial applications?
@Klaim No, I'm giving Ken Thompson's opinion of what C++ (not C++11!) was at the time Stroustrup was lobbying for its adoption. Note I quoted Ken Thompson saying C++ "wasn't cleanly designed" because "Stroustrup wouldn't say 'no' to anyone". How is that my opinion? ;) That C++ wasn't adopted merely on technical merit is supported by the above quotes.
May
19
comment Why is C++ preferred over C for commercial applications?
@Klaim, Blrfl - sure. All the marketing in the world won't make good engineers use a language that just plain doesn't work. So it wasn't the only factor. But the anecdotes are still there: that Stroustrup pushed hard for C++ adoption (that's a political/marketing aspect, not a technical one) and that he couldn't say "no", making C++ a hodgepodge language (that's a technical aspect, in the bad sense). And these aren't bloggers badmouthing Stroutstrup, but colleagues who are arguably better programmers than he ever was. Note I didn't include Linus' flamebait here :) So the OP was right.
May
19
revised Why is C++ preferred over C for commercial applications?
Removed assertions of "ugliness", while keeping the author's intent
May
19
comment Why is C++ preferred over C for commercial applications?
@RobertHarvey Agreed. Please see my proposed edit, which removes some loaded words.
May
19
suggested approved edit on Why is C++ preferred over C for commercial applications?
May
19
comment Why is C++ preferred over C for commercial applications?
My point with all these quotes is that there is some evidence there was pretty strong marketing efforts to make C++ a success, just as the OP guessed :)
May
19
comment Why is C++ preferred over C for commercial applications?
Also by Ken Thompson: "In an interview I said exactly that, that I didn’t use [C++] just because it wouldn’t stay still for two days in a row. When Stroustrup read the interview he came screaming into my room about how I was undermining him and what I said mattered and I said it was a bad language. I never said it was a bad language. On and on and on. Since then I kind of avoid that kind of stuff."
May
19
comment Why is C++ preferred over C for commercial applications?
Aha! It was Ken Thompson (not from academia, my bad): "Stroustrup campaigned for years and years and years, way beyond any sort of technical contributions he made to [C++], to get it adopted and used. And he sort of ran all the standards committees with a whip and a chair. And he said “no” to no one. He put every feature in that language that ever existed. It wasn’t cleanly designed—it was just the union of everything that came along. And I think it suffered drastically from that."
May
19
comment What makes OOP “good”?
@PeteH I'm no fan of OOP, but performance is not a good criticism. OOP has pretty performant implementations. The criticism is that it's not a particularly good paradigm, design-wise.
May
19
comment What makes OOP “good”?
"Object-oriented programming is an exceptionally bad idea which could only have originated in California." — Edsger Dijkstra. (Sorry, couldn't resist! :D )
May
19
revised Why is C++ preferred over C for commercial applications?
improved title (more specific to the actual question)
May
19
comment Why is C++ preferred over C for commercial applications?
Not to detract from your answer (which has my +1), but I think C++'s merit as a useful tool wasn't the only factor. I read somewhere Stroustrup lobbied pretty hard to get key people to use C++ (even throwing hissy fits when some of his colleagues from academia criticized the language). Can't find the link now, but it was in an article/blogpost by one of his colleagues.
May
19
suggested approved edit on Why is C++ preferred over C for commercial applications?
May
17
comment Use functions inside a loop declaration
@MainMa In support of wirrbel's answer: in the presence of multithreading, all bets are off. You can't rely on count() regardless of whether it's called each time or only at the beginning. Making sure the example works with multithreading is a whole separate discussion!
May
16
answered Mono patent safety
May
16
comment Chain class behaviour
+1 For the "King's Quest" pattern. Awesome definition :P (And since it is a Sierra-pattern, there is always the possibility of death if you make a mistake!)