News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by mekster on Monday April 12, 2021 @12:34PM (#26781483)
Unwanted conditions should be handled before handling the process in a peaceful condition.

Not sure it makes much sense to indent everything within "if" and if you forget to "else", you've just potentially hidden a bug.

There are no comments on this comment yet.