Knowledge points of front-end architecture
Previous words
This article will supplement the knowledge points missed by the front-end architecture, including the four parts of document output, system decomposition, component extraction and release optimization
Document output
1. There will be some problems in the process of multi-person collaboration:
a. The writing requirements for document formulation are relatively high, and they must be structured, logically clear, written well, written quickly, and Pay attention to the typesetting so that it is suitable for others to read;
b. If the system is more complex, the document will be very long. If it reaches more than a few hundred pages, it will be difficult to take a long time to read the whole article, and many details will be passed over;
c. The specification can meet the needs but does not necessarily conform to the development logic. The framer needs to negotiate with the developers;
d. It must meet both the needs and the reading of the developers;
e , ambiguity in wording, differences in personal understanding, confusion, incomplete content, typos, etc.;
2. There will also be problems in follow-up work and reuse:
a. It is difficult to form the final version of the specification. Subsequent modifications and revisions are required. Modifications will bring additional overhead to subsequent personnel;
b. If the requirements change, the specification needs to be redesigned, and the software architecture will also need to be redesigned. Requires large and small modifications;
c. The reusability of the specification is closely related to the design level of the formulator;
d. The reused document will also inevitably have missing parts, omitted content, and coverage. Problems such as the original design has not been modified or deleted;
System decomposition
In actual development, the difficulties in decomposing the system and the issues that need to be considered are as follows:
1. The main difficulty in decomposition is how to split it and whether the split is reasonable;
2. Each business function is related, where to split it?
3. Can the split module be split again?
4. Is the granularity of decomposition reasonable? Each module has its own subdivision. Should it be split to the module level or the class level?
5. Decomposition can easily lead to excessive decomposition or premature decomposition, which will increase costs and bring risks;
6. Can the split modules be reused?
7. Can they be reused after decomposition? Very good integration?
8. Ensure 100% decomposition of the interactive draft, and do not allow any module to be missed. A slight omission will affect subsequent development;
9. How to complete the decomposition within the time stipulation, otherwise the overall progress will be delayed;
Component extraction
To extract common components based on interaction, the following operations need to be performed
1. Divide the interactive draft according to levels and extract similar parts;
2. Divide it further and extract smaller components;
3. Ensure that each component is relatively independent, and There is no duplication of other components;
4. The separated components are as simple as possible and can be reused;
5. For example, buttons, icons, paging, navigation, menus, lists, carousels Pictures, etc.;
6. Combining these components can restore the interactive draft;
Release optimization
When the project is released, the following optimizations are required
1. File cache. Configure a long-term local cache to save bandwidth and improve performance; use content summaries as the basis for cache updates to achieve precise cache control, and at the same time realize non-overwriting release of resources to ensure smooth upgrade
2. Static resources CDN deployment, optimized network request response
3. Resource merger and optimization. File merging, modularization will lead to a large increase in HTTP requests; image optimization, including image compression and sprite image merging (it seems that iconfont is now popular for this), etc.
The above is the detailed content of Knowledge points of front-end architecture. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



SpringDataJPA is based on the JPA architecture and interacts with the database through mapping, ORM and transaction management. Its repository provides CRUD operations, and derived queries simplify database access. Additionally, it uses lazy loading to only retrieve data when necessary, thus improving performance.

Paper address: https://arxiv.org/abs/2307.09283 Code address: https://github.com/THU-MIG/RepViTRepViT performs well in the mobile ViT architecture and shows significant advantages. Next, we explore the contributions of this study. It is mentioned in the article that lightweight ViTs generally perform better than lightweight CNNs on visual tasks, mainly due to their multi-head self-attention module (MSHA) that allows the model to learn global representations. However, the architectural differences between lightweight ViTs and lightweight CNNs have not been fully studied. In this study, the authors integrated lightweight ViTs into the effective

PHP and Vue: a perfect pairing of front-end development tools. In today's era of rapid development of the Internet, front-end development has become increasingly important. As users have higher and higher requirements for the experience of websites and applications, front-end developers need to use more efficient and flexible tools to create responsive and interactive interfaces. As two important technologies in the field of front-end development, PHP and Vue.js can be regarded as perfect tools when paired together. This article will explore the combination of PHP and Vue, as well as detailed code examples to help readers better understand and apply these two

The learning curve of the Go framework architecture depends on familiarity with the Go language and back-end development and the complexity of the chosen framework: a good understanding of the basics of the Go language. It helps to have backend development experience. Frameworks that differ in complexity lead to differences in learning curves.

In front-end development interviews, common questions cover a wide range of topics, including HTML/CSS basics, JavaScript basics, frameworks and libraries, project experience, algorithms and data structures, performance optimization, cross-domain requests, front-end engineering, design patterns, and new technologies and trends. . Interviewer questions are designed to assess the candidate's technical skills, project experience, and understanding of industry trends. Therefore, candidates should be fully prepared in these areas to demonstrate their abilities and expertise.

Django is a web application framework written in Python that emphasizes rapid development and clean methods. Although Django is a web framework, to answer the question whether Django is a front-end or a back-end, you need to have a deep understanding of the concepts of front-end and back-end. The front end refers to the interface that users directly interact with, and the back end refers to server-side programs. They interact with data through the HTTP protocol. When the front-end and back-end are separated, the front-end and back-end programs can be developed independently to implement business logic and interactive effects respectively, and data exchange.

As a C# developer, our development work usually includes front-end and back-end development. As technology develops and the complexity of projects increases, the collaborative development of front-end and back-end has become more and more important and complex. This article will share some front-end and back-end collaborative development techniques to help C# developers complete development work more efficiently. After determining the interface specifications, collaborative development of the front-end and back-end is inseparable from the interaction of API interfaces. To ensure the smooth progress of front-end and back-end collaborative development, the most important thing is to define good interface specifications. Interface specification involves the name of the interface

1. Architecture of Llama3 In this series of articles, we implement llama3 from scratch. The overall architecture of Llama3: Picture the model parameters of Llama3: Let's take a look at the actual values of these parameters in the Llama3 model. Picture [1] Context window (context-window) When instantiating the LlaMa class, the variable max_seq_len defines context-window. There are other parameters in the class, but this parameter is most directly related to the transformer model. The max_seq_len here is 8K. Picture [2] Vocabulary-size and AttentionL
