大家论坛

 找回密码
 注册
查看: 5632|回复: 15

[分享] C++ Coding Standards[Addison Wesley] [复制链接]

Rank: 26Rank: 26Rank: 26Rank: 26Rank: 26Rank: 26

积分
960
帖子
246
精华
5
经验
644 点
威望
7 点
金币
146

突出贡献奖 解答高手 优秀斑竹

发表于 2008-2-15 18:04:00 |显示全部楼层

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
By Herb Sutter, Andrei Alexandrescu
 
Publisher: Addison Wesley Professional
Pub Date: October 25, 2004
ISBN: 0-321-11358-6
Pages: 240

Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Now, two of the world's most respected C++ experts distill the rich collective experience of the global C++ community into a set of coding standards that every developer and development team can understand and use as a basis for their own coding standards.

The authors cover virtually every facet of C++ programming: design and coding style, functions, operators, class design, inheritance, construction/destruction, copying, assignment, namespaces, modules, templates, genericity, exceptions, STL containers and algorithms, and more. Each standard is described concisely, with practical examples. From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and standardized-techniques you may not know even if you've used C++ for years. Along the way, you'll find answers to questions like

  • What's worth standardizingand what isn't?

  • What are the best ways to code for scalability?

  • What are the elements of a rational error handling policy?

  • How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies?

  • When (and how) should you use static and dynamic polymorphism together?

  • How do you practice "safe" overriding?

  • When should you provide a no-fail swap?

  • Why and how should you prevent exceptions from propagating across module boundaries?

  • Why shouldn't you write namespace declarations or directives in a header file?

  • Why should you use STL vector and string instead of arrays?

  • How do you choose the right STL search or sort algorithm?

  • What rules should you follow to ensure type-safe code?

Whether you're working alone or with others, C++ Coding Standards will help you write cleaner codeand write it faster, with fewer hassles and less frustration.



[此贴子已经被作者于2008-2-15 18:10:39编辑过]

附件: 你需要登录才可以下载或查看附件。没有帐号?注册

使用道具 举报

Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17

积分
3103
帖子
1002
精华
17
经验
1907 点
威望
3 点
金币
1544
发表于 2008-2-15 21:37:00 |显示全部楼层
每次SSH后习惯性的动作: rm -rf /

使用道具 举报

Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17

积分
3147
帖子
782
精华
10
经验
2240 点
威望
27 点
金币
1623
发表于 2008-2-15 21:42:00 |显示全部楼层

谢谢分享

[em09]

使用道具 举报

Rank: 3

积分
73
帖子
67
精华
0
经验
5 点
威望
0 点
金币
19
发表于 2008-3-16 22:06:00 |显示全部楼层

顶啊 ! 好东西

使用道具 举报

Rank: 3

积分
60
帖子
56
精华
0
经验
4 点
威望
0 点
金币
18
发表于 2008-4-9 08:36:00 |显示全部楼层
非常感谢

使用道具 举报

Rank: 2Rank: 2

积分
13
帖子
12
精华
0
经验
1 点
威望
0 点
金币
20
发表于 2008-4-11 17:28:00 |显示全部楼层

支持

使用道具 举报

Rank: 2Rank: 2

积分
31
帖子
26
精华
0
经验
4 点
威望
0 点
金币
23
发表于 2008-5-3 20:07:00 |显示全部楼层
好东西!支持一下!

使用道具 举报

Rank: 5Rank: 5Rank: 5

积分
171
帖子
67
精华
0
经验
99 点
威望
0 点
金币
72
发表于 2008-5-23 19:25:00 |显示全部楼层
thank you.

使用道具 举报

Rank: 10Rank: 10

积分
456
帖子
161
精华
0
经验
284 点
威望
0 点
金币
210

热心会员奖 杰出会员

发表于 2008-10-5 18:07:36 |显示全部楼层
收下备用,多谢楼主分享!

使用道具 举报

Rank: 10Rank: 10

积分
411
帖子
199
精华
0
经验
199 点
威望
0 点
金币
219
发表于 2010-7-6 20:42:48 |显示全部楼层
支持。

使用道具 举报

12下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|大家网 ( 京ICP备06071611号 )  

GMT+8, 2012-2-11 18:04 , Processed in 0.177543 second(s), 13 queries , Gzip On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部