Refactoring Workbook

Several refactorings have the form "Verb Noun."

Consider these verbs : Extract, Inline; Move; Rename; Pull Up, Push Down; Hide, Expose.

Consider these nouns : Field, Method; Class, Interface, Subclass, Superclass; Hierarchy.

Interlude I4.1 Verbs and Nouns.

In the table below, put a dash ( ”) in combinations that don't make sense, a plus sign (+) in those that are in Fowler's Refactoring catalog, and an asterisk (*) in those that make sense but aren't in the catalog.

 

Extract

Inline

Move

Rename

Pull Up

Push Down

Hide

Expose

Field

               

Method

               

Class

               

Interface

               

Subclass

               

Superclass

               

Hierarchy

               

See Appendix A for solution.

Категории