ObjectBuilder method or loose code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    #1

    ObjectBuilder method or loose code

    I have a complex object that is made up of 17 other objects and 2 dynamic
    dictionary collections. Would it be safe to say that I should possible make
    some sort of ObjectBuilder method in the main/root object to help contain
    the creation code? Or should it be broken up into smaller parts before the
    main builder method puts it all together? I know with something this huge,
    just putting out in loose code isn't a wise idea. What do you think? If you
    need a general object structure layout, I can give it.



  • Alun Harford

    #2
    Re: ObjectBuilder method or loose code

    Andy B wrote:
    I have a complex object that is made up of 17 other objects and 2 dynamic
    dictionary collections. Would it be safe to say that I should possible make
    some sort of ObjectBuilder method in the main/root object to help contain
    the creation code? Or should it be broken up into smaller parts before the
    main builder method puts it all together? I know with something this huge,
    just putting out in loose code isn't a wise idea. What do you think? If you
    need a general object structure layout, I can give it.
    Without more information, it's hard to give any useful information.

    Alun Harford

    Comment

    • Andy B

      #3
      Re: ObjectBuilder method or loose code

      What more info do you need? Let me know and I can see about getting it here.


      "Alun Harford" <devnull@alunha rford.co.ukwrot e in message
      news:uGdJ%23QPm IHA.2304@TK2MSF TNGP05.phx.gbl. ..
      Andy B wrote:
      >I have a complex object that is made up of 17 other objects and 2 dynamic
      >dictionary collections. Would it be safe to say that I should possible
      >make some sort of ObjectBuilder method in the main/root object to help
      >contain the creation code? Or should it be broken up into smaller parts
      >before the main builder method puts it all together? I know with
      >something this huge, just putting out in loose code isn't a wise idea.
      >What do you think? If you need a general object structure layout, I can
      >give it.
      >
      Without more information, it's hard to give any useful information.
      >
      Alun Harford

      Comment

      • DSK Chakravarthy

        #4
        Re: ObjectBuilder method or loose code

        First thing first.. Do u have the full idea about the architecture of the
        object factory??? if so, look at the following points
        1) Objects that are tightly coupled
        2) Which objects that you wanted to be loosely coded
        3) What are the communication channels that are in pipe line for the
        existing objects

        Many more.. but to understand your current situation, i guess you have to
        explian more

        HTH


        "Andy B" <a_borka@sbcglo bal.netwrote in message
        news:uB3LlFPmIH A.2268@TK2MSFTN GP02.phx.gbl...
        >I have a complex object that is made up of 17 other objects and 2 dynamic
        >dictionary collections. Would it be safe to say that I should possible make
        >some sort of ObjectBuilder method in the main/root object to help contain
        >the creation code? Or should it be broken up into smaller parts before the
        >main builder method puts it all together? I know with something this huge,
        >just putting out in loose code isn't a wise idea. What do you think? If you
        >need a general object structure layout, I can give it.
        >
        >
        >

        Comment

        Working...