How to Expose Children... [modified]
-
Wow, this is a tough call. I have to admit, I'm having difficulty debating on whether or not I see this as a programming question. :laugh: I have to lean towards yeah because it's a direct question and not so much a general idea. With that being the case, I shall use one of my more traditional responses and that is to be a smart arse. Enjoy...
Christian M Jensen wrote:
If you had a parent object and wanted to expose its children from persistent storage
If parents are trying to kick the kid out of the house (what's he's like 30 now) then I suggest they give him a List of bills to pay.
Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]
:laugh: I'm NOT going to answer THIS one!
-
Gary Kirkham wrote:
The first time I read that I read it as "The children must be edible"
Programmers Eat Their Young Tomorrow, on Jerry Springer...
Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com
-
Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?
I never expose children. When they are old enough (past the age of consent), they can expose themselves and suffer the consequences, until then, they remain hidden.
_________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
-
Hello all... If you had a parent object and wanted to expose its children from persistent storage, would you do it by exposing the children as if the parent was a List or just a few methods for getting the count and a range of child objects... or is there another method I might not be aware of. The children must be editable and retain their data in persistent storage. Secondly, if you were to have a function that did something like "Take money from parent and give to child" would you put this function on the parent, child or as a static function?