Mode and frame (reproduced)

zhaozj2021-02-16  130

1. What is the pattern? Mode, ie pattern. In fact, it is a methodology that solves a certain type of problem. You summarize the method of solving a type of problem to the theoretical height, that is, mode. The classic definition given by Alexander is that each mode describes a problem that has emerged in our environment and then describes the core of the solution. In this way, you can use the existing solutions countlessly without counting the same job. There are different fields in the model, and there are architectural models in the building, and there are also design patterns in the software design. When a field is gradually mature, there will be many modes. 2.? What is the framework? Frame, is Framework. In fact, it is a semi-finished product of some application, is a set of components for you to complete your own system. Simply put to use the stage of others, you will do performance. Moreover, the framework is generally mature, continuously upgraded software. 3. Why use mode? Because the mode is a guide, under a good guide, it helps you complete the task, help you make a good designer, reaching the effect of half the effort. And you will get the best way to solve the problem. 4. Why use the framework? Because the development of software systems is already complicated today, especially server-side software, design to knowledge, content, and there are too many problems. In some ways, the use of some people's mature framework is equivalent to letting others help you complete some basic work, you only need to concentrate on complete the system's business logic design. And the framework is generally mature, robust, and he can handle a lot of details, such as things such as things, security, data stream control. There is also a framework usually used by many people, so the structure is very good, so the scalability is also very good, and it is constantly upgrading, you can directly enjoy the benefits of the upgrade code. The framework is generally in the middle layer between the low-level application platform (such as J2EE) and high-level business logic. 5. Why is the software hierarchical? ???? In order to achieve "high cohesion, low coupling". Cut the problem to all solve, easy to control, easy to extend, easy to allocate resources ... there are a lot of benefits :).

转载请注明原文地址:https://www.9cbs.com/read-8422.html

New Post(0)