Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FBFBB291 for ; Fri, 6 Jan 2012 16:22:43 +0000 (UTC) Received: (qmail 84439 invoked by uid 500); 6 Jan 2012 16:22:43 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 84372 invoked by uid 500); 6 Jan 2012 16:22:42 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 84364 invoked by uid 99); 6 Jan 2012 16:22:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 16:22:42 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cframpto@adobe.com designates 64.18.1.37 as permitted sender) Received: from [64.18.1.37] (HELO exprod6og116.obsmtp.com) (64.18.1.37) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 16:22:35 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob116.postini.com ([64.18.5.12]) with SMTP ID DSNKTwcftq7Gea462KNzQdF+Rj1KtcyVed3j@postini.com; Fri, 06 Jan 2012 08:22:14 PST Received: from inner-relay-1.corp.adobe.com (inner-relay-1.sea.adobe.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q06GMCPu020431 for ; Fri, 6 Jan 2012 08:22:12 -0800 (PST) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q06GMBL7021404 for ; Fri, 6 Jan 2012 08:22:11 -0800 (PST) Received: from SJ1SWM219.corp.adobe.com (10.5.77.61) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.192.1; Fri, 6 Jan 2012 08:22:11 -0800 Received: from NAMBX01.corp.adobe.com ([10.8.189.91]) by SJ1SWM219.corp.adobe.com ([fe80::d55c:7209:7a34:fcf7%12]) with mapi; Fri, 6 Jan 2012 08:22:11 -0800 From: Carol Frampton To: "flex-dev@incubator.apache.org" Date: Fri, 6 Jan 2012 08:22:04 -0800 Subject: Re: Flex SDK code conventions Thread-Topic: Flex SDK code conventions Thread-Index: AczMj1eNO0+iLwtdQqaLl9QUimxuvg== Message-ID: In-Reply-To: <006301cccc83$e14bb900$a3e32b00$@davidarno.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.13.0.110805 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 -----Original Message----- From: David Arno Reply-To: "flex-dev@incubator.apache.org" Date: Fri, 6 Jan 2012 07:00:07 -0800 To: "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 >>Apache. >> >> We/I updated the standard about a year ago with some changes people >wanted,=20 >> 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 !=3D 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 >>=20 http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingC onventions-Expressions >> You can decide if you like it. > >David. > >