阅读更多

2顶
0踩

编程语言

原创新闻 Uncle Bob新书Clean Code

2008-04-08 14:12 by 见习记者 samuelray 评论(2) 有4825人浏览
TDD
Robert C. Martin最近的新书《Clean Code》即将由Prentice Hall出版社出版。

目录如下:

Clean Code    1
    There Will Be Code    1
    Bad Code    2
    The Total Cost of Owning a Mess.    3
    Schools of Thought.    11
    We are Authors.    12
    The Boy Scout Rule    13
    Prequel and Principles    14
    Conclusion    14
    Bibliography    15
Meaningful Names by Tim Ottinger    17
    Introduction    17
    Use Intention-revealing Names    17
    Avoid Disinformation    19
    Make Meaningful Distinctions    20
    Use Pronounceable Names    21
    Use Searchable Names    22
    Avoid Encodings    23
    Avoid Mental Mapping    24
    Class Names    25
    Method Names    25
    Don't Be Cute    25
    Pick One Word Per Concept    26
    Don't Pun    26
    Use Solution Domain Names    27
    Use Problem Domain Names    27
    Add Meaningful Context    27
    Don't add Gratuitous Context    29
    Final Words ...    30
Functions    31
    Small!    34
    Do one thing.    35
    One level of abstraction per function.    36
    Switch Statements.    37
    Use descriptive names.    39
    Function Arguments.    39
    Have no side-effects.    43
    Command Query Separation    44
    Prefer exceptions to returning error codes.    45
    Don't Repeat Yourself.    47
    Structured Programming    48
    How do you write functions like this?    48
    Conclusion    49
    SetupTeardownIncluder    49
    Bibliography    52
Comments    53
    Comments do not make up for bad code.    55
    Explain yourself in code.    55
    Good Comments    55
    Bad Comments    59
    Example    71
    Bibliography    74
Formatting    75
    The Purpose of Formatting    76
    Vertical Formatting    76
    Horizontal Formatting    84
    Team Rules    89
    Uncle Bob's Formatting Rules.    90
Objects and Data Structures    93
    Data Abstraction    93
    Data/Object anti-symmetry.    95
    The Law of Demeter    97
    Data Transfer Objects    99
    Conclusion    101
    Bibliography    101
Error Handling by Michael Feathers    103
    Use Exceptions Rather than Return Codes    103
    Write Your Try-Catch-Finally Statement First    105
    Use Unchecked Exceptions    106
    Provide Context with Exceptions    107
    Define Exception Classes In Terms of a Caller's Needs.    107
    Define the Normal Flow    109
    Don't Return Null    110
    Don't Pass Null    111
    Conclusion    112
    Bibliography    112
Boundaries by James Grenning    113
    Bibliography    119
Unit Tests    121
    The Three Laws of TDD    122
    Keeping Tests Clean    123
    Clean Tests    124
    One Assert per Test    129
    F.I.R.S.T.    132
    Conclusion    132
    Bibliography    133
Classes    135
    Class Organization    135
    Classes should be Small!    136
    Organizing for Change    146
    Bibliography    150
Systems    By Dean Wampler 151
    How would you build a city?    151
    Separate constructing a system from using it    152
    Scaling Up    155
    Java Proxies    158
    Pure Java AOP Frameworks    160
    AspectJ Aspects    163
    Test-drive the system architecture    164
    Optimize decision making    165
    Use standards wisely, when they add demonstrable value    165
    Systems need Domain-Specific Languages    166
    Conclusion    166
    Bibliography    167
Emergence By Jeff Langr    169
    Getting Clean via Emergent Design    169
    Simple Design Rule 1: Runs all the tests    170
    Simple Design Rules 2-4: Refactoring    170
    No Duplication    170
    Expressive    173
    Minimal Classes and Methods    174
    Conclusion    174
    Bibliography    174
Concurrency    by Brett Schuchert 175
    Why Concurrency?    176
    Challenges    177
    Concurrency Defense Principles    178
    Know Your Library    180
    Know Your Execution Models    181
    Beware Dependencies between Syncrhonized Methods    182
    Keep Synchronized Sections Small    183
    Writing Correct Shut-Down Code is Hard    183
    Testing Threaded Code    184
    Conclusion    188
    Bibliography    189
Successive Refinement    191
    Args Implementation    192
    Args: the rough draft.    198
    String Arguments    212
     Conclusion    246
JUnit Internals    249
    Conclusion    262
Refactoring SerialDate    263
    Conclusion    280
    Bibliography    281
Smells and Heuristics    283
    Comments    283
    Environment    284
    Functions    285
    General    285
    Java    304
    Names    306
    Tests    310
    Conclusion    311
    Bibliography    312
Concurrency II    by Brett Schuchert 313
    Client/Server Example    313
    Possible Paths of Execution    317
    Knowing Your Library    322
    Dependencies between methods can break concurrent code    325
    Increasing Throughput    329
    Deadlock    331
    Testing Multi-Threaded Code    335
    Tool Support for Testing Thread-Based Code    337
    Conclusion    338
    Tutorial: Full Code Examples    339
org.jfree.date.SerialDate    345
Cross References of Heuristics    406
2
0
评论 共 2 条 请登录后发表评论
2 楼 realvalkyrie 2008-08-21 18:20
有同感啊,楼上,
1 楼 climber2002 2008-04-11 03:33
期待,他的那本agile software development可以说是给我影响最大的编程书籍

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

  • 华为的冬天

    华为的冬天的PDF版本。很经典的一本书。

  • 华 为 的 冬 天(转载)

    华 为 的 冬 天 任正非   公司所有员工是否考虑过,如果有一天,公司销售额下滑、利润下滑甚至会破产,我们怎么办?我们公司的太平时间太长了,在和平时期升的官太多了,这也许就是我们的灾难。泰坦尼克号也是在一片欢呼声中出的海。而且我相信,这一天一定会到来。面对这样的未来,我们怎样来处理,我们是不是思考过。我们好多员工盲目自豪,盲目乐观,如果想过的人太少,也许就快来临了。居安思危...

  • 推荐:华为的冬天--任正非

    这是一篇在IT业界流传的文章,许多公司的老总都向下属推荐阅读,联想集团总裁杨元庆就是该文的积极推荐者。有人认为这是任正非为IT业敲响的警钟,也有人说任正非是“作秀”,还有人猜测是华为在为人事变动制造舆论。由于华为的老总任正非很少和媒体打交道,因此我们无从知晓这篇文章的真实背景,但是,在华为2000财年销售额达220亿元,利润以29亿元人民币位居全国电子百强首位的时候,任正非大谈危机和失败,...

  • 华为的冬天-笔记

    不是由优秀的人来组织,就是高成本的组织。   为什么我们要强调以流程型和时效型为主导的体系呢?现在流程上运作的干部,他们还习惯于事事都请示上级。这是错的,已经有规定,或者成为惯例的东西,不必请示,应快速让它通过去。执行流程的人,是对事情负责,这就是对事负责制。事事请示,就是对人负责制,它是收敛的。我们要减化不必要确认的东西,要减少在管理中不必要、不重要的环节,否则公司怎么能高效运行呢?   现在我...

  • 年度述职报告及个人总结PPT模板

    年度述职报告及个人总结PPT模板

  • 软件测试述职报告ppt.ppt

    软件测试文档,软件测试述职报告,软件测试述职报告范文PPT

  • PPT年终总结通用模板

    年终总结、商业会议通用模板。模板可自行修改,根据自己需求进行下载。

  • 团委工作报告PPT模板

    团委工作报告PPT模板

  • 简洁动态扁平化个人述职报告PPT模板免费下载.zip

    这是一套简洁简约风格的,动态扁平化个人述职报告PPT模板。第一PPT模板网提供精美述职报告幻灯片模板免费下载; 关键词:蓝色动态述职报告PowerPoint模板免费下载,扁平化简洁PPT模板,.PPTX格式;

  • 研发管理述职报告范例

    研发管理,述职报告 金融行业 的 包括研发流程管理介绍 个人总结等

  • 华为任正非41篇内容文章

    华为任正非内部文章,关注于企业发展、行业发展模式以及管理和服务意识等相关内容,很值得职业人士看看~

  • 框架完整简洁实用个人述职报告PPT

    框架完整简洁实用个人述职报告PPT框架完整简洁实用个人述职报告PPT框架完整简洁实用个人述职报告PPT框架完整简洁实用个人述职报告PPT

  • 工作总结演讲技巧模板

    工作总结演讲技巧模板,工作总结演讲技巧模板,PPT

  • java开发工程师述职报告.rar-java工程师年终述职报告

    java开发工程师述职报告.rar-java工程师年终述职报告 讲述年度任务 完成度 回顾年度内的不足之处 今后如何让弥补 明年的计划

  • 几何图形线条蓝色简约工作总结报告ppt模板.zip

    几何图形线条创意封面过渡页,蓝灰配色,扁平化设计,商务人物剪影、一体机、扁平小人拼图灯泡、世界地图、镂空大都市、纸飞机等精美素材配图,适合商务工作总结报告、工作总结、述职报告等场景应用的通用商务ppt模板。

  • 任正非《华为的冬天》

    任正非《华为的冬天》2001年3月 摘自:http://www.iceo.com.cn/renwu/46/2012/1002/258231.shtml 公司所有员工是否考虑过,如果有一天,公司销售额下滑、利润下滑甚至会破产,我们怎么办?我们公司的太平时间太长了,在和平时期升的官太多了,这也许就是我们的灾难。泰坦尼克号也是在一片欢呼声中出的海。而且我相信,这一天一定会到来。面对这样的未

  • 我的冬天......

    虽然整天掰指头数着今年剩下的天数但还是留下点什么为了过去的这些日子,也为了能撑过这段日子的自己感谢身边的每个人让我在踏入07年的时候还记得笑容曾经的味道   06年底的时候好多人问我好不好 没太多可以回答的只是想大吼一句我不好,很不好......   人最无助的不是找不到朋友帮忙而是一个人游荡在上海大街乱翻着手机号码本很想打打电话却又不知播向何方最悲哀的不是一个多月的虚度时光而是自己以为一直全心在...

Global site tag (gtag.js) - Google Analytics