Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-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 695677B36 for ; Tue, 13 Dec 2011 19:25:47 +0000 (UTC) Received: (qmail 99115 invoked by uid 500); 13 Dec 2011 19:25:47 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 99098 invoked by uid 500); 13 Dec 2011 19:25:47 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 99090 invoked by uid 99); 13 Dec 2011 19:25:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 19:25:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 209.85.210.181 as permitted sender) Received: from [209.85.210.181] (HELO mail-iy0-f181.google.com) (209.85.210.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 19:25:37 +0000 Received: by iaeo4 with SMTP id o4so2229658iae.26 for ; Tue, 13 Dec 2011 11:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QzTLv3LTVcYcLB36LtyxfwVoesbCSONPsJjfxgPYpbg=; b=oBkKsRAy+gO9iH76WqVKxbo8Au43v2y/Kj+2vsWO+IyLDCgJTytVSSRE8cRFkkNCgl rdkv0E7kBRJDtvaMmczdR349gzJmOfpaUffIACYwGKFaPuBFW2lDGFX/13HZ5zzYK7UJ yXq4bN87Q09sbsDedJbQhhJe79NIlNwlbgdDM= MIME-Version: 1.0 Received: by 10.50.149.162 with SMTP id ub2mr20740534igb.70.1323804316209; Tue, 13 Dec 2011 11:25:16 -0800 (PST) Sender: brian.leroux@gmail.com Received: by 10.50.94.198 with HTTP; Tue, 13 Dec 2011 11:25:16 -0800 (PST) In-Reply-To: References: Date: Tue, 13 Dec 2011 11:25:16 -0800 X-Google-Sender-Auth: rOhmz66rGfADIG-SCv4unDPUHVc Message-ID: Subject: Re: CommonJS and AMD (and, not or) From: Brian LeRoux To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Looks rad. I'm curious what an AMD plugin vs the same plugin authored in CJS style would look like. Just a hello world. On Tue, Dec 13, 2011 at 11:09 AM, Gord Tanner wrote: > So I ported callback-js to use almond but it is still using the custom > builder code. > > https://github.com/gtanner/callback-js/tree/almond > > It was very nice that I could switch this out with no update to any of th= e > modules. > > Patrick: Would be cool if you could update this to use r.js if it is > possible. > > With my quick experience with almond I have to say I really like what I a= m > seeing and I think it will help us out a lot and give the ability to have > plugin's authored in both commonJS and AMD module definitions. (unless I = am > misunderstanding something). > > Gord > > On Fri, Dec 9, 2011 at 12:18 PM, Patrick Mueller wrot= e: > >> On Fri, Dec 9, 2011 at 11:20, Gord Tanner wrote: >> >> > I am switching out browser-require for require.js in a branch today to >> see >> > what this would feel like for a developer. >> > >> >> > I have no preference as to which module system we use so I am going to >> give >> > this a go today to learn AMD modules / requireJS and get a feel for ho= w >> it >> > would look in phonegap.js development. >> > >> >> I assume you are going to use the big requirejs, which includes dynamica= lly >> loading modules async, etc. =A0Since I've been playing with almond, I ca= n >> take whatever you do, and see how to fit almond into the picture for a >> single cat'd file. =A0Just point me to your repo ... >> >> -- >> Patrick Mueller >> http://muellerware.org >> > > > > -- > Gord Tanner > Senior Developer / Code Poet > tinyHippos Inc. > @tinyhippos