Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 73857 invoked from network); 27 Nov 2003 01:17:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Nov 2003 01:17:40 -0000 Received: (qmail 73678 invoked by uid 500); 27 Nov 2003 01:17:21 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 73501 invoked by uid 500); 27 Nov 2003 01:17:20 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 73488 invoked from network); 27 Nov 2003 01:17:20 -0000 Received: from unknown (HELO web14104.mail.yahoo.com) (216.136.172.134) by daedalus.apache.org with SMTP; 27 Nov 2003 01:17:20 -0000 Message-ID: <20031127011728.8968.qmail@web14104.mail.yahoo.com> Received: from [198.151.12.8] by web14104.mail.yahoo.com via HTTP; Wed, 26 Nov 2003 17:17:28 PST X-RocketYMMF: neilotoole Date: Wed, 26 Nov 2003 17:17:28 -0800 (PST) From: Neil O'Toole Reply-To: neilotoole@users.sourceforge.net Subject: Re: [collections][PROPOSAL] Remove Observable subpackage To: Jakarta Commons Developers List In-Reply-To: <005101c3b398$db7848c0$75798151@oemcomputer> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --- Stephen Colebourne wrote: > We've had all positives so far. I'm going to take this as agreed and > move > the code to a new sandbox project. I reckon [observable] is probably > the > best name, although I'm open to offers. I don't have strongly held opinions on the naming, but I went through the process of picking a name for a collections observable/notifying/eventsending/callbacking package, and I figured I'd share the thoughts I had on it. Firstly, it certainly should be [observable] rather than [observed], but I'm not going to pretend to remember enough about english grammar to explain why [observable] is better :) I had originally considered this [observable] name when I set about creating my implementation. One of the first things I did (this was circa Sep 2002 I think) was search on the web to see if anybody else had already implemented such a package. The snippet of text that decisively turned me away from the [observable] name was this: > Observability. An observable collection is one in which it is possible to view the elements in a collection. @ http://www.haskell.org/ghc/docs/edison/users007.html ... which of course is the crux of the issue. The familiar implementations of the collections API are all observable, in that you can examine the elements of the collection, such as via an iterator. But the [notifying/observable] implementations we've developed *actively* signal information, typically when the collection changes (although that is not necessarily the case - I could envisage an implementation that sends an event when the collection changes *or* every X seconds, or when some other predicate is satisfied). So, rather than denoting passivity, I figured the name needed to indicate the "active signaling of state information by the object being observed". A snappier name for this behaviour is "notification", so I went with the name [notifyingcollections] over [observablecollections]. You also save a letter in typing ;) Though I don't feel very strongly about it, I still believe that [notifying] is a more indicative name than [observable], and I would suggest we use it. However, I still have a sneaking suspicion that there is a fugitive word out there that better captures the essence of the "active signalling of state information by the object being observed", so hats off to anyone who can conjure it up :) >neil --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org