Software engineers tend to skim code to quickly identify relevant portions. When writing code from scratch, many developers tend to write long functions. Bunching code up makes it easier to read and reason about on the first pass and debug. If you cram all capabilities an object can offer into a single, giant function, later,
Table of contents
A few observationsProblems caused by bunched-up codeBreak up bunched-up code by extracting methodsExtracted methods enable better namingReusing legacy codeTesting legacy codeConclusion1 Comment
Sort: