《Object-Oriented Programming With ANSI-C》 C++对象模型的经典之作



每次读到这本书,总会对其作者产生崇高的敬意。


在面向对象还是新奇事物的那个年代,本书的作者已经以其深厚的C语言功力和对面向对象思想的完美理解,替后来的程序员们指点了迷津。


记得若干年前第一次拜读此书,有种醍醐灌顶的顿悟之感,原来那些复杂的面向对象之“奇技淫巧”,不过尔尔。诸如继承,延迟绑定,多态等等都是浮云。

再更透彻地理解了C++对象模型之后,对诸如COM, BREW, Object-C,LInux device driver以及C++的实现,才能有更深刻的了解。


尽管此本书面世已经有将近20年的历史,但是它所体现的面向对象的思想及其对象模型的实现机理,对理解当今的一些软件架构及其实现仍然有非常深刻的意义。


希望对C和C++有兴趣的朋友,都有机会拜读一番。


http://www.planetpdf.com/codecuts/pdfs/ooc.pdf


没有任何一种编程技术能解决所有问题; 没有任何一种编程语言只输出正确结果; 没有任何一个程序员需要从零开始一个项目。 -----这三句似曾相识? 这是一本17年前书,写是用纯C来实现OOP。。。 亘古C,永远C。。。 关天C,我没有其它要说了。 关于这个资源,还有一句:原书+源码,全在这儿 我希望10年后我还在读它,看它。。。 No programming technique solves all problems. No programming language produces only correct results. No programmer should start each project from scratch. 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 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. 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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论

打赏作者

AutoAsm

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值