Skip to content

Avoid Else, Return Early

Avoid Else, Return Early

Listen to “Avoid Else, Return Early”

Episode synopsis

I totally agree. In most cases it’s a good rule of thumb. – Return as soon as you know your method cannot do any more meaningful work – Reduce indentation by using if/return instead of a top-level if/else – Try keep the “meat” of your method at the lowest indentation level. – Error handling is … Continue reading "Avoid Else, Return Early"

ZARZA Studio — Your station on air today: library, music clock, schedule, studio and reports, from the browser.

Meet ZARZA Studio
— on air now — stations in the catalogue 2,025,414 podcasts — countries