Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How to Expose Children... [modified]

How to Expose Children... [modified]

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
24 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christian M Jensen
    wrote on last edited by
    #1

    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?

    J J M G M 9 Replies Last reply
    0
    • C Christian M Jensen

      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?

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      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[^]

      C M 2 Replies Last reply
      0
      • J Jeremy Falcon

        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[^]

        C Offline
        C Offline
        Christian M Jensen
        wrote on last edited by
        #3

        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.

        J V 2 Replies Last reply
        0
        • C Christian M Jensen

          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?

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #4

          In the two first lines I thought that it was something very strange between a father and a son, but then I realized that this is a PROGRAMMING QUESTION! This can be incredible! let's see how long will become this tread... FLAMES ON YOU! ja ja ja ja! :rolleyes:

          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

          1 Reply Last reply
          0
          • C Christian M Jensen

            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.

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            Christian M Jensen wrote:

            I am not sure I understand your analogy.

            :rolleyes: This is just too fun sometimes.

            Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

            1 Reply Last reply
            0
            • C Christian M Jensen

              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?

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #6

              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[^]

              C 1 Reply Last reply
              0
              • J Jeremy Falcon

                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[^]

                C Offline
                C Offline
                Christian M Jensen
                wrote on last edited by
                #7

                This is for a project I am working on in C#

                R J 2 Replies Last reply
                0
                • C Christian M Jensen

                  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?

                  M Offline
                  M Offline
                  Maximilien
                  wrote on last edited by
                  #8

                  nice way to raise your children 1!! I would teach them that the trashcan ( and more so if there is a garbage collector ) is not a persistent storage, and that the drawers are persistent objects; and that friends do not offer help in this matter.


                  Maximilien Lincourt Your Head A Splode - Strong Bad

                  1 Reply Last reply
                  0
                  • C Christian M Jensen

                    This is for a project I am working on in C#

                    R Offline
                    R Offline
                    Rohde
                    wrote on last edited by
                    #9

                    A bit slow today? :):) Try the C# forum then (http://www.codeproject.com/script/comments/forums.asp?forumid=1649[^])


                    "A mathematician is a device for turning coffee into theorems." - Paul Erdos (1913-1996)

                    1 Reply Last reply
                    0
                    • C Christian M Jensen

                      This is for a project I am working on in C#

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #10

                      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[^]

                      1 Reply Last reply
                      0
                      • C Christian M Jensen

                        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.

                        V Offline
                        V Offline
                        Vikram A Punathambekar
                        wrote on last edited by
                        #11

                        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.

                        1 Reply Last reply
                        0
                        • C Christian M Jensen

                          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?

                          G Offline
                          G Offline
                          Gary Kirkham
                          wrote on last edited by
                          #12

                          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

                          J C B 3 Replies Last reply
                          0
                          • G Gary Kirkham

                            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

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #13

                            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[^]

                            1 Reply Last reply
                            0
                            • C Christian M Jensen

                              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?

                              M Offline
                              M Offline
                              Marc Clifton
                              wrote on last edited by
                              #14

                              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

                              Thyme In The Country

                              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

                              P 1 Reply Last reply
                              0
                              • G Gary Kirkham

                                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

                                C Offline
                                C Offline
                                Christopher Duncan
                                wrote on last edited by
                                #15

                                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

                                T 1 Reply Last reply
                                0
                                • G Gary Kirkham

                                  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

                                  B Offline
                                  B Offline
                                  brianwelsch
                                  wrote on last edited by
                                  #16

                                  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

                                  J G 2 Replies Last reply
                                  0
                                  • B brianwelsch

                                    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

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #17

                                    brianwelsch 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[^]

                                    1 Reply Last reply
                                    0
                                    • B brianwelsch

                                      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

                                      G Offline
                                      G Offline
                                      Gary Kirkham
                                      wrote on last edited by
                                      #18

                                      FB[^]

                                      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

                                      1 Reply Last reply
                                      0
                                      • C Christian M Jensen

                                        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?

                                        P Offline
                                        P Offline
                                        Pete OHanlon
                                        wrote on last edited by
                                        #19

                                        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.

                                        1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          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

                                          Thyme In The Country

                                          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

                                          P Offline
                                          P Offline
                                          Pete OHanlon
                                          wrote on last edited by
                                          #20

                                          I'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.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups