Re: D5 - Class\Collection example??
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 14 Oct 2007 23:21:55 +0200
"Tom de Neef" <tdeneef@xxxxxxxx> wrote in message
news:47123f5f$0$239$e4fe514c@xxxxxxxxxxxxxxxxx
"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:47123117$0$238$e4fe514c@xxxxxxxxxxxxxxxxx
<code>
Interesting. (By the way: what does ConsentsToBreakup do ?)
(Straight face) It returns a Boolean.
But real life is more complex than this.
Er... yes. Let's not make more out of this than it was. (That means
you, too, DoDi.) This was a demonstration of a reflexive property. It
lays out the pattern for updating properties in objects to which you
acquire a reference, without causing infinite recursion.
Nothing more.
[...] Setting up genealogical relations needs to be done in a
different way.
It does. This code only kept an ongoing model current. Describing
history is best served by a collection of facts. Facts are added
whenever something changes, and are never modified or deleted.
When the current situation must be determined from the history,
it can be deduced.
Or, since computing the current state of the model from a list of
patches can be an ungodly amount of work, the current state can be
tracked as changes are applied. In a database, this amounts to
denormalisation, and doing so is indeed a common way to improve
performance.
Groetjes,
Maarten Wiltink
.
- References:
- D5 - Class\Collection example??
- From: Don
- Re: D5 - Class\Collection example??
- From: Tom de Neef
- Re: D5 - Class\Collection example??
- From: Maarten Wiltink
- Re: D5 - Class\Collection example??
- From: Tom de Neef
- D5 - Class\Collection example??
- Prev by Date: Printer Queue
- Next by Date: Re: Printer Queue
- Previous by thread: Re: D5 - Class\Collection example??
- Next by thread: Re: D5 - Class\Collection example??
- Index(es):
Relevant Pages
|