More-Effective-传世经典书丛(pdf+txt+epub+azw3+mobi电子书在线阅读下载)

txtpdf查看全部>>

人气353
点击下载

More-Effective-传世经典书丛(pdf+txt+epub+azw3+mobi电子书在线阅读下载)

More Effective C++:35个改善编程与设计的有效方法(中文版)

作者:(美)梅耶

格式: pdf、txt、epub、azw3、mobi、docx

编辑推荐

推荐购买:

《C语言程序设计(第4版)》 (全面介绍了C语言的各种特性)

《C Primer习题集(第5版)》(畅销书极佳学习伴侣 精解全题 多重思路 细致剖析 即学即用) 

《ElasticSearch:可扩展的开源弹性搜索解决方案》

国内少有的

ES

技术书 全面剖析这一快速、灵活、可扩展的搜索解决方案

Spark

大数据处理技术》

Shark|Spark SQL|Spark Streaming|Graphx|Tachyon

深度解密

Spark

完整生态 资深

Committer

凝聚一流实力与超前视野

Spark

创始人及实践先驱联合推荐

Hadoop

硬实战》

 

学习

Hadoop

Mapreduce

不二之选

85

Hadoop

高级技巧实战案例

 

《从

Paxos

Zookeeper

:分布式一致性原理与实践》

 

分布式一致性及

ZooKeeper

实战著作 来自国内大型、复杂、悠久系统

 

《寻路大数据:海量数据与大规模分析》

Google

大数据专家力作 出众的译者

|

作序者微博

|

高德

|UCloud

三大老总联合作序推荐真正梳理趋势与生态

|

方案与工具选型

|

应用场景与价值挖掘的独家内参

 

内容简介

《More Effective C :35个改善编程与设计的有效方法(中文版)》主要内容包括:继effective c 之后,scott meyers 于1996 推出这本“续集”。条款变得比较少,页数倒是多了一些,原因是这次选材比“*集”更高阶,尤其是第5 章。meyers 将此章命名为技术(techniques),并明白告诉你,其中都是一些patterns,例如virtual constructors,smart pointers,reference counting,proxy classes,double dispatching……这一章的每个条款篇幅都达15~30 页之多,实在让人有“山重水复疑无路,柳暗花明又一村”之叹。
虽然出版年代稍嫌久远,但本书并没有第2版,原因是当其出版之时(1996),C Standard已经几乎定案,这本《More Effective C :35个改善编程与设计的有效方法(中文版)》即依当时的标准草案而写,其与现今的C 标准规范几乎相同。而且可能变化的几个弹性之处,Meyers也都有所说明与提示。读者可以登录作者提供的网址,看看上下两集的勘误与讨论(数量之多,令人惊恐。幸好多是技术讨论或文字斟酌,并没有什么重大误失)。

作者简介

作者:(美国)梅耶(Scott Meyers) 译者:侯捷

Scott Meyers,世界C 软件开发技术权威之一。他是两本畅销书Effective C 和More Effective C 的作者,以前曾经是C Report的专栏作家。他经常为C/C Users Journal和Dr. Dobb’s Journal撰稿,也为全球范围内的客户做咨询活动。他也是Advisory Boards for NumeriX LLC和InfoCruiser公司的成员。他拥有Brown University的计算机科学博士学位。

侯捷,集计算机技术读物之著、泽、评于一身,足《多态与虚拟》和《STL源码剖析》的作者,《Run!Pc》杂志、《程序员》杂志的知名专栏作家,也是极其号召力的大学教师与研讨会讲师。他于1989年获得中国台湾清华大学动机系硕士学位。

目  录

导读(Introduction)

基础议题(Basics)

条款1:仔细区别 pointers 和 references

Distinguish between pointers and references.

条款2:最好使用 C  转型操作符

Prefer C -style casts.

条款3:绝对不要以多态(polymorphically)方式处理数组

Never treat arrays polymorphically.

条款4:非必要不提供 default constructor

Avoid gratuitous default constructors.

操作符(Operators)

条款5:对定制的”类型转换函数”保持警觉

Be wary of user-defined conversion functions.

条款6:区别 increment/decrement 操作符的前置(prefix)和后置(postfix)形式

Distinguish between prefix and postfix forms of increment and decrement operators.

条款7:千万不要重载&&,||和, 操作符

Never overload &&, ||, or,.

条款8:了解各种不同意义的 new 和 delete

Understand the different meanings of new and delete

异常(Exceptions)

条款9:利用 destructors 避免泄漏资源

Use destructors to prevent resource leaks.

条款10:在 constructors 内阻止资源泄漏(resource leak)

Prevent resource leaks in constructors.

条款11:禁止异常(exceptions)流出 destructors 之外

Prevent exceptions from leaving destructors.

条款12:了解”抛出一个 exception”与”传递一个参数”或”调用一个虚函数”之间的差异

Understand how throwing an exception differs from passing a parameter or calling a virtual function.

条款13:以 by reference 方式捕捉 exceptions

Catch exceptions by reference.

条款14:明智运用 exception specifications

Use exception specifications judiciously.

条款15:了解异常处理(exception handling)的成本

Understand the costs of exception handling.

效率(Efficiency)

条款16:谨记 80-20 法则

Remember the 80-20 rule.

条款17:考虑使用 lazy evaluation(缓式评估)

Consider using lazy evaluation.

条款18:分期摊还预期的计算成本

Amortize the cost of expected computations.

条款19:了解临时对象的来源

Understand the origin of temporary objects.

条款20:协助完成”返回值优化(RVO)”

Facilitate the return value optimization.

条款21:利用重载技术(overload)避免隐式类型转换(implict type conversions)

Overload to avoid implicit type conversions.

条款22:考虑以操作符复合形式(op=)取代其独身形式(op)

Consider using op= instead of stand-alone op.

条款23:考虑使用其他程序库

Consider alternative libraries.

条款24:了解 virtual functions、multiple inheritance、virtual base classes、runtime type identification 的成本

Understand the costs of virtual functions, multiple inheritance,virtual base classes, and RTTI.

技术(Techniques, Idioms, Patterns)

条款25:将 constructor 和 non-member functions 虚化

Virtualizing constructors and non-member functions.

条款26:限制某个 class 所能产生的对象数量

Limiting the number of objects of a class.

条款27:要求(或禁止)对象产生于 heap 之中

Requiring or prohibiting heap-based objects.

条款28:Smart Pointers(智能指针)

条款29:Reference counting(引用计数)

条款30:Proxy classes(替身类、代理类)

条款31:让函数根据一个以上的对象类型来决定如何虚化

Making functions virtual with respect to more than one object.

杂项讨论(Miscellany)

条款32:在未来时态下发展程序

Program in the future tense.

条款33:将非尾端类(non-leaf classes)设计为抽象类(abstract classes)

Make non-leaf classes abstract.

条款34:如何在同一个程序中结合 C  和 C

Understand how to combine C  and C in the same program.

条款35:让自己习惯于标准 C  语言

Familiarize yourself with the language standard.

推荐读物

auto_ptr 实现代码

索引(一)(General Index)

索引(二)(Index of Example Classes,Functions,and Templtes)

商品评价

  • 断断续续,虎头蛇尾,把这书翻过一遍(除了附录..)。开始的时候,看得比较慢,都后边就有点浮躁。有些内容在编程过程中也有体会,看书就是再复习一遍,再学个书上对这种情况的称呼。也有部分内容没遇到过,看了也没能有深刻的印象…
  • 当我刚读完 Effective C++ 后,是不打算读这本 More 的,理由很简单,就是想先实践 C++(先贯彻一些 Effective C++ 中的优秀指导),然后从实践中反馈和总结。后来,闲暇时零星地读了一些 More 的章节,感觉如获至宝,就有粗有细地读了下来。我的感觉是 Effective 多从反面讲 C++ …
相关推荐
  • ANSYS电磁场分析(第2版)(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 物理学的未来(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 精装版(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 地球上最伟大的表演(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 恐龙探秘(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 物种起源(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 基因与细胞(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 相对论(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 陶哲轩实分析(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 通俗天文学(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 西方博物学文化(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 自然史(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 缤纷生物(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 狭义与广义相对论浅说(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 自然史(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 化学哲学新体系(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 能量守恒原理的历史和根源(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 深度学习的数学(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 从量子到宇宙-颠覆人类认知的科学之旅(pdf+txt+epub+azw3+mobi电子书在线阅读下载)
  • 汪老师的植物笔记(pdf+txt+epub+azw3+mobi电子书在线阅读下载)

全部评论: 0

微信公众号

还没账号?马上注册>>

登录

忘记密码

如果您尚未注册,请选择以下方式登录

Q Q 登 录 微 博 登 录
已有账号?快去登录>>

注册

发送验证码