Smalti
Sunday, July 29, 2012
Yoda Conditions
Using
if (constant == variable)
instead of
if (variable == constant)
,
like
if (4 == foo)
.
Because it's like saying "
if blue is the sky
" or "
if tall is the man
".
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment