Lexicon

Extract Function

Kind: technique

Layer: Structural Core

Record: lexicon:extract-function

Canonical: Lexicon

A technique for moving a fragment of a long function into a named function of its own.

Listed in Lexicon terms, after Move Behavior to Its Owner and before Split Method.

Category

  • Core Modular Design

Refactors

  • Do Not Repeat Yourself
  • Encapsulation

Linked from

  • Core Modular Design