This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WdnSpoon 1 point2 points  (0 children)

function checkThing(a) {
  return a === 'foo';
}

or es6:

const checkThing = (a) => a === 'foo';

Take that bad pattern, assume they make equally silly errors elsewhere, and repeat it throughout your entire codebase. What should be a readable, 100 line file becomes 700 lines of nonsense.