Code Smell 03 - Functions Are Too Long
TL;DR: Refactor and extract functions longer than 5 lines.
Problems
Low Cohesion
High coupling
Difficult to read
Low Reuse
Solutions
1) Refactor
2) Create small objects dealing with some tasks. Unit-test them.
3) Compose methods
Refactorings
http...
maximilianocontieri.com1 min read