| Author |
decoupled?
|
Peter Primrose
Ranch Hand
Joined: Sep 10, 2004
Posts: 755
|
|
I read on the design pattern book (head first) that classes should be decoupled, what does that mean? can anyone give an example? thanks
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
WikiPedia often says it better than I can. Reducing coupling is a big part of managing dependencies which is one of the core drivers in OO design. See what kind of questions the WikiPedia article raises, and lets talk more about where coupling might take you.
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
Peter Primrose
Ranch Hand
Joined: Sep 10, 2004
Posts: 755
|
|
ok...I got it. I learned the usage of the Command Design-Pattern and I realized what makes a decoupled objects. the user's interface component and the command (the event handling) are decoupled.
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
|
Once you get interested in dependencies you can dig into some of the core principles of OO. HERE is a blog where Robert Martin introduces his catalog of principles. His PPP Book expands on all of these. Highly recommended.
|
 |
 |
|
|
subject: decoupled?
|
|
|