Friday, November 11, 2011

C++之父的妙论

因为喜欢pongba博客的缘故,去他csdn上的老巢拜访了一下;看了其中关于c++语言的几篇博文,颇有些旧情复炽。顺手捎带,拜读了Bill Venners对Bjarne Stroustroup的访谈(一共4部分),一读之下,惊为天人。
Bjarne的语言朴实无华,但是味道极深,有时需要慢慢品味,趁自己还记得住,赶紧贴几句:
  • Just because you don’t need OOP or GP for a project doesn’t imply that C is better for that.
  • "I wouldn't like to build a tool that could only do what I had been able to imagine for it."
  • Design tools don't give you much feedback, so therefore I tend towards the view that you should build a smaller system and grow it into a bigger one. There is a rule of thumb that says that every successful large system is a development of a slightly smaller working system. You apply that rule recursively. 
  • "I wouldn't like to build a tool that could only do what I had been able to imagine for it." 
  • To quote Kristen Nygaard, programming is understanding. The meaning is: if you don't understand something, you can't code it, and you gain understading trying to code it.  
从访谈内容来看,在兼顾开发效率和运行效率上,c++似乎做得不错。

0 comments: