Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 90788 invoked from network); 4 Oct 2009 01:32:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Oct 2009 01:32:36 -0000 Received: (qmail 58632 invoked by uid 500); 4 Oct 2009 01:32:35 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 58551 invoked by uid 500); 4 Oct 2009 01:32:35 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 58543 invoked by uid 99); 4 Oct 2009 01:32:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Oct 2009 01:32:35 +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 markrmiller@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Oct 2009 01:32:24 +0000 Received: by qw-out-2122.google.com with SMTP id 5so752185qwi.53 for ; Sat, 03 Oct 2009 18:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=UVgaHSXKRYdhpTfv6j0jEvYe/NBQixOr8kDuUeGd2LI=; b=SiEBvE3PQvN0sFc2a76dj0RNGhj3msqLqYXPJZ7QpeXsrEXUnk8DRZ/if9Sd89j2yM ZskDPxaUmOcxiM7SOWBaa/3FlbqHZJLfFERKBjtHu+YPBX/vVet9vFmYr7nhTH8ejuVN 0TukpGbcXUcP+RXRdGPrU3rH6plmydxA81be8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=xIffDAL7DVDiY3BWMgvpO99+np4IQWgbVPOOGIfZdsqr3M1s5PV+vg81Lzb66oy7Tj o17+mjZLRc4iiN5mw/622rvWnXIFp9zo/OMryobCk7X+UlK4QFzsZJiXccT0GDcVY0oK WauzjD6giP3BHOxdzY9o7XCdSBshq5vpZwOWQ= Received: by 10.224.56.208 with SMTP id z16mr2238115qag.144.1254619863626; Sat, 03 Oct 2009 18:31:03 -0700 (PDT) Received: from ?192.168.1.108? (ool-44c639d9.dyn.optonline.net [68.198.57.217]) by mx.google.com with ESMTPS id 5sm9743qwg.23.2009.10.03.18.31.02 (version=SSLv3 cipher=RC4-MD5); Sat, 03 Oct 2009 18:31:02 -0700 (PDT) Message-ID: <4AC7FAD5.7030103@gmail.com> Date: Sat, 03 Oct 2009 21:31:01 -0400 From: Mark Miller User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: Lucene 2.9 and deprecated IR.open() methods References: <4AC684B7.2040505@gmail.com> <59b3eb370910021625r3854c09dw3c280143aed87b1a@mail.gmail.com> <59b3eb370910021645l154f1ee9p14586927b93fbbef@mail.gmail.com> <9ac0c6aa0910021715w6c67c26fwcd5b25d80d7b7217@mail.gmail.com> <4AC698E4.1050606@gmail.com> <59b3eb370910021918h797027e8qf30761dd22e8f6e5@mail.gmail.com> <4AC7E7D0.8060408@gmail.com> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ted Dunning wrote: > > The builder pattern and the config argument to a factory both have the > advantage that you can limit changes after creating an object. Some > things are just bad to change in mid-stream. The config argument is > nice in that you can pass it around to different stake holders, but > the builder can be used a bit like that as well. Yeah that argument has been made. But I've *never* seen it as an issue. Just seems like a solution looking for a problem. I can see how it's cleaner, not missing that point. But still doesn't make me like it much. > > One way to look at it is that a builder is just a config object that > happens to have the create method. > > On Sat, Oct 3, 2009 at 5:09 PM, Michael Busch > wrote: > > But, like Mark said, maybe this is just my personal preference and > for others not compelling arguments. Or maybe I'm missing some > other advantage of the builder pattern? I haven't used/implemented > it myself very much yet... > > > > > -- > Ted Dunning, CTO > DeepDyve > -- - Mark http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org