Push Ifs Up and Fors Down: The Idiom, Its Algebra, and Its Limits
debasishg.github.ioIntroduction One of the recommendations from the Tiger Style document of TigerBeetle .. Centralize control flow. 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. Divide … Read more