阅读更多

2顶
0踩

编程语言

原创新闻 Uncle Bob新书Clean Code

2008-04-08 14:12 by 见习记者 samuelray 评论(2) 有4846人浏览
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亿元人民币位居全国电子百强首位的时候,任正非大谈危机和失败,...

  • 华为的冬天-笔记

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

  • 年中述职报告.pptx

    年中述职报告.pptx

  • 项目述职报告PPT模板

    这个是述职用的一个PPT模板,我之前用的时候自己写的,现在分享出来给需要的人。

  • 述职报告 PPT

    述职报告 PPT

  • 个人述职ppt模板

    该模板内容充实且颜色比较适合做个人述职报告或者其他的情况下使用

  • 星空大气开场工作总结述职报告PPT模板.rar

    超炫动态科技感PPT,很多都有音乐和动画,非常适合互联网专业的童鞋做项目总结/毕业答辩等等,让领导眼前一亮。

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

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

  • 年终述职报告ppt模板下载

    年终述职ppt模板适用于职业报告主题设计应用。

  • 述职报告PPT模板

    述职报告的模板,里面的图片可以参考,还是比较新颖好看的。

  • 最新高端动态IT行业述职报告与工作总结PPT模板

    最新高端动态IT行业述职报告 与 工作总结PPT模板 工作总结

  • 时间线模板ppt

    时间线的模板ppt,在述职的时候很有用,可以参考下载,

  • 个人转正述职报告PPT

    个人转正述职报告PPT分享,有助于你在写这方面PPT时参考。 个人转正述职报告PPT分享,有助于你在写这方面PPT时参考。个人转正述职报告PPT分享,有助于你在写这方面PPT时参考。

  • 医院网络管理员述职报告

    本人在医院期间主要从事网络、无纸化办公系统、医院管理系统的管理维护工作,负责医院电脑硬件的维修工作。能够及时处理的各种软硬件故障及医院网络故障,对交换机、路由器等网络设备的配置与管理及各种服务器的搭建与维护工作,对日常电脑、网络的各种问题的及时解决

  • 极简线条就那么美——低面背景简约工作总结ppt模板.rar

    方形、圆形、细线极简设计,简约大气,低面背景,极简线条简约工作总结ppt模板。

  • 我的冬天......

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

Global site tag (gtag.js) - Google Analytics