Push Ifs Up and Fors Down: The Idiom, Its Algebra, and Its Limits
- When splitting a large function, try to keep all switch/if statements in the "parent" function, and move non-branchy logic fragments to helper functions.
Unverified
- When splitting a large function, try to keep all switch/if statements in the "parent" function, and move non-branchy logic fragments to helper functions.
Sources: Github