Exforsys

Online Training

Name of pattern associated with FindCreate() ?

This is a discussion on Name of pattern associated with FindCreate() ? within the Software Patterns forums, part of the Testing category; Hi - I'm wondering if there is a name for the pattern where you consider that every element of the ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-09-2005, 11:28 AM
brianh@metamilk.com
Guest
 
Posts: n/a
Name of pattern associated with FindCreate() ?

Hi -
I'm wondering if there is a name for the pattern where you consider
that every element of the set of resources of some type T already
exists and element access is via some method such as FindCreate(...)
since this seems a very common pattern.

(ie is there a proper word in pattern lingo or philosophy to describe
this other than just "FindCreate")

Thanks,

BrianH.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-11-2005, 01:38 PM
SP
Guest
 
Posts: n/a
Re: Name of pattern associated with FindCreate() ?

<brianh@metamilk.com> wrote in message
news:1118327306.059999.260090@f14g2000cwb.googlegroups.com...
> Hi -
> I'm wondering if there is a name for the pattern where you consider
> that every element of the set of resources of some type T already
> exists and element access is via some method such as FindCreate(...)
> since this seems a very common pattern.
>
> (ie is there a proper word in pattern lingo or philosophy to describe
> this other than just "FindCreate")
>
> Thanks,
>
> BrianH.


FindCreate implies that the "resource" may or may not already exist. An
IdentityMap is a pattern used for checking if the "resource" already exists.
If it does not then it will need to be created using one of the creation
patterns (Factory, AbstrctFactory etc.). As a common place to find objects
look at the Registry pattern [PoEAA].

SP


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-13-2005, 11:01 PM
brianh@metamilk.com
Guest
 
Posts: n/a
Re: Name of pattern associated with FindCreate() ?


> FindCreate implies that the "resource" may or may not already exist.


Yes - I'm not that keen on the word "FindCreate" for this reason. I'd
like to be able to describe the situation where conceptually every
member of the type *eternally* exists but at a lower level this
"eternal existence" is implemented by objects that are
created/destroyed as necessary to represent the higher level "eternal"
objects.

An example of such higher level "eternal" objects are modules in a
module system where the (infinite) space of modules is considered to be
fully populated even though only a finite subset are non-empty, or
strings, where you only need to represent the strings you're actually
using but all possible strings already exist conceptually.

> An
> IdentityMap is a pattern used for checking if the "resource" already exists.
> If it does not then it will need to be created using one of the creation
> patterns (Factory, AbstrctFactory etc.). As a common place to find objects
> look at the Registry pattern [PoEAA].


Thanks for the pointers to different patterns and PoEAA -
Regards, Brian.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.