Design Patterns · Junior · Question 56 of 75

What is the Extract Function (Extract Method) refactoring?

Explanation

A good name replaces a comment and makes the fragment reusable and testable on its own.

Further reading

Problem with a question

Design Patterns · Junior · question 56

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz