3 ms·
Programs with short methods are easy to understand. My program uses short methods. Therefore my program is easy to understand. so if follows.... Cats have Eye
by KiwiNige 18y ago
Programs with short methods are easy to understand.
My program uses short methods.
Therefore my program is easy to understand.
so if follows....
Cats have Eyes.
I have Eyes.
Therefore I am a Cat!
- raganwald 18y agoHmmm. Actually, I disagree with your statement as written. "Programs with short methods are easy to understand" expresses that the set of programs with short methods is a subset of the set of all programs that are easy to understand. Therefore, every program with short methods is easy to understand, or (easy to understand) if (short methods), or (short methods) -> (easy to understand). I was expressing that it there exists a very large set of programs with short methods that are not easy to understand. To make these statements less subject to procedural wrangling, given a particular working program, the set of all possible permutations and refactorings that produce the same output contains many permutations with short methods that are not easy to understand.