Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A6638200CC6 for ; Tue, 18 Jul 2017 17:36:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A4E0B16714D; Tue, 18 Jul 2017 15:36:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C48FE167148 for ; Tue, 18 Jul 2017 17:36:21 +0200 (CEST) Received: (qmail 47293 invoked by uid 500); 18 Jul 2017 15:36:20 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 47281 invoked by uid 99); 18 Jul 2017 15:36:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2017 15:36:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 16E7E1A0A92 for ; Tue, 18 Jul 2017 15:36:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sgVSEtTJZwnH for ; Tue, 18 Jul 2017 15:36:17 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 34BA360CD9 for ; Tue, 18 Jul 2017 15:36:17 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id a62so22446885itd.1 for ; Tue, 18 Jul 2017 08:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rBsu1L6nA5qHuH0maokjQ6EES4La2ZMoYLCwc4oMQBc=; b=JKFJIOaWVnkzDEiStQ7Ns8zkU6wt8bxXAtbEwivTa9+6Gacdx4Fxt6KkaJuYVVdrQo mTXYdCLlxLJKFAKwXlTnZsHr75CJ0WzVsHRlb1pSqxjN0tc38p39mqreVKWSdJ4kyd80 tGjouVNKLrH7kxVj2LwZzSeiX+CGNu9t7gUAkrgcidQkUgsc85SvXjyyC9ZrWfk6y6iZ tA7uWT5g21WMPcJVEClDEcK/EnkbvBtHB7X/bQC4M4umNX67rAyN/z2l4FXO+Sk50qwS s/ADRRbupPm3Plh2k0naUjV5BEAnbfcC8lcbj8zpWOszeydJFIUCb+z7EfDgWAca9s4L QrAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rBsu1L6nA5qHuH0maokjQ6EES4La2ZMoYLCwc4oMQBc=; b=tmiLKATpAWaddrnKc9CYc5ii5TFsGZrLAkVKV9jjvD1cH2GqE+bMbMyn5ri7Ri0yD1 7sPwdH5WrVz3V/0cXu2NJVyWqnAAv4JPxBkoe380ca2AFB1BSM8qoHM/WBDwBvd3N88p uok4qIZj4jVyfbI58TdMr3F/zzgew7xUn4Zzm2pf2tOVtQgRn6ZP4rTtehu3mif8JEi9 eB4ATPyCpXRcXlSVAW4GFnedGeIJw7084ll/mIXKTE2ur1od+A2tUw2l7Bwf49tUv2AU w/9Z4M7megz09k6VSOx7i4zfUTfIh570mdqGtv9bMcgfVPbqBL3hihesGrIN+8jX/Ws7 dAkQ== X-Gm-Message-State: AIVw110niDyzY+1qxNNAhD0AytBbZAPEE/2r2kbmVu0hbZdvonC6VyRA 5U2w4kFYbldjIm3IemCK18ZyLz6h4Q== X-Received: by 10.36.36.135 with SMTP id f129mr3333362ita.60.1500392175725; Tue, 18 Jul 2017 08:36:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.132.207 with HTTP; Tue, 18 Jul 2017 08:35:34 -0700 (PDT) In-Reply-To: References: <9F4DC2C2-E17F-4E8B-BBDB-549D68CD0363@comcast.net> <2EC06E15-0D0D-4AAF-867A-00A7A81E2D2F@comcast.net> <230AA013-ABEA-41BE-BA8C-4A8D100B07D2@gmail.com> <283F5BD1-09F7-491B-9386-64D7070106F7@classsoftware.com> <1499588291853-62975.post@n4.nabble.com> <1499597249842-62980.post@n4.nabble.com> <1499668086643-63016.post@n4.nabble.com> <31661087-AAC8-4432-BAD5-0913E4EEFF18@classsoftware.com> <4BE221F8-26A7-4160-A910-59D8D489B2AF@gmail.com> <1F415DBB-DBD3-4A10-8405-2B12CB50C5A5@classsoftware.com> <9BE33294-A89B-423F-A1CA-0DE037D32D51@gmail.com> From: Josh Tynjala Date: Tue, 18 Jul 2017 08:35:34 -0700 Message-ID: Subject: Re: [FlexJS] technical debt To: dev@flex.apache.org Content-Type: multipart/alternative; boundary="001a1144ce4aa88fc6055499469d" archived-at: Tue, 18 Jul 2017 15:36:22 -0000 --001a1144ce4aa88fc6055499469d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Additionally, the cloning results in extra objects that need to be garbage collected, which can hurt performance and make effects/animations look bad. Good call on avoiding it! - Josh On Tue, Jul 18, 2017 at 8:23 AM, Alex Harui wrote: > +1 to what Harbs said. > > Also, in FlexJS, we want very few if any custom events to bubble. > Bubbling was overused in regular Flex and was, IMO, a bad practice becaus= e > it breaks encapsulation. > > Bubbling was intended to allow an object in the DOM to monitor inputs to > its children without having to attach listeners to the entire tree. It > was not meant as a way for a component to shout to the world "Hey, I just > changed a property, does anybody care?" > > -Alex > > On 7/17/17, 11:05 PM, "Harbs" wrote: > > >event.clone() is wrong for FlexJS. It=E2=80=99s event.cloneEvent() > > > >There was other feedback on the dev list. That seemed to have been > >ignored. > > > >A lot of the rules fly in the face to current convention in the SDK. Som= e > >(such as returning from a constructor) are actually enforced by the > >compiler so the rule is not needed. I don=E2=80=99t have time right now = to get > >involved in a long protracted discussion, but please don=E2=80=99t take = the lack > >of input as consensus. > > > >Feel free to do what you want to SonarQube now, but don=E2=80=99t make a= ny > >changes based on the reports. If anyone else takes an interest in it, > >please expect some rules to be changed. > > > >Thanks, > >Harbs > > > >> On Jul 18, 2017, at 8:50 AM, Justin Mclean > >>wrote: > >> > >> Hi, > >> > >> So more than a week has gone by and I=E2=80=99ve received little feedb= ack on > >>[1]. Given that I=E2=80=99ll gone ahead and implement the rules as disc= ussed in > >>the document so people can see the changes. > >> > >> The new results are up: > >> - First off the header rules is overly strict and expects a copyright > >>line not just a header. ASF policy to not to have copyright lines so > >>this is a false positive. I=E2=80=99ll disable the rule. We have other = means to > >>check headers. This will be fixed in the next run. > >> - The ASDocs rule is picking a lot of public methods and properties > >>that don=E2=80=99t have ASDocs. I think we should keep this to remind u= s at some > >>point it needs to be fixed / people can fix as they make edits. > >> - Is easier to see if issues that do need to be fixed. For instance I > >>can see that there are a couple of event.clone issues that are likely > >>bugs. > >> > >> Thanks, > >> Justin > >> > >> 1. > >>https://na01.safelinks.protection.outlook.com/?url=3D > https%3A%2F%2Fcwiki.ap > >>ache.org%2Fconfluence%2Fdisplay%2FFLEX%2FSonar% > 2BCube%2BFlex%2BRules&data > >>=3D02%7C01%7C%7C9be74a7882374975005208d4cda30749% > 7Cfa7b1b5a7b34438794aed2c1 > >>78decee1%7C0%7C0%7C636359547464506542&sdata=3D > cPs4sqimu5YFG%2B08ymZNtb9HMWC > >>WFGixhtyGrP0burM%3D&reserved=3D0 > >> https%3A%2F%2Fcwiki.a > >>pache.org%2Fconfluence%2Fdisplay%2FFLEX%2FSonar% > 2BCube%2BFlex%2BRules&dat > >>a=3D02%7C01%7C%7C9be74a7882374975005208d4cda3 > 0749%7Cfa7b1b5a7b34438794aed2c > >>178decee1%7C0%7C0%7C636359547464506542&sdata=3D > cPs4sqimu5YFG%2B08ymZNtb9HMW > >>CWFGixhtyGrP0burM%3D&reserved=3D0> > > > > --001a1144ce4aa88fc6055499469d--