Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 51982 invoked from network); 2 Oct 2009 08:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 08:57:51 -0000 Received: (qmail 22615 invoked by uid 500); 2 Oct 2009 08:57:51 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 22569 invoked by uid 500); 2 Oct 2009 08:57:51 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 22552 invoked by uid 99); 2 Oct 2009 08:57:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 08:57:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hirsch.dick@gmail.com designates 209.85.220.209 as permitted sender) Received: from [209.85.220.209] (HELO mail-fx0-f209.google.com) (209.85.220.209) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 08:57:42 +0000 Received: by fxm5 with SMTP id 5so861584fxm.27 for ; Fri, 02 Oct 2009 01:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=774deGCvOqu+enVn/8Rz9aopniDCkMDiDE7SatLIUSE=; b=RxcEXEY+4qs5oukVC93D92sNg9Hy6NSFB5xpxFfz6sx37nKH4zt3KXcgZJOdJ3yEST 3Oxy6ZaYjDH3maLIks5s6AX3+MTdybfPJwHKo8gtrBcEWgjNZxPBLsHm8DhD5litD2Au B80wbPigqQ6BWnEzTyEL5qo7Bs+wk10ko61YA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lY1dI3vmFWYXjNnM//NZzWAMS/k3VjJ7qqZdxF7FQZmmHbpF8PMdxA8cB2Uqm3/BN1 10Q3jNT8aLD4mhjCPZoKm4JrHJq+6u22hN1z5LOypPFrgDdGTbNLzTxgqyfG9CwK545j q6pz/tJl8zOymxNdVb22fDq/4aLRqyI2pRgKM= MIME-Version: 1.0 Received: by 10.204.26.147 with SMTP id e19mr939815bkc.149.1254473841360; Fri, 02 Oct 2009 01:57:21 -0700 (PDT) In-Reply-To: References: <32D4E536-BC64-4F09-B40E-C5C07B07B3BF@davebsoft.com> <67FDA7CF-14FB-4D0D-927B-B67381F6FDFA@davebsoft.com> <8DE647E4-B047-4DEA-8658-E435252141E5@davebsoft.com> Date: Fri, 2 Oct 2009 10:57:21 +0200 Message-ID: Subject: Re: New Jira item for user list page From: Richard Hirsch To: esme-dev@incubator.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Committed the code from your patch and deployed it on stax. Would you like to try my a new patch based on Vassil's suggestions and my comments on the JIRA item? D. On Thu, Oct 1, 2009 at 6:46 PM, Richard Hirsch wrot= e: > @Dave - I'll do a test deployment tomorrow with the files from the > Jira item. =A0Then, I'll probably do a commit just to keep things > rolling. Afterwards, Vassil and you can sit down and figure out how to > improve the code. > > P.S. I like the fact that you are getting rid of the code that is > commented-out. You are right - that stuff really doesn't belong in the > code base - that is why we have SVN. > > D. > > On Thu, Oct 1, 2009 at 11:42 AM, Richard Hirsch w= rote: >> @Dave: do you want me to make a commit/deployment based on the first >> version of code or do you want to make a new version based on vassil's >> suggestions and then I'll make a commit? >> >> Or both :-> >> >> D. >> >> On Thu, Oct 1, 2009 at 11:14 AM, Vassil Dichev wrot= e: >>> Yes, sorry, I'm being myopic today. In that case, as a matter of >>> personal preference, I don't very much like using _1, _2, etc. for >>> tuples. Extracting values to meaningful variable names seems more >>> readable. For instance, on line 61, instead of >>> >>> =A0 =A0 =A0 =A0 =A0 val msg =3D lastMessage(u.id) >>> >>> you could do >>> >>> =A0 =A0 =A0 =A0 =A0 val (m, when) =3D lastMessage(u.id) >>> >>> and lines 77-78, instead of >>> >>> =A0 =A0 =A0case msgs =3D> { >>> =A0 =A0 =A0 =A0val msg =3D msgs(0)._1 >>> >>> I would prefer >>> >>> =A0 =A0 =A0case (msg, _) :: _ =3D> { >>> >>> Does that read better? >>> >>> Vassil >>> >>> >>> On Thu, Oct 1, 2009 at 12:01 PM, Dave Briccetti w= rote: >>>> No, the UserView is no longer used for this page. I just deleted part = of it. >>>> I didn=92t write anything. The new Scala code is in UserMgr. The video >>>> explains, and you could probably fast-forward or skip through it. >>>> >>>> On Oct 1, 2009, at 1:49 AM, Vassil Dichev wrote: >>>> >>>>> Apart from the fact that xml is coded in the UserView, it looks very >>>>> good. I especially like the pattern to destructure a tuple into vals >>>>> using case: >>>>> >>>>> map{ >>>>> =A0case (m, idx) =3D>... >>>>> >>>>> Quite readable. >>>>> >>>>> >>>>> On Thu, Oct 1, 2009 at 11:16 AM, Dave Briccetti >>>>> wrote: >>>>>> >>>>>> Patch file and new files (see video for explanation), for review: >>>>>> >>>>>> https://issues.apache.org/jira/secure/attachment/12420990/esme-86.zi= p >>>>>> >>>>>> >>>> >>>> >>> >> >