flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Frampton <cfram...@adobe.com>
Subject Re: Flex SDK code conventions
Date Fri, 06 Jan 2012 16:22:04 GMT

-----Original Message-----
From: David Arno <david@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:cframpto@adobe.com]
>> Sent: 05 January 2012 23:55
>> I think it would be okay to move the Flex coding standard over to
>> We/I updated the standard about a year ago with some changes people
>> 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
>Apache Flex coding conventions.

	>> Here is the relevant section


	>> You can decide if you like it.


View raw message