论坛首页 海阔天空论坛

我的偶像之一对C++的看法

浏览 7559 次
精华帖 (9) :: 良好帖 (0) :: 灌水帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2010-02-08   最后修改:2010-02-08
这就怪不得我每次看到C++都心烦意乱

摘录一段

Ken Thompson, who still mostly uses C despite working at Google which is largely a C++ shop, has had as long an exposure to C++ as just about anyone, having worked with with Bjarne Stroustrup, C++’s inventor, at Bell Labs:

引用
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.

At that point in the interview I almost changed the topic. Luckily I took one more try at asking for his actual opinion of C++. His reply:

引用
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.


我有机会和Stroustrup聊过那么几个小时,很好的一老头,Thompson把他说得太可怜了吧,尽管是为了自己的“儿子”

还有很多牛人,好像都不太爽,简直是大批判呀

http://www.gigamonkeys.com/blog/2009/10/16/coders-c++.html

C++ fans别拍我,我真的看到C++就心烦意乱


   发表时间:2010-02-08  
C过于原始; C++庞大复杂且有多个不同实现; Java居然跑在虚拟机上,速度很成问题;VB看上去能干所有事情,但实际什么也干不了;JavaScript有莫名奇妙的语法 ... 实际上,到现在也没找到一个能让我心满意足的语言, 很怀疑这样的语言是不是存在.

0 请登录后投票
   发表时间:2010-02-09  
C++引入模板后,乱七八糟的用法都来了!
0 请登录后投票
   发表时间:2010-02-09  
俺要不无恶意地提醒一下, 永远不要指望一门语言的创造者对另外一门语言有多么公正的评价,哪怕后者是打着继承与发扬前者的旗号出现的。这就叫做“瘌痢头儿子自家的好”呀!

另:

potian 写道
C++ fans别拍我,我真的看到C++就心烦意乱


你加这么一句就指望别人不拍你了?没门! 

0 请登录后投票
   发表时间:2010-02-09  
看到C++和Java都心烦意乱的飘过。
0 请登录后投票
   发表时间:2010-02-09  
Elminster 写道
俺要不无恶意地提醒一下, 永远不要指望一门语言的创造者对另外一门语言有多么公正的评价,哪怕后者是打着继承与发扬前者的旗号出现的。这就叫做“瘌痢头儿子自家的好”呀!

另:

potian 写道
C++ fans别拍我,我真的看到C++就心烦意乱


你加这么一句就指望别人不拍你了?没门! 



说老实话,Ken Thompson说出这些话不是一般的公正不公正了,几乎可以认定他是很讨厌的了。

Joe Armstrong老大, similarly, has never felt the need to learn C++:

引用
No, C++, I can hardly read or write it. I don’t like C++; it doesn’t feel right. It’s just complicated. I like small simple languages. It didn’t feel small and simple.



Usenet 的创始人更屌: “life is too long to know C++ well.”


Dan Ingalls, who helped invent modern object oriented programming as part of Alan Kay’s team that developed Smalltalk, never found C++ compelling enough to use but isn’t totally adverse to using it:
引用

I didn’t get that much into it. It seemed like a step forward in various ways from C, but it seemed to be not yet what the promise was, which we were already experiencing. If I had been forced to do another bottom-up implementation, instead of using machine code I would’ve maybe started with C++. And I know a couple of people who are masters of C++ and I love to see how they do things because I think they don’t rely on it for the stuff that it’s not really that good at but totally use it as almost a metaprogramming language.


他的评价算好的啦
不知道他的老大Alan Kay什么看法,还有Knuth和John McCarthy的看法,不过据我推断,他们也不会有什么好听的话

0 请登录后投票
   发表时间:2010-02-09  
此人居然还活着......
0 请登录后投票
   发表时间:2010-02-09   最后修改:2010-02-09
最近感觉potian的发言风格有所变化。

c++确实不怎么讨人喜欢。但是不用又不行

若是java能跑那么快。。。就好了
0 请登录后投票
   发表时间:2010-02-09  
都是老头。
0 请登录后投票
   发表时间:2010-02-10  
Trustno1 写道
此人居然还活着......

大过年的。。。
0 请登录后投票
论坛首页 海阔天空版

跳转论坛:
Global site tag (gtag.js) - Google Analytics