Smalltalk Best Practice Patterns, 1st edition

Published by Pearson (October 3, 1996) © 1997

  • Kent Beck Boulder Creek, CA
Products list

Details

  • A print text
  • Free shipping
  • Also available for purchase as an ebook from all major ebook resellers, including InformIT.com

This product is expected to ship within 3-6 business days for US and 5-10 business days for Canadian customers.

Smalltalk programmers, project managers, teachers and students -- both new and experienced.

This book presents a set of patterns that organize all the informal experience successful Smalltalk programmers have learned the hard way. Understand these patterns, and you can write much more effective code.



1. Introduction.

Coding. Talking Programs. Good Software. Style. What's Missing? Book Organization. Adoption. Learning a Pattern.



2. Patterns.

Why Patterns Work. Role of Patterns. Reading. Development. Review. Documentation. Clean Up. Format.



3. Behavior.

Methods. Composed Method. Constructor Method. Constructor Parameter Method. Shortcut Constructor Method. Conversion. Converter Method. Converter Constructor Method. Query Method. Comparing Method. Reversing Method. Method Object. Execute Around Method. Debug Printing Method. Method Comment. Messages. Message. Choosing Message. Decomposing Message. Intention Revealing Message. Intention Revealing Selector. Dispatched Interpretation. Double Dispatch. Mediating Protocol. Super. Extending Super. Modifying Super. Delegation. Simple Delegation. Self Delegation. Pluggable Behavior. Pluggable Selector. Pluggable Block. Collecting Parameter.



4. State.

Instance Variables. Common State. Variable State. Explicit Initialization. Lazy Initialization. Default Value Method. Constant Method. Direct Variable Access. Indirect Variable Access. Getting Method. Setting Method. Collection Accessor Method. Enumeration Method. Boolean Property Setting Method. Role Suggesting Instance Variable Name. Temporary Variables. Temporary Variable. Collecting Temporary Variable. Caching Temporary Variable. Explaining Temporary Variable. Reusing Temporary Variable. Role Suggesting Temporary Variable Name.



5. Collections.

Classes. Collection. OrderedCollection. RunArray. Set. Equality Method. Hashing Method. Dictionary. SortedCollection. Array. ByteArray. Interval. Collection Protocol. IsEmpty. Includes:. Concatentation. Enumeration. Do. Collect. Select/Reject. Detect. Inject:into:. Collection Idioms. Duplicate Removing Set. Temporarily Sorted Collection. Stack. Queue. Searching Literal. Lookup Cache. Parsing Stream. Concatenating Stream.



6. Classes.

Simple Superclass Name. Qualified Subclass Name.



7. Formatting.

Inline Message Pattern. Type Suggesting Parameter Name. Indented Control Flow. Rectangular Block. Guard Clause. Conditional Expression. Simple Enumeration Parameter. Cascade. Yourself. Interesting Return Value.



8. Development Example.

Problem. Start. Arithmetic. Integration.



Summary.


Appendix A: Quick Reference.


Index.

Need help? Get in touch