High aggregation, low coupling, and low coupling

Source: Internet
Author: User

High aggregation, low coupling, and low coupling

This is a concept in software engineering.

First, you must know that a software is composed of multiple subprograms, and a program is composed of multiple modules (methods!

Cohesion refers to the closeness between modules in a program. Coupling is the closeness between various external programs (subprograms ..

So it is easy to understand, why is it high cohesion? The closer the relationship between modules, the fewer errors! Low coupling? The more complex the relationship between subprograms, more unexpected errors will occur! It will cause a lot of trouble for future maintenance work!


Similarly, this idea can be used to build an enterprise data warehouse. Make the following designs:


1. Put the relevant business data and granularity data together.

2. Separate data based on the access heat to achieve performance optimization.


What is high aggregation and low coupling?

This is a concept in software engineering.
First, you must know that a software is composed of multiple subprograms,
A program consists of multiple modules (methods!
Cohesion refers to the closeness between various modules in the program,
Coupling is the closeness between various external programs (subprograms.
So it is easy to understand, why is it high cohesion? The closer the relationship between modules, the fewer errors! Low coupling? The more complex the relationship between subprograms, more unexpected errors will occur! It will cause a lot of trouble for future maintenance work!

What is the principle of high aggregation, low coupling, and encapsulation?

This is mainly from the perspective of division of object responsibilities.
Encapsulation is to put some functions in one object.
High aggregation means that the functions of an object are all done internally and tightly integrated.
Low coupling means that the dependencies between objects should be loose. Do not hold the entire body
Only in this way can the system be conveniently scaled up.
 

Related Article

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.