-----Original Message----- From: David Arno <da...@davidarno.org> Reply-To: "flex-dev@incubator.apache.org" <flex-dev@incubator.apache.org> Date: Fri, 6 Jan 2012 07:00:07 -0800 To: "flex-dev@incubator.apache.org" <flex-dev@incubator.apache.org> Subject: RE: Flex SDK code conventions
>> From: Carol Frampton [mailto:cfram...@adobe.com] >> Sent: 05 January 2012 23:55 > >> I think it would be okay to move the Flex coding standard over to >>Apache. >> >> We/I updated the standard about a year ago with some changes people >wanted, >> like allowing line lengths up to 100 chars. We didn't take the time to >eliminate all the TBDs. > >Did you remove the rule that "if (objectReference)" should be used and "if >(objectReference != null)" or "if (objectReference is SomeType)" should be >avoided? This is a truly bad rule that encourages bugs (if objectReference >is "" or 0 for example, it'll still be false). As long as this rule was >removed, then I'd see the Adobe conventions as a good starting point for >the >Apache Flex coding conventions. >> Here is the relevant section >> http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingC onventions-Expressions >> You can decide if you like it. > >David. > >