《More Effective C++:35个改善编程与设计的有效方法》(中文版)china-pub计算机新书推荐

基本信息
原书名: More Effective C++: 35 New Ways to Improve Your Programs and Designs
原出版社: Addison-Wesley Professional
作者: (美)Scott Meyers   
译者: 侯捷
丛书名: 传世经典书丛
出版社:电子工业出版社
ISBN:9787121125706

内容简介
继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已经几乎定案,本书即依当时的标准草案而写,其与现今的c++标准规范几乎相同。而且可能变化的几个弹性之处,meyers也都有所说明与提示。读者可以登录作者提供的网址,看看上下两集的勘误与讨论(数量之多,令人惊恐。幸好多是技术讨论或文字斟酌,并没有什么重大误失)。

目录
译序(侯捷)
导读(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)

图书详情及购买地址:http://www.china-pub.com/197665

转载于:https://www.cnblogs.com/china-pub/archive/2011/01/25/1944443.html

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

  1. 《分布式系统模式》中文版

    <分布式系统模式>(Patterns of Distributed Systems)是 Unmesh Joshi 编写的一系列关于分布式系统实现的文章.这个系列的文章采用模式的格式,介绍了 ...

  2. 分布式系统模式3-Segmented Log

    作者: Unmesh Joshi 译者: java达人 来源: https://martinfowler.com/articles/patterns-of-distributed-systems/ 将 ...

  3. 模式设计概述:代理者模式

    分布式系统模式 分布式相关的模式设计有大概三种模式,分布式系统与集中式系统相比需要完全不同的软件.管道和过滤器模式,微核和代理者模式. 代理者模式 代理者模式体系结构的强制条件是 组件应该能够访问其他 ...

  4. 从MIT的新式无人船,聊聊机器人的“组队打野”模式

    作者:藏狐 来源:脑极体(ID:unity007) 大多数科技爱好者也许都幻想过,未来的海洋角逐,将由智慧型舰艇在海上展开各种作业.对战.探险等,完全不需要人类的参与-- 在现实中,无人船也早已经不是 ...

  5. “软件教父”又开始整理模式了!

    Martin Fowler是谁? 我在之前的文章中写过,他是<重构>.<分析模式>.<企业应用架构模式>.<领域特定语言>等一系列知名书籍的作者,他很少 ...

  6. 有哪些比较流行的 C、C++和Java 的入门级项目?

    学习编程语言除了看书看视频,还需要找一些适合自己的开源项目,本文给大家安排了C.C++.JAVA相关的开源项目,不废话直接开车! 神级编程网站,堪称程序员的充电站,我给你找好了不能错过_程序员编程指南 ...

  7. JSP住宅小区物业管理系统(源代码+开题报告+论文+答辩PPT

    登录 JSP住宅小区物业管理系统(源代码+开题报告+论文+答辩PPT) 2022-12-04 657 ¥ 100 元 点赞 (0)  收藏 立即购买 升级会员 查看演示 遇到问题请联系客服微信:199 ...

  8. JSP住宅小区物业管理系统(源代码+开题报告+论文+答辩PPT)

    详情介绍 小区物业管理毕业设计 (论文) 目 录 摘要------------------------------–1 ABSTRACT---------------------------–2 第1 ...

  9. 超详细的Spring Cloud全面总结2W字(建议收藏)

    来自:FrancisQ 原文:juejin.im/post/6844904007975043079 首先我给大家看一张图,如果大家对这张图有些地方不太理解的话,我希望你们看完我这篇文章会恍然大悟. 什 ...

  10. Spring Cloud 万字总结!

    作者:FrancisQ 来源:juejin.im/post/5de2553e5188256e885f4fa3 首先我给大家看一张图,如果大家对这张图有些地方不太理解的话,我希望你们看完我这篇文章会恍然 ...

最新文章

  1. 分布式服务框架HSF学习
  2. 学习响应式BootStrap来写融职教育网站,Bootsrtap第二天
  3. 个人从源码理解JIT模式下angular编译AppModule的过程
  4. 刷新后保持大分类和小分类的展开状态
  5. SM3算法的C++实现(代码)
  6. 液晶显示器面板型号速查[转贴]
  7. Visual Studio2012下载及安装
  8. xposed框架在分机安装失败_pokemon go 和 虚拟gps
  9. Python web框架之tornado(龙卷风)
  10. 互联网周刊:O2O商业模式剖析
  11. 利用计算机打字教学设计,《键盘打字》教学设计
  12. Android开发酒店预定预约管理系统
  13. Unity实现发光材质
  14. 6款超实用微信小程序,任何手机都需要!
  15. Memcached的安装及配置
  16. 生产环境系统突然访问速度变慢问题排查
  17. 4.Matplotlib多子图,文字和注释以及自定义坐标轴
  18. 01-邂逅Vuejs
  19. tx2+opencv源码编译教程(tx2+opencv4.4.0+opencv_contrib-4.4.0)
  20. 基于simulink的无人机姿态飞行控制仿真

热门文章

  1. 函数式编程之every函数
  2. FFmpeg总结(九)用ffmpeg进行切片生成m3u8索引文件
  3. win2008r2用户账户控制什么意思_UX名词解读“用户体验度量”到底是什么意思?/ZOE的笔记...
  4. vue.js电商项目--美丽购物街day01首页制作
  5. 看美剧学英文之最全攻略
  6. ORACLE各种对象、概念及关系整理(一文读懂)
  7. halocn标定找旋转中心_halcon应用案例探究
  8. 9 项目资源管理 人人都是项目经理系列(第9/13篇)
  9. 生成器模式(又名建造者模式、Builder Pattern)
  10. 网页中滚动字幕的制作