Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Avoid Else, Return Early (2013). Parent comment
I now think of the early part of a function as a filter for bad params, invalid state & whatnot, and return as early as possible.
Code just feels less complex that way.
There are no comments on this comment yet.
I now think of the early part of a function as a filter for bad params, invalid state & whatnot, and return as early as possible.
Code just feels less complex that way.