Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 52039 invoked from network); 2 Oct 2009 08:58:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 08:58:26 -0000 Received: (qmail 22791 invoked by uid 500); 2 Oct 2009 08:58:26 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 22712 invoked by uid 500); 2 Oct 2009 08:58:26 -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 22702 invoked by uid 99); 2 Oct 2009 08:58:26 -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:58:26 +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:58:17 +0000 Received: by mail-fx0-f209.google.com with SMTP id 5so861584fxm.27 for ; Fri, 02 Oct 2009 01:57:57 -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=vjGoCPYnYCSAFcjEWEz1dxVu8n5cD6i7yp/77udYKaQ=; b=xetFcQpMxpykVn/jk/AoCXggSTfBVUyd0ZT4V4P/Ukn3MW73aQM6nwdP16F8gxtez+ 02GMl8+DKFrWqR0u90uugSjnBsAI4mQ7hmJkVL51ci9zxy+lgYkA/3yZU0LJPg1Xz7tl EoI/IbS6fnL09J1eR+EFenrEg/W/WFebdaSKo= 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=AFtpVCHO0bH3nDwyqQd2cXvOlJ8R4TawEe2C6xOqbjymrCJ5Ax+ND1wbWpRjp0Qn40 GzWa2hd30yXe9IabNppZ4SpZWg6WTTXJw0mOt1BpKZZfSv9sdhFmku2BoWE78Nx9lk1X uOD0MAoOeyn0LJmJrzpf9ci+uuC9ip3Sdja5Y= MIME-Version: 1.0 Received: by 10.204.20.79 with SMTP id e15mr983665bkb.11.1254473877519; Fri, 02 Oct 2009 01:57:57 -0700 (PDT) In-Reply-To: References: <67FDA7CF-14FB-4D0D-927B-B67381F6FDFA@davebsoft.com> <8DE647E4-B047-4DEA-8658-E435252141E5@davebsoft.com> Date: Fri, 2 Oct 2009 10:57:57 +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 I meant "Would you like to try and create a new patch based" On Fri, Oct 2, 2009 at 10:57 AM, Richard Hirsch wro= te: > 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 wr= ote: >> @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 = wrote: >>> @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 wro= te: >>>> 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 = wrote: >>>>> 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 vide= o >>>>> 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.z= ip >>>>>>> >>>>>>> >>>>> >>>>> >>>> >>> >> >