Clean Code concepts adapted for JavaScript
Lower "bad example" count
-The section, "Use default arguments instead of short circuiting or conditionals"
originally had 2 "bad examples" and 1 "good example."
- This commit lowers the "bad examples" count from 2 -> 1.
- The 1st "bad example" demonstrated the "conditionals" approach to default values.
- The 2nd "bad example" demonstrated the "short-circuit" approach to default values.
- I decided to only show the "short-circuit" approach as the 1 bad example, since that's
what most people would use traditionally in ES5.
- Few people actually use the "conditionals" approach, so I felt that warning
against the "conditionals" approach was unnecessary. A
Anton Paras committed
eaa3477dbfda8b555647d484a35dec7aebb8944d
Parent: ac12cb8
Committed by GitHub <noreply@github.com>
on 1/10/2017, 4:53:09 PM