|
|
|
|
|
by lmm
3691 days ago
|
|
> A complicated function may be made of a bunch of statements where each statement makes sense easily. The entire function may still be complicated. Statement yes, but I avoid them where possible - the complexity comes from their interactions because their interactions are unmanaged, implicit and arbitrary. If you make each function an expression made up of expressions and functions, then I think it becomes true that if each expression makes sense easily then the whole will also make sense easily. |
|
Using small functions is a necessary, but not sufficient, condition for making understandable code.