Object-oriented programming is the current cure-all — although it has been around for much more then ten years. At the core, there is little more to it then finally applying the good programming principles which we have been taught for more then twenty years. C++ (Eiffel, Oberon-2, Smalltalk ... take your pick) is the New Language (ed: this book was published in 1993) because it is object-oriented — although you need not use it that way if you do not want to (or know how to), and it turns out that you can do just as well with plain ANSI-C. Only object-orientation permits code reuse between projects — although the idea of subroutines is as old as computers and good programmers always carried their toolkits and libraries with them.
This book is not going to praise object-oriented programming or condemn the Old Way. We are simply going to use ANSI-C to discover how object-oriented programming is done, what its techniques are, why they help us solve bigger problems, and how we harness generality and program to catch mistakes earlier. Along the way we encounter all the jargon — classes, inheritance, instances, linkage, methods, objects, polymorphisms, and more — but we take it out of the realm of magic and see how it translates into the things we have known and done all along.
Intended Audience:
I had fun discovering that ANSI-C is a full-scale object-oriented language. To share this fun you need to be reasonably fluent in ANSI-C to begin with — feeling comfortable with structures, pointers, prototypes, and function pointers is a must. Working through the book you will encounter all the newspeak — according to Orwell and Webster a language "designed to diminish the range of thought" — and I will try to demonstrate how it merely combines all the good programming principles that you always wanted to employ into a coherent approach. As a result, you may well become a more proficient ANSI-C programmer.
0 有用 飘过321 2020-06-04 23:13:21
OOC实现new()和delete()是亮点,可惜缺少图片与案例。
2 有用 微胖界领袖 2010-06-27 14:04:50
展示了一种实现面向对象语义的方法。其中的思想对使用c书写灵活的代码很有帮助,值得借鉴,但是实际工作中不太可能会用这本书里构建的ooc去写代码。
1 有用 ppretender 2011-10-27 14:19:32
写得极好,功能强大。用C实现面向对象,同时可以了解一些C++的实现原理。
0 有用 一寸行者 2012-10-02 06:01:51
也是一个面向语言编程的简单应用
0 有用 philip 2013-01-26 10:06:45
实现封装,继承,异常,代理等
0 有用 飘过321 2020-06-04 23:13:21
OOC实现new()和delete()是亮点,可惜缺少图片与案例。
1 有用 Μισακι 2019-03-05 21:39:27
最近想了一下,这TM不就是Python吗
1 有用 混沌 2018-06-15 18:40:15
各种指针的花哨技巧。这本书函数指针声明不用typedef来简化是一个缺点,接口和实现也没有分离,没有做到较好的封装,容易让客户程序员揣测实现机制,马马虎虎,适合初学者开拓视野。
0 有用 永久欠番💙 2017-08-06 15:20:24
纪念2014, 当时靠你做的math lib
0 有用 alex_nuaa 2017-04-03 18:39:50
书有点老了,前面6,7章写的还不错,后面有点跑题了。总体算上乘之作。