News for hackers. Stuff that matters.
Re:Using the switch(true) pattern in JavaScript by qudat on Monday April 12, 2021 @11:49AM (#26780768)
Agreed! I have three rules for writing functions:

- Return early

- Return often

- Reduce levels of nesting

https://erock.io/2019/07/11/three-rules-for-refactoring-func...

There are no comments on this comment yet.