Guard Clauses

Weekly Dev Tips - A podcast by Steve Smith (@ardalis)

Categories:

Your methods should fail fast, if doing so can short-circuit their execution. Guard clauses are a programming technique that enables this behavior, resulting in smaller, simpler functions.