This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes decoupled? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "decoupled? " Watch "decoupled? " New topic
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.
 
jQuery in Action, 2nd edition
 
subject: decoupled?
 
Similar Threads
Confused: dot com death!?
Technical buzzword bingo
a delegation event model
I can't automate that