How to Expose Children... [modified]
-
Hey it's the holidays, so... You'll probably get better responses in the Visual C++[^] forum.
Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]
This is for a project I am working on in C#
-
This is for a project I am working on in C#
-
This is for a project I am working on in C#
Christian M Jensen wrote:
This is for a project I am working on in C#
There's also a C# forum too. In all seriousness, you'll get your best replies there.
Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]
-
I am not sure I understand your analogy. The list of bills to pay could be thousands of items long and each could be several pages. In my example, it is an outside source asking the parent to divulge how many children it has and then allowing the outside source to get one or more of them in a range.
Christian, Jeremy is making fun of you. It looks like you're new here, so let me tell you that this is a general forum and programming questions are NOT allowed. Please use the Message Boards link to choose the language forum you want (C++, C#, etc). You will get much better responses there. :) PS: I thought this was a father-son discussion or something like that when I read the subject. :laugh:
Cheers, Vikram.
"Life isn't fair, and the world is full of unscrupulous characters. There are things worth fighting for, killing for and dying for, but it's a really small list. Chalk it up to experience, let it go, and move on to the next positive experience in your life." - Christopher Duncan.
-
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?
Christian M Jensen wrote:
The children must be editable
The first time I read that I read it as "The children must be edible"
Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
-
Christian M Jensen wrote:
The children must be editable
The first time I read that I read it as "The children must be edible"
Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
Gary Kirkham wrote:
The children are edible
:omg:
Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]
-
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?
Christian M Jensen wrote:
The children must be editable and retain their data in persistent storage.
Take your children and shove them where the serializer doth shine. Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith -
Christian M Jensen wrote:
The children must be editable
The first time I read that I read it as "The children must be edible"
Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
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
-
Christian M Jensen wrote:
The children must be editable
The first time I read that I read it as "The children must be edible"
Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
To what exactly are these children being exposed?
BW
If you're not part of the solution, you're part of the precipitate.
-- Steven Wright -
To what exactly are these children being exposed?
BW
If you're not part of the solution, you're part of the precipitate.
-- Steven Wrightbrianwelsch wrote:
To what exactly are these children being exposed?
Radiation from the microwave because they simply refuse to learn how to cook. :rolleyes:
Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]
-
To what exactly are these children being exposed?
BW
If you're not part of the solution, you're part of the precipitate.
-- Steven WrightGary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
-
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?
Whoah - that title makes me think of Gary Glitter. This type of thing should not be allowed.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
Christian M Jensen wrote:
The children must be editable and retain their data in persistent storage.
Take your children and shove them where the serializer doth shine. Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh SmithI'm almost tempted to use that in my sig:laugh:
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
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?