Atthavit Wannasakwong

43%
Flag icon
If functions are made too small, they lose their independence, resulting in conjoined functions that must be read and understood together. When this happens, then it’s better to keep the larger function, so all of the related code is one place. Depth is more important than length: first make functions deep, then try to make them short enough to be easily read. Don’t sacrifice depth for length.
A Philosophy of Software Design
Rate this book
Clear rating
Open Preview