2007年05月
Chapter 7. Templates and Generic Programming
Item 43 - 44阅读全文>
发表于 @ 2007年05月30日 00:39:00|评论(loading...)|编辑
Chapter 7. Templates and Generic Programming
Scott在Item 01里面就列举出了C++中的四种所谓“sublanguages”:C、OO C++、Template C++、STL。前面的Items一直评论的是OO C++,这一章则主要针对Template C++。
Item 41 - 42阅读全文>
发表于 @ 2007年05月28日 00:34:00|评论(loading...)|编辑
Chapter 6. Inheritance and Object-Oriented Design
这一章围绕inhertance和OOD进行讨论。
Item 38 - 40阅读全文>
发表于 @ 2007年05月17日 00:15:00|评论(loading...)|编辑
Chapter 6. Inheritance and Object-Oriented Design
Item 36 - 37阅读全文>
发表于 @ 2007年05月15日 11:37:00|评论(loading...)|编辑
Chapter 6. Inheritance and Object-Oriented Design
当我辛辛苦苦用virtual functions提供了接口和缺省实现之后,Scott却提出考虑其它解法……
Item 35阅读全文>
发表于 @ 2007年05月12日 01:14:00|评论(loading...)|编辑
Chapter 6. Inheritance and Object-Oriented Design
Item 32 - 34阅读全文>
发表于 @ 2007年05月10日 17:14:00|评论(loading...)|编辑
以下代码在debug之后会全屏显示一段3D动画。值得研究!据说是一九九七年世界编程大赛冠军作品,采用16进制机器码编写。阅读全文>
发表于 @ 2007年05月10日 15:57:00|评论(loading...)|编辑
答一个网友所问,想在MFC中直接执行其它应用程序,诸如debug、notepad等等。阅读全文>
发表于 @ 2007年05月10日 14:16:00|评论(loading...)|编辑
看完这一章之后,我的一个感觉就是:作为一个程序员,你可以很快地学会一门语言的语法,并写出可以顺利通过编译的程序。但要写出真正优质的代码,不仅仅要掌握语法,还要掌握如何借语言完美地表达需求。唯一的出路在于忘记语法,我现在仅仅是能够理解语法,理解地很僵硬、很教条,还不能忘记语法。
有时想写点感想,觉得会相当力不从心,还是没有深刻体会吧。
Item 29 - 31阅读全文>
发表于 @ 2007年05月10日 00:26:00|评论(loading...)|编辑
Chapter 5. Implementations
如果说对于对象模型的深刻理解是为了更好地设计和声明,那么对于实现的斤斤计较则是为了更高的效率。
Item 26 - 28
阅读全文>
发表于 @ 2007年05月08日 00:40:00|评论(loading...)|编辑
什么样的接口是你应该提供给client的?或者,换句话说:什么样的接口是你希望被提供的?
If an attempted use of an interface won't do what the client expects, the code won't compile; and if the code does compile, it will do what the client wants.
如果你的programs不是写给你自己用,就应该实现上面的要求。
Item 18 - 25
阅读全文>
发表于 @ 2007年05月02日 09:52:00|评论(loading...)|编辑