• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Cohesion

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone explain how cohesiveness and the degree of coupling are related?

I would imagine if a system is loosly coupled the components would have little cohesion. How ever Head First states the oppersite.

Take the MVC patter overview on page 750
This increases cohesiveness and is based on loose coupling.
Is that an oxymoron?
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kris,

In MVC the model, view and controller should be 'loosely coupled' to one another but each of the three parts: model, view and controller are more cohesive within themselves.

eg. The code that you develop for the View can concentrate on one specific conceptual activity - providing the view. (Aka cohesion)

Steven
[ June 10, 2005: Message edited by: Steven Hoodless ]
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kries,
that is easy:
cohesiveness = 100% means(implies?) coupling = 0%
coupling = 100% means(implies?) cohesiveness = 0%
Are you thinking global?
try to write a web-app without struts, spring tapestry, expresso,and etcetera
enjoy a framework
ser
 
Poop goes in a willow feeder. Wipe with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic