Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 442 Bytes

LongMethod.md

File metadata and controls

14 lines (8 loc) · 442 Bytes

Pattern: Method has too many lines

Issue: -

Description

Methods should have one responsibility. Long methods can indicate that a method handles too many cases at once. Prefer smaller methods with clear names that describe their functionality clearly.

Extract parts of the functionality of long methods into separate, smaller methods.

Further Reading