“
People sometimes ask me what length I look for in a method. To me length is not the issue. The key is the semantic distance between the method name and the method body. If extracting improves clarity, do it, even if the name is longer than the code you have extracted.
”
― Refactoring: Improving the Design of Existing Code
― Refactoring: Improving the Design of Existing Code
“
If you have to spend effort looking at a fragment of code and figuring out what it's doing, then you should extract it into a function and name the function after the "what".
...more
”
― Refactoring: Improving the Design of Existing Code
― Refactoring: Improving the Design of Existing Code

















