- Podcasts
- Collin's Code
- Avoid Else, Return Early
About this episode
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 noise.
http://blog.timoxley.com/post/47041269194/avoid-else-return-early
