Chapter1:Introduction。
TourGuide
AndNow
Chapter2:Patterns
Chapter3:ATheoryofProgramming
Values
Communication
Simplicity
Flexibility
Principles
LocalConsequences
MinimizeRepetition
LogicandDataTogether
Symmetry
DeclarativeExpression
RateofChange
Conclusion
Chapter4:Motivation
Chapter5:Class
Class
SimpleSuperclassName
QualifiedSubclassName
AbstractInterface
Interface
AbstractClass
VersionedInterface
ValueObject
Specialization
Subclass
Implementor
InnerClass
Instance-SpecificBehavior
Conditional
Delegation
PluggableSelector
AnonymousInnerClass
LibraryClass
Conclusion
Chapter6:State
State
Access
DirectAccess
IndirectAccess
CommonState
VariableState
ExtrinsicState
Variable
LocalVariable
Field
Parameter
CollectingParameter
OptionalParameter
VarArgs
ParameterObject
Constant
Role-SuggestingName
DeclaredType
Initialization
EagerInitialization
LazyInitialization
Conclusion
Chapter7:Behavior
ControlFlow
MainFlow
Message
ChoosingMessage
DoubleDispatch
Decomposing(Sequencing)Message.。
ReversingMessage
InvitingMessage
ExplainingMessage
ExceptionalFlow
GuardClause
Exception
CheckedExceptions
ExceptionPropagation
Conclusion
Chapter8:Methods
ComposedMethod
Intention-RevealingName
MethodVisibility
MethodObject
OverriddenMethod
OverloadedMethod
MethodReturnType
MethodComment
HelperMethod
DebugPrintMethod
Conversion
ConversionMethod
ConversionConstructor
Creation
CompleteConstructor
FactoryMethod
InternalFactory
CollectionAccessorMethod
BooleanSettingMethod
QueryMethod
EqualityMethod
GettingMethod
SettingMethod
SafeCopy
Conclusion
Chapter9:Collections
Metaphors
Issues
Interfaces
Array
Iterable
Collection
List
Set
SortedSet
Map
Implementations
Collection
List
Set
Map
Collections
Searching
Sorting
UnmodifiableCollections
Single-ElementCollections
EmptyCollections
ExtendingCollections
Conclusion
Chapter10:EvolvingFrameworks
ChangingFrameworkswithoutChangingApplications
IncompatibleUpgrades
EncouragingCompatibleChange
LibraryClass
Objects
Conclusion
AppendixA:PerformanceMeasurement
Example
API
Implementation
MethodTimer
CancelingOverhead
Tests
ComparingCollections
ComparingArrayListandLinkedList
ComparingSets
ComparingMaps
Conclusion
Bibliography
GeneralProgramming
Philosophy
Java
Index
^ 收 起