Hi Charlie, What Tarique is talking about is low/loose/weak coupling. Coupling is the degree of dependency between modules.
Low coupling refers to a relationship in which one module interacts with another module through a stable interface and does not need to be concerned with the other module's internal implementation. In that sense, calling a model function from another model does not increase coupling. Less coupling is related to high cohesion, cohesion means modules should be designed to perform single responsibilities. The design of a software should be high cohesive, that means modules tend to communicate less with other modules, which typically causes the side-effect of reduced coupling. In that sense, calling a model function from another model decreases cohesiveness. Software Engineers want a high cohesive and low coupled design because of high readability and maintainability. As Tarique said, coupling increases difficulties in understanding modules in isolation and also modules are difficult to reuse or test because dependent modules must be included. Sometimes we may need to adjust the interdependency between modules for the sake of performance and efficiency. On 9/16/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: > > > On 9/16/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > > You got my attention. Why is this? Is this because of performance > > issues? What do you mean by 'loose coupling'? > > > > http://en.wikipedia.org/wiki/Loose_coupling > > Loosely coupled models are desirable amongst other things because they > are easier to test and thus easier to maintain. > > May be someone will like to explain this in more details > > T > > -- > ============================================================= > Cheesecake-Photoblog: http://cheesecake-photoblog.org > PHP for E-Biz: http://sanisoft.com > ============================================================= > > > > -- Thanks Anupom Syam Development Engineer, Trippert Inc. [http://www.trippert.com] GopherNow. [http://www.gophernow.com/] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
