Tech News
← Home  ·  All topics

Control Flow

2 GoKawiil briefs on this topic

TigerBeetle Recommends Centralizing Control Flow with Push-Ifs Up and Fors Down

The Tiger Style document from TigerBeetle advocates for a programming approach where conditional statements are moved to higher-level functions, and loops are deferred to later stages. This technique aims to improve code clarity and performance by reducing branching and enabling bulk operations. Matklad has also discussed this principle, emphasizing its benefits in code optimization.

Explainer breaks down how Cyclomatic Complexity is measured and applied in C#

A technical guide details Cyclomatic Complexity (CC), a decades-old code metric originated by Thomas McCabe in 1976 that counts independent execution paths through a method by tallying branching constructs like if, while, for, case, and logical operators. It outlines the scoring scale—1 for a single path, roughly 10 as McCabe's recommended ceiling, and above 25 flagged as excessive by Microsoft's CA1502 analyzer—and shows how to compute, visualize, and interpret it in .NET codebases alongside test coverage and IL-level analysis.