Daniel Duffy
C++ author, trainer
- Joined
- 10/4/07
- Messages
- 10,436
- Points
- 648
This reminds me of a discussion we have recently over whether it's still worth it to learn C.
I'm also glad that Daniel Duffy has the foresight to dedicate the first two levels in our online C++ certificate to teach C. I know a lot of students questioned that mightily but I'm sure it will serve them well in the long run.
It's pretty tempting as a beginner to take a shortcut and jump to the latest, most fashionable language at the moment, be it C#, F#, Ocaml, whatever but it's good to build a strong foundation first. And it's clear that one needs to be versatile and should know more than just one language.
In "Coders at Work' (http://goo.gl/kwmMq), it seems all of the people interviewed dislike C++. This might be a small sample but all the interviewees carry a lot of weight in the developer community.C++ is among the worst first languages to learn.
... according to Linus Torvald ...
I think we need a larger sample population.
I would try out the language as it was being developed and make comments on it. It was part of the work atmosphere there. And you’d write something and then the next day it wouldn’t work because the language changed. It was very unstable for a very long period of time. At some point I said, no, no more.
In an interview I said exactly that, that I didn’t use it 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.
...
It certainly has its good points. But by and large I think it’s a bad language. It does a lot of things half well and it’s just a garbage heap of ideas that are mutually exclusive. Everybody I know, whether it’s personal or corporate, selects a subset and these subsets are different. So it’s not a good language to transport an algorithm—to say, “I wrote it; here, take it.” It’s way too big, way too complex. And it’s obviously built by a committee.
Stroustrup campaigned for years and years and years, way beyond any sort of technical contributions he made to the language, 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.
In "Coders at Work' (http://goo.gl/kwmMq), it seems all of the people interviewed dislike C++. This might be a small sample but all the interviewees carry a lot of weight in the developer community.
Here is a link to a blog post by the author of the book:
http://gigamonkeys.wordpress.com/2009/10/16/coders-c-plus-plus/
There are plenty of strong opinions against C++ in that book but I will reproduce a fragment of Ken Thompson (http://en.wikipedia.org/wiki/Ken_Thompson) interview:
Definite +1 here.I suspect Coders at Work are academics and they have their own pet projects and esoteric languages. C++ is too close to engineering discipline I suspect.
I am not surprised. C++ is not for everyone.
People should make up their own minds and/or tell their own experiences.
I suspect Coders at Work are academics and they have their own pet projects and esoteric languages. Dominic Connor would would call them quiche languages'.
C++ is too close to engineering discipline I suspect for some folk.
Each to his own.
BTW could not find the interview by KT (just a Wiki page). Is there an executive summary?
http://www.thocp.net/biographies/papers/backus_turingaward_lecture.pdfI'd love to know what Backus, Dijkstra and Wirth have to say about C++.
I'd love to know what Backus, Dijkstra and Wirth have to say about C++.