Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript Things I Wish I Knew Much Earlier In My Career. Parent comment
This can be mitigated with parenthesis around the conditional statement.
"ternary notation ... [is] great for saving (a little) time"
I like it because it allows for immutable variables (enforced by fiat, of course), without writing four lines of "if ... else .."
That being said, it can be abused: http://www.google.com/codesearch?hl=en&lr=&q=%22%3D%...
There are no comments on this comment yet.
This can be mitigated with parenthesis around the conditional statement.
"ternary notation ... [is] great for saving (a little) time"
I like it because it allows for immutable variables (enforced by fiat, of course), without writing four lines of "if ... else .."
That being said, it can be abused: http://www.google.com/codesearch?hl=en&lr=&q=%22%3D%...