Design Patterns · Junior · Question 58 of 75

Why is a very long function considered a code smell?

Explanation

If you need comments to explain sections, those sections are candidates for extracted functions.

Further reading

Problem with a question

Design Patterns · Junior · question 58

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