incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Smith <gosm...@adobe.com>
Subject RE: [OT] Pop quiz
Date Wed, 11 Apr 2012 17:39:54 GMT
My old guidelines at http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions had
this:

"Don't compare a Boolean value to true or false; it already is one or the other."

- Gordon

-----Original Message-----
From: Left Right [mailto:olegsivokon@gmail.com] 
Sent: Wednesday, April 11, 2012 10:01 AM
To: flex-dev@incubator.apache.org
Subject: [OT] Pop quiz

~/flex/SDK/4.6/frameworks/projects/framework/src/mx$ find . -type f -name "*.as" -print0 |
xargs -0 -e grep -nH -e " == true" | wc -l Guess without trying, how many? :)

Sorry, I just had to share this.

On a more serious note - is this in the codestyle guides yet?

Best.

Oleg

Mime
View raw message