Say framework, architecture, pattern, refactoring

Source: Internet
Author: User

Some of the concepts, someone mentioned, together talk about it.

Frameworks are many, various, different platforms, different languages, different functions.

At this stage of the software project, almost all of the framework, what is the framework, why use the framework.

The so-called framework, is a visible software products, is a semi-finished product. Since he is a product, he should already be there, if you like, you can use him. It's like a five-storey building with a beam, a slab, a floor, and a simple staircase, if you want, you can climb the stairs to exercise your body. And he is semi-finished, indicating that he is not complete, need to fill in the blanks. And these empty will determine what the "finished product" is. Just exercise the building according to different layout and decoration can become office buildings, or residential. Because the software is replicable, extract most of the common buildings, on this basis, relatively small construction can meet the needs of the market, improve the productivity of the software, this one.

Also because the software is replicable, the frame code is often a long time accumulation and practice testing, high quality. It says that the building I guarantee that each floor is the same height, and the structure can resist 8 earthquake, as long as the construction on the basis of this structure, no matter how many people work together, the House will not be the problem, whether you understand the engineering mechanics. Therefore, it improves the quality of software, reduces the difficulty and risk of development, strengthens the possibility of team development, and lowers the cost of construction personnel. This second.

The framework has its inherent limitations. Or that building, if you want to build the national stadium on this basis, presumably there is no possibility, if the reckless, the beam unloaded, may not be far from the news report. So choose the frame to be suitable, use the frame also to follow the idea of the original frame designer. This is the third.

About architecture, this is about software architecture. It's a thought that you can't see. There are no one by one corresponding products. He is a practice of a guide to how to design software to achieve a certain requirements of the train of thought.

You have to build a two-storey small house, simple, to a few better wood, add a few car bricks, on the line, brick wood. Three to four floors? Brick mix structure. Five to the top? Steel mix structure. Layer to level 40? Full steel structure. 40 floors or more? That's complicated, ask an expert to go.

The idea of architecture is more abstract, and he points out the approximate direction in some general scenario. There are always one or several architectural ideas throughout the design of the framework.

Mode? It is a scenario in which a situation can be repeated to solve a problem in a certain range. High-rise buildings, with elevators. Make room bright and get a floor-to-ceiling window. These allow us to meet some kind of scene, do not need to spend great effort to think, can be a more perfect solution. It's like a mathematical formula.

Within the framework, the structure can be very complex, the middle is also mixed with too many problems to be resolved, so in the framework design, often very many applications to the pattern.

It's complicated and there's no need to take all the details into account before you start. During the construction process, it is found that there are some unreasonable places in the current structure. Build up before the building did not consider what kind of door, first covered, and so on, and so began to install the door, found that each room to do their own, when the cost is high, the effect is not good. So there is a predecessor said: Not so troublesome, make a phone call to XXX factory, let them provide a series of various specifications of the door, door-to-door, package installation and warranty, worry. Well, refactoring is the process of eliminating the odor that appears in the software during the design process, so that it conforms to a design pattern.

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.