CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Posts
    123

    what is meant by Loose coupling ?

    what is meant by Loose coupling and its problem?

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: what is meant by Loose coupling ?

    Here is a good article from the MSDN:

    http://msdn.microsoft.com/en-us/magazine/cc337885.aspx

    It may help shed some light on loose coupling.
    ahoodin
    To keep the plot moving, that's why.

  3. #3
    Join Date
    Oct 2006
    Posts
    123

    Re: what is meant by Loose coupling ?

    Thanks.

  4. #4
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: what is meant by Loose coupling ?

    Quote Originally Posted by honeyboy_20 View Post
    what is meant by Loose coupling and its problem?
    Loose coupling is the SOLUTION to a series of problems, the looser the better.

    Tight coupling, basically means something made up of ttwo or more parts, where the parts can NOT be used individually.

    Code:
    class Driver
    {
         public Car ar;
    }
    
    class Car
    {
    }
    Driver is tightly to Car, and can not be used without it.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  5. #5
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: what is meant by Loose coupling ?

    I would say that what you are talking about is a difference between association and aggregation. As I understood loose coupling vs. tight coupling, it is about a knowleadge of specific type of associated object, so the client rely on the specifict type (tight) rather that on its contract (loose).
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured