Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Using the switch(true) pattern in JavaScript. Parent comment
Your first example would still look clean like this:
function check(x) { if (!test1 (x)) { return false; } if (!test2 (x)) { return false; } if (!test3 (x)) { return false; } if (!test4 (x)) { return false; } return true; }
There are no comments on this comment yet.
Your first example would still look clean like this:
And it would be much safer from stupid copy/paste errors.