Implementation Patterns

Specificaties
E-book, blz. | Engels
Pearson Education | e druk, 2007
ISBN13: 9780132702553
Rubricering
Juridisch :
Pearson Education e druk, 2007 9780132702553
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

“Kent is a master at creating code that communicates well, is easy to understand, and is a pleasure to read. Every chapter of this book contains excellent explanations and insights into the smaller but important decisions we continuously have to make when creating quality code and classes.”

–Erich Gamma, IBM Distinguished Engineer

 

“Many teams have a master developer who makes a rapid stream of good decisions all day long. Their code is easy to understand, quick to modify, and feels safe and comfortable to work with. If you ask how they thought to write something the way they did, they always have a good reason. This book will help you become the master developer on your team. The breadth and depth of topics will engage veteran programmers, who will pick up new tricks and improve on old habits, while the clarity makes it accessible to even novice developers.”

–Russ Rufer, Silicon Valley Patterns Group

 

“Many people don’t realize how readable code can be and how valuable that readability is. Kent has taught me so much, I’m glad this book gives everyone the chance to learn from him.”

–Martin Fowler, chief scientist, ThoughtWorks

 

“Code should be worth reading, not just by the compiler, but by humans. Kent Beck distilled his experience into a cohesive collection of implementation patterns. These nuggets of advice will make your code truly worth reading.”

–Gregor Hohpe, author of Enterprise Integration Patterns

 

“In this book Kent Beck shows how writing clear and readable code follows from the application of simple principles. Implementation Patterns will help developers write intention revealing code that is both easy to understand and flexible towards future extensions. A must read for developers who are serious about their code.”

–Sven Gorts

 

“Implementation Patterns bridges the gap between design and coding. Beck introduces a new way of thinking about programming by basing his discussion on values and principles.”

–Diomidis Spinellis, author of Code Reading and Code Quality

 

Software Expert Kent Beck Presents a Catalog of Patterns Infinitely Useful for Everyday Programming

 

Great code doesn’t just function: it clearly and consistently communicates your intentions, allowing other programmers to understand your code, rely on it, and modify it with confidence. But great code doesn’t just happen. It is the outcome of hundreds of small but critical decisions programmers make every single day. Now, legendary software innovator Kent Beck–known worldwide for creating Extreme Programming and pioneering software patterns and test-driven development–focuses on these critical decisions, unearthing powerful “implementation patterns” for writing programs that are simpler, clearer, better organized, and more cost effective.

 

Beck collects 77 patterns for handling everyday programming tasks and writing more readable code. This new collection of patterns addresses many aspects of development, including class, state, behavior, method, collections, frameworks, and more. He uses diagrams, stories, examples, and essays to engage the reader as he illuminates the patterns. You’ll find proven solutions for handling everything from naming variables to checking exceptions.

 

This book covers The value of communicating through code and the philosophy behind patterns How and when to create classes, and how classes encode logic Best practices for storing and retrieving state Behavior: patterns for representing logic, including alternative paths Writing, naming, and decomposing methods Choosing and using collections Implementation pattern variations for use in building frameworks

Implementation Patterns will help programmers at all experience levels, especially those who have benefited from software patterns or agile methods. It will also be an indispensable resource for development teams seeking to work together more efficiently and build more maintainable software. No other programming book will touch your day-to-day work more often.

Specificaties

ISBN13:9780132702553
Taal:Engels
Bindwijze:e-book

Inhoudsopgave

<p style="MARGIN: 0px">Preface&nbsp; xv</p> <p style="MARGIN: 0px">Chapter 1: Introduction&nbsp; 1</p> <p style="MARGIN: 0px">Tour Guide &nbsp;3</p> <p style="MARGIN: 0px">And Now... &nbsp;4</p> <p style="MARGIN: 0px">Chapter 2: Patterns &nbsp;5</p> <p style="MARGIN: 0px">Chapter 3: A Theory of Programming&nbsp; 9</p> <p style="MARGIN: 0px">Values &nbsp;10</p> <p style="MARGIN: 0px">Principles&nbsp; 13</p> <p style="MARGIN: 0px">Conclusion &nbsp;18</p> <p style="MARGIN: 0px">Chapter 4: Motivation&nbsp; 19</p> <p style="MARGIN: 0px">Chapter 5: Class &nbsp;21</p> <p style="MARGIN: 0px">Class &nbsp;22</p> <p style="MARGIN: 0px">Simple Superclass Name &nbsp;23</p> <p style="MARGIN: 0px">Qualified Subclass Name&nbsp; 24</p> <p style="MARGIN: 0px">Abstract Interface &nbsp;&nbsp;24</p> <p style="MARGIN: 0px">Interface &nbsp;26</p> <p style="MARGIN: 0px">Abstract Class &nbsp;26</p> <p style="MARGIN: 0px">Versioned Interface &nbsp;27</p> <p style="MARGIN: 0px">Value Object &nbsp;28</p> <p style="MARGIN: 0px">Specialization &nbsp;31</p> <p style="MARGIN: 0px">Subclass&nbsp; 32</p> <p style="MARGIN: 0px">Implementor &nbsp;34</p> <p style="MARGIN: 0px">Inner Class &nbsp;34</p> <p style="MARGIN: 0px">Instance-Specific Behavior &nbsp;36</p> <p style="MARGIN: 0px">Conditional &nbsp;36</p> <p style="MARGIN: 0px">Delegation&nbsp; 38</p> <p style="MARGIN: 0px">Pluggable Selector &nbsp;40</p> <p style="MARGIN: 0px">Anonymous Inner Class &nbsp;41</p> <p style="MARGIN: 0px">Library Class&nbsp; 41</p> <p style="MARGIN: 0px">Conclusion &nbsp;42</p> <p style="MARGIN: 0px">Chapter 6: State&nbsp; 43</p> <p style="MARGIN: 0px">State &nbsp;44</p> <p style="MARGIN: 0px">Access &nbsp;45</p> <p style="MARGIN: 0px">Direct Access&nbsp; 46</p> <p style="MARGIN: 0px">Indirect Access &nbsp;47</p> <p style="MARGIN: 0px">Common State &nbsp;47</p> <p style="MARGIN: 0px">Variable State &nbsp;48</p> <p style="MARGIN: 0px">Extrinsic State &nbsp;50</p> <p style="MARGIN: 0px">Variable &nbsp;50</p> <p style="MARGIN: 0px">Local Variable&nbsp; 51</p> <p style="MARGIN: 0px">Field &nbsp;52</p> <p style="MARGIN: 0px">Parameter &nbsp;53</p> <p style="MARGIN: 0px">Collecting Parameter &nbsp;55</p> <p style="MARGIN: 0px">Optional Parameter &nbsp;56</p> <p style="MARGIN: 0px">Var Args &nbsp;56</p> <p style="MARGIN: 0px">Parameter Object &nbsp;57</p> <p style="MARGIN: 0px">Constant &nbsp;58</p> <p style="MARGIN: 0px">Role-Suggesting Name &nbsp;58</p> <p style="MARGIN: 0px">Declared Type &nbsp;60</p> <p style="MARGIN: 0px">Initialization &nbsp;61</p> <p style="MARGIN: 0px">Eager Initialization &nbsp;61</p> <p style="MARGIN: 0px">Lazy Initialization &nbsp;62</p> <p style="MARGIN: 0px">Conclusion &nbsp;62</p> <p style="MARGIN: 0px">Chapter 7: Behavior &nbsp;63</p> <p style="MARGIN: 0px">Control Flow&nbsp; 64</p> <p style="MARGIN: 0px">Main Flow &nbsp;64</p> <p style="MARGIN: 0px">Message &nbsp;65</p> <p style="MARGIN: 0px">Choosing Message&nbsp; 65</p> <p style="MARGIN: 0px">Double Dispatch &nbsp;66</p> <p style="MARGIN: 0px">Decomposing (Sequencing) Message &nbsp;67</p> <p style="MARGIN: 0px">Reversing Message &nbsp;67</p> <p style="MARGIN: 0px">Inviting Message &nbsp;68</p> <p style="MARGIN: 0px">Explaining Message&nbsp; 69</p> <p style="MARGIN: 0px">Exceptional Flow &nbsp;70</p> <p style="MARGIN: 0px">Guard Clause &nbsp;70</p> <p style="MARGIN: 0px">Exception &nbsp;72</p> <p style="MARGIN: 0px">Checked Exceptions &nbsp;72</p> <p style="MARGIN: 0px">Exception Propagation &nbsp;73</p> <p style="MARGIN: 0px">Conclusion &nbsp;73</p> <p style="MARGIN: 0px">Chapter 8: Methods &nbsp;75</p> <p style="MARGIN: 0px">Composed Method &nbsp;77</p> <p style="MARGIN: 0px">Intention-Revealing Name&nbsp; 79</p> <p style="MARGIN: 0px">Method Visibility &nbsp;80</p> <p style="MARGIN: 0px">Method Object &nbsp;82</p> <p style="MARGIN: 0px">Overridden Method &nbsp;83</p> <p style="MARGIN: 0px">Overloaded Method &nbsp;83</p> <p style="MARGIN: 0px">Method Return Type&nbsp; 84</p> <p style="MARGIN: 0px">Method Comment&nbsp; 85</p> <p style="MARGIN: 0px">Helper Method &nbsp;85</p> <p style="MARGIN: 0px">Debug Print Method &nbsp;86</p> <p style="MARGIN: 0px">Conversion &nbsp;87</p> <p style="MARGIN: 0px">Conversion Method &nbsp;87</p> <p style="MARGIN: 0px">Conversion Constructor &nbsp;88</p> <p style="MARGIN: 0px">Creation &nbsp;88</p> <p style="MARGIN: 0px">Complete Constructor&nbsp; 89</p> <p style="MARGIN: 0px">Factory Method &nbsp;90</p> <p style="MARGIN: 0px">Internal Factory&nbsp; 91</p> <p style="MARGIN: 0px">Collection Accessor Method &nbsp;91</p> <p style="MARGIN: 0px">Boolean Setting Method &nbsp;93</p> <p style="MARGIN: 0px">Query Method &nbsp;93</p> <p style="MARGIN: 0px">Equality Method &nbsp;94</p> <p style="MARGIN: 0px">Getting Method&nbsp; 95</p> <p style="MARGIN: 0px">Setting Method &nbsp;96</p> <p style="MARGIN: 0px">Safe Copy &nbsp;97</p> <p style="MARGIN: 0px">Conclusion &nbsp;98</p> <p style="MARGIN: 0px">Chapter 9: Collections&nbsp; 99</p> <p style="MARGIN: 0px">Metaphors&nbsp; 100</p> <p style="MARGIN: 0px">Issues&nbsp; 101</p> <p style="MARGIN: 0px">Interfaces&nbsp; 103</p> <p style="MARGIN: 0px">Implementations &nbsp;107</p> <p style="MARGIN: 0px">Collections &nbsp;110</p> <p style="MARGIN: 0px">Extending Collections &nbsp;114</p> <p style="MARGIN: 0px">Conclusion &nbsp;115</p> <p style="MARGIN: 0px">Chapter 10: Evolving Frameworks &nbsp;117</p> <p style="MARGIN: 0px">Changing Frameworks without Changing Applications &nbsp;117</p> <p style="MARGIN: 0px">Incompatible Upgrades &nbsp;118</p> <p style="MARGIN: 0px">Encouraging Compatible Change &nbsp;120</p> <p style="MARGIN: 0px">Conclusion &nbsp;129</p> <p style="MARGIN: 0px">Appendix A: Performance Measurement &nbsp;131</p> <p style="MARGIN: 0px">Example &nbsp;131</p> <p style="MARGIN: 0px">API &nbsp;132</p> <p style="MARGIN: 0px">Implementation &nbsp;133</p> <p style="MARGIN: 0px">MethodTimer &nbsp;134</p> <p style="MARGIN: 0px">Canceling Overhead &nbsp;136</p> <p style="MARGIN: 0px">Tests &nbsp;136</p> <p style="MARGIN: 0px">Conclusion &nbsp;142</p> <p style="MARGIN: 0px">Bibliography &nbsp;145</p> <p style="MARGIN: 0px">General Programming &nbsp;145</p> <p style="MARGIN: 0px">Philosophy &nbsp;147</p> <p style="MARGIN: 0px">Java&nbsp; 148</p> <p style="MARGIN: 0px">Index &nbsp;149</p>

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Implementation Patterns