Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22AC610E3D for ; Wed, 9 Apr 2014 14:42:04 +0000 (UTC) Received: (qmail 75044 invoked by uid 500); 9 Apr 2014 14:42:03 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 74589 invoked by uid 500); 9 Apr 2014 14:42:02 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 74581 invoked by uid 99); 9 Apr 2014 14:42:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 14:42:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 14:41:55 +0000 Received: by mail-ob0-f169.google.com with SMTP id va2so2813773obc.0 for ; Wed, 09 Apr 2014 07:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=LSdfYfswd4HPxP3gZHYIv7uy5+VR60J8gORCV7S0ghA=; b=fm0fMZ9bRRrrN70scUsgSf7qjw88a6QP84ZdTwaYkbam2JtPJPUMnLaYNz01U8Uphn 3MBuv2PzYA3fEUyw8ov0qa7VtzRurNMKPZWqTvz2z9WIrmagWIiVZ6RKZ5DtZKe2hpQo YSKVSG2IdwN/EtoKD6NKEBlOEP3N2Wo3eF5vFAnfSF5eSQxtX/4U1G3vxZ4H+NSFvIhQ U0Q9J9VXyax5Dfziy/iFT6nLx19Cd8o6ex2KVzzvXU6sqZiSs0g4juT4UatHeyc0mI8z ftW8vvqvBnx7vGfSqUMycabjh93pzQhCZX0KyClvU/Hy/J9KQqdaFXqU6QiV5UCaB0uk GPDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=LSdfYfswd4HPxP3gZHYIv7uy5+VR60J8gORCV7S0ghA=; b=Rxq3n/HcmSAHNM0LBg2lbJaLJLHE7HPaeSZuikngRLGk7n4SIqjZgMWZUEZA8WgU7Z RGgxKCp8XIqlNv7M1mRitniwyvRx8w46mf4EM1SCJIn5v40TwO0801nCnVE+49npAZJf zflfkNRdXV1ywNeV6yZ2oXnoFhktn44if3Aoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=LSdfYfswd4HPxP3gZHYIv7uy5+VR60J8gORCV7S0ghA=; b=Jas+TnAhhn5XKZZNkHJf0BhizP1A2E47fvCOHywWkjD6lvBnnM3xW/3zEQ+2AnRdh7 +coMFA+Fso6GoD3qbg6ffY6VN3h68R8X/lw66qGLkRZ+x4RyWCt3Ye+SzFsfwp6+y8hH +YwNY3BNFDslnoFa4I204mBYLQeU1A7HkLCXA6TNuBgdtWmGTn7lIycXs3T2O5dYaaEP WTSLgDJA9PVEAnqUp3CfAPMs4QNNw47cni7yqJVs/PQ94lcHv01rrDbGvnPmebyvjxet eQr2Y2BQKyxlsvirpL6DvE/XYoPuoRlvtz/N8YA0mkJk6WzdVZuGrf4E+9bL5yZrgEND mqnw== X-Gm-Message-State: ALoCoQlJXPYJOUhY7eQsYZIS7CPxm0EUTrm+GS0DzFRA2dD+Y9iD1+SLwteN3Rh2mwdFesLjs+LXr5HG+eVAq0cDaFZ3TApFRIpGwzVqLYCg9B6Q5szi1/ijqWPxtEZIwlPtMxzkdBHyUTMYJYvft6PInTdQw7iXMuPXD+4+uFn/0ARUED8AGa2WeFzdUB6l8kZ4xYOpcCI9xrSI5fT8JoYtZFOT7iNXjA== X-Received: by 10.60.65.1 with SMTP id t1mr8057207oes.7.1397054493090; Wed, 09 Apr 2014 07:41:33 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.97.39 with HTTP; Wed, 9 Apr 2014 07:41:12 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Wed, 9 Apr 2014 06:41:12 -0800 X-Google-Sender-Auth: qbVXrctocko8-5dBO9r1tjPJm3g Message-ID: Subject: Re: [cordova-js] do we need , ? To: dev Content-Type: multipart/alternative; boundary=001a11c257a4cb7fe804f69d1876 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c257a4cb7fe804f69d1876 Content-Type: text/plain; charset=UTF-8 It's a change of semantics. We can't just dump them. I'll admit that the syntax is confusing - we've already discussed making it a bit nicer and there's an old bug for making it more obvious. *But* - less code - no, now there's more code in every plugin. Less complexity? This is subjective. Is this even worth putting our time into? Is this addressing a problem? I don't think so, but that's just my opinion. One common usage of is to have a module tell cordova not to fire deviceready until the plugin says it's ready. For app-harness, this change will add significant complexity, because instead right now we include all modules (even for those the app we're launching doesn't want), and that's a harmless thing to do. If things change so that all modules are executed on start-up, we'll have to re-package at runtime our version of cordova.js. On Tue, Apr 8, 2014 at 2:20 PM, Brian LeRoux wrote: > I agree. And less code! > > > On Wed, Apr 9, 2014 at 7:24 AM, Jesse wrote: > > > Dump them, I see no use for a declarative level of indirection. > > > > > > > > > > @purplecabbage > > risingj.com > > > > > > On Tue, Apr 8, 2014 at 2:15 PM, Anis KADRI wrote: > > > > > On Tue, Apr 8, 2014 at 12:50 PM, Andrew Grieve > > > wrote: > > > > > > > I think symbol mapping comes with some nuances, and having the them > in > > a > > > > declarative way makes it easier than telling all plugins to write > their > > > JS > > > > in a certain way. > > > > > > > > > Makes what "exactly" easier ? > > > > > > > > > > It's a level of indirection that gives us the ability to > > > > control exactly *when* the mapping happens for example. > > > > > > > > > > Why does this matter ? > > > > > > > > > > > > > > The question of whether we *need* them is not a good way to phrase > it I > > > > think. Rather: > > > > Pros? Cons? Worth changing at this point? > > > > > > > > > > Pros: I don't see any. Like Michal suggested in another post, I see the > > > benefit of having a lib (builder.js) that clobbers/merges namespaces > that > > > plugins could consume. I don't see the benefits of dedicated XML tags. > > > > > > Cons: > > > > > > Unnecessary complexity > > > > > > It is not worth changing. Just worth dropping support for in my > opinion. > > > And not now but 6 months after we decide to do it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Sat, Apr 5, 2014 at 10:56 AM, Brian LeRoux wrote: > > > > > > > > > +1 > > > > > On Apr 4, 2014 10:22 PM, "Michal Mocny" > wrote: > > > > > > > > > > > To be clear: support for the tags is needed for plugins to work > as > > > they > > > > > do > > > > > > now. > > > > > > > > > > > > I'm optimistic that we could replacing them with a library, but > > > Andrew > > > > > had > > > > > > a few good points in the other thread for us to make sure we > don't > > > > > > overlook. > > > > > > > > > > > > Lets just prototype it on the core plugins, shall we? > > > > > > > > > > > > > > > > > > On Fri, Apr 4, 2014 at 10:29 PM, Anis KADRI < > anis.kadri@gmail.com> > > > > > wrote: > > > > > > > > > > > > > Yes the library exists (it's common/builder.js) and it can be > > used > > > by > > > > > > > plugins and yes it runs on startup automatically (unless we > tell > > it > > > > not > > > > > > > too) by require()ing the library and calling the appropriate > > > method. > > > > So > > > > > > do > > > > > > > you agree that the tags are not needed then ? > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 4, 2014 at 7:07 PM, Michal Mocny < > > mmocny@chromium.org> > > > > > > wrote: > > > > > > > > > > > > > > > As commented in another thread, these are super useful, but I > > see > > > > > some > > > > > > > hope > > > > > > > > to replacing them with a library instead of tooling support. > > We > > > > > would > > > > > > > > still need to run these automatically on startup somehow. > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 4, 2014 at 8:48 PM, Anis KADRI < > > anis.kadri@gmail.com > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > and I mean the tags. plugins should be able to > clobber/merge > > > the > > > > > > window > > > > > > > > (or > > > > > > > > > any other context) if they need to. We can advise > developers > > to > > > > use > > > > > > our > > > > > > > > > builder module that does just that or they can write their > > own > > > > > > > > > clobber/merges code. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --001a11c257a4cb7fe804f69d1876--