Echo JS 0.11.0

<~>
tracker1 3673 days ago. link 4 points ▲ ▼
Although it touches on it... it's a bad example... I tend to prefer early return wherever possible, and putting the shortest conditional group higher.  I feel that "else" is usually a code smell.

Likewise, I will sometimes use continue to avoid additional logic vs. a larger nested conditional block.

I find that the flatter the code the better, and that being able to see everything you need to see on screen, where practical is very important... shorter methods, etc.

Replies

tracker1 3673 days ago. link 2 points ▲ ▼
If I get a chance to get my new blog tooling finished... Though, I guess I could write something up on Medium in the interim.