Talk about 10 commonly used front-end design patterns and application scenarios from design principles and program realization goals

In summary:

In recent years, the front-end technology has iterated rapidly. In addition to ES6, Vue, React, and Angular, various enterprise-level frameworks have emerged one after another, such as egg, umi, nuxt, next, koa, etc., as well as redux, vuex, Mobx, Flux, dva, etc. State management library, which greatly simplifies the front-end development work, but also poses a great learning challenge for developers. But if you want to have a certain height at the front-end architecture level, these must be mastered. In addition to these, it is also necessary to master engineering, automation, server, etc. So after these class libraries or frameworks are stripped of their business, what are the design ideas behind them and the underlying program principles they follow?

Many developers are familiar with the mastery of knowledge and the application of the framework, but there are always some corners that they feel that they have not gone deep into it. This may be because they do not have a global understanding of the program itself. To give an example (I don’t know the true face of Lushan Mountain, only because I am in this mountain), like being in a mountain, many people can clearly know the road in the mountain, but they may not know why the road is in this direction. If you want to understand the mountain It is necessary to step out of this mountain and see it clearly at a glance from a higher place.

Therefore, to make a program, you must not only get in, but also be able to go out, think about the problem in the simplest way, grasp the underlying thinking of the program, and design the program path. As for the method to achieve it, it is not so important.

A year ago, I discussed with a senior back-end architecture expert how the front-end can quickly develop back-end requirements. At that time, I thought it was necessary to learn java or other languages ​​first, because this is the basis of development, if the basic grammar and knowledge are not clear. , how to develop it. However, he said that the real program development, whether it is front-end or back-end, is not ranked first in the degree of correlation with the language. What really ranks first is the program's realization goals and implementation models. The same is true in fact, there are many languages ​​and frameworks, but this

Guess you like

Origin blog.csdn.net/qdmoment/article/details/107716172