Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cohesion

 
Kris Reid
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • 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?
 
Steven Hoodless
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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 ]
 
sergio mendez-rueda
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic