Cohesion Poly-Low coupling

Source: Internet
Author: User

Cohesion is the measurement of the connection within the module from a functional point of view, and a good cohesive module should do exactly one thing. It describes the functional linkages within the module;

coupling is a kind of connection between each module in software structure. Metric , the coupling strength depends on the complexity of the interface between the modules, the points entering or accessing a module, and the data through the interface.

Cohesion Poly-low coupling, is the concept of software engineering, is the standard for judging the quality of design, mainly object-oriented design, mainly to see whether the cohesion of the class is high, coupling degree is low.

Coupling: Also known as the inter-block connection. A measure of the degree of connection between modules in a software system structure. The tighter the connection between the modules, the stronger the coupling, the less the module's independence. The coupling between modules depends on the complexity of the interface between modules, the mode of invocation and the information transmitted.

Cohesion: Also known as intra-block contact. A measure of the functional strength of a module, a measure of the degree to which each element within a module is bound to each other. The more cohesive the elements within a module (between the names and the program segments), the higher the cohesion is.

The so-called high cohesion refers to a software module is composed of strong correlation code, only responsible for a task, that is, the single principle of responsibility is often said.

Coupling: A measure of the degree of interconnection between different modules within a software structure (coupling is also called block-to-chunk linkage.) A measure of the degree of connection between modules in a software system structure. The tighter the connection between the modules, the stronger the coupling, the less the independence of the module, and the coupling between the modules depends on the complexity of the interface between the modules, the mode of invocation and the information transmitted. )

For low-coupling, the superficial understanding is: a complete system, between the module and the module, as far as possible to make its independent existence. In other words, let each module, as far as possible, complete a specific sub-function independently. The interface between modules and modules is as small and simple as possible. If the relationship between the two modules is more complex, it is better to consider the further module division first. This facilitates modification and combination.

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/38/wKioL1eIlMnCUmthAACsUdkuWJQ203.jpg-wh_500x0-wm_3 -wmp_4-s_3740469754.jpg "title=" Love card information. jpg "alt=" wkiol1eilmncumthaacsudkuwjq203.jpg-wh_50 "/>

Love Card (Shenzhen) Management Co., Ltd.

Share every moment of a wonderful

: Icafeyojoy

Micro-Blog: Http://weibo.com/iCafeYOJOY

Official website: www.icafe.im

Contact & submission: [email protected]

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/84/38/wKiom1eIlQrzYd0jAAOh3FK-xso501.jpg-wh_500x0-wm_3 -wmp_4-s_2796947872.jpg "title=" Love card. jpg "alt=" wkiom1eilqrzyd0jaaoh3fk-xso501.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/38/wKioL1eIlR2AzthKAAOh3FK-xso264.jpg-wh_500x0-wm_3 -wmp_4-s_3457478603.jpg "title=" Love card. jpg "alt=" wkiol1eilr2azthkaaoh3fk-xso264.jpg-wh_50 "/>

Cohesion Poly-Low coupling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.