Skip to Content
Refactoring to Patterns
book

Refactoring to Patterns

by Joshua Kerievsky
August 2004
Intermediate to advanced
400 pages
8h 46m
English
Addison-Wesley Professional
Content preview from Refactoring to Patterns

Chapter 10. Accumulation

A good deal of code in software systems accumulates information. The refactorings in this section target the improvement of code that accumulates information within an object or across several objects.

A Collecting Parameter [Beck, SBPP] is an object that visits methods in order to accumulate information from them. The visited methods may reside within one object or many objects. Each visited method provides the Collecting Parameter with information. When all relevant methods have been visited, the accumulated information can be obtained from the Collecting Parameter.

Move Accumulation to Collecting Parameter (313) is often used in conjunction with the refactoring Compose Method (123). The combination of these refactorings ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Refactoring at Scale

Refactoring at Scale

Maude Lemaire
API Design Patterns

API Design Patterns

John J. Geewax
Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

Martin Fowler, Kent Beck, John Brant, William Opdyke, Don Roberts

Publisher Resources

ISBN: 0321213351Purchase book