Home Web Front-end Front-end Q&A What is web front-end architecture

What is web front-end architecture

Jan 29, 2023 am 09:45 AM
web front end web

Web front-end architecture is a collection of tools and processes designed to improve the quality of front-end code and achieve efficient and sustainable workflows. There are 4 cores of web front-end architecture: 1. Code (HTML, CSS, JavaScript); 2. Process, how to use tools and processes to build an efficient and error-free workflow is an important consideration; 3. Testing, creating coverage An extensive testing program can ensure that old code can still run normally; 4. Documentation, design documentation is a tool for you to communicate with others.

What is web front-end architecture

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

Today, with the rapid changes in Web front-end technology, Web front-end projects are becoming more and more complex. The front-end architecture will also evolve with our ever-changing iterative needs and architectural technology. It is an issue that not only architects but also each of our developers must pay attention to.

1. The origin of web front-end architecture

At the CSS Developer Conference on October 13, 2014, in a crowded room at the New Orleans Convention Center "Raising the flag of front-end architecture" in the room has become a common appeal of developers working on the front line. After that, developers who were trying to figure out who they were and what role they played in the company found that they had been playing the role of front-end architect but had never held the title or lacked the confidence to do so. Fight for the power that comes with this position.

A few weeks after the conference, many people changed their profile on Twitter to "front-end architect."

2. What do you understand by the web front-end architecture?

Front-end architecture is like architectural design. During the construction process, architectural designers need to design and plan plans, and follow up the construction process. This is similar to the work of a front-end architect, except that the latter builds websites rather than buildings. Architects put more effort into designing the composition of a project than pouring concrete. In the same way, front-end architects focus more on developing tools and optimizing processes than writing specific code.

Front-end architecture is a collection of tools and processes designed to improve the quality of front-end code and achieve efficient and sustainable workflows.

What is web front-end architecture

Front-end design architecture is not a once-and-for-all job. No design is perfect at the beginning, and no plan can be completed in one step.

The particularity of the front-end architecture

The front-end is not an independent subsystem, but spans the entire system

Dispersion: Front-end engineering

Abstraction, decoupling, and combination of pages

Controllable: scaffolding, development specifications, etc.

Efficient: framework, component library, Mock platform, construction and deployment tools, etc.

Abstract

Page UI abstraction: components

General logic abstraction: domain entities, network requests, exception handling, etc.

三、Principles of web front-end architecture

##1. System design

Imagine if a building does not have a clear structural design, all If all the important matters are directly decided by the construction workers, then there may be a situation like this: one wall is built with stone, the second wall is built with bricks, the third wall is built with wood, and the fourth wall is left open because of the pursuit of fashion. null.

Although the overall appearance and style tone of the website are completely determined by experienced visual designers, front-end architects control the front-end development methods and system design philosophy behind it. By designing system specifications that all front-end developers follow, front-end architects create a clear picture of the final shape of the product and code.

Once the front-end architect establishes the specifications of the system design, the project will have a standard to measure the quality of the code. Otherwise, how can we judge whether the code meets the standards? A well-designed system should have a complete inspection mechanism and make appropriate trade-offs to ensure that the code in the system has substantial value and is not simply piled up.

2. Work planning

After having a clear structural design, you need to formulate a development workflow. What steps does a developer need to go through to write a line of code and submit it online? To give the simplest example, this process involves logging into the server using FTP, modifying a file and saving it. However, for most projects, the complete workflow may use multiple tools, such as version controllers, task schedulers, CSS processors, documentation tools, test components, and server automation tools.

The goal of a front-end architect is to design a system that runs smoothly. This system can not only start up efficiently and quickly, but also continuously provide effective feedback through language analysis, test cases, documentation and other methods, and greatly reduce human errors caused by repeated operations.

3. Supervision and follow-up

Front-end architecture design is by no means a once and for all task. No design is perfect from the start, and no plan is perfect in one step. Customer and developer needs change over time. A development process that works well at one stage may later need to be restructured to improve efficiency and reduce errors.

A very important ability of a front-end architect is the ability to continuously optimize the work process. Today's various build tools allow us to easily change the way we work and notify every developer.

Some people ask whether front-end architects are equivalent to management roles and no longer need to write business code. Front-end architects not only have to write more code, but they also have to be able to use multiple programming languages ​​and use a lot of tools. The amount of code has not decreased, only the readers of the code have changed. Front-end developers write code for end users, while front-end architects write code for the developers on the team.

4. The core of web front-end architecture

1. Code

In the final analysis, all Websites are composed of a bunch of text files and resource files composed of HTML, CSS, and JavaScript. When we're faced with the amount of code that goes into making a website, it becomes clear how important it is to set expectations for code and resources.

2. Process

How to use tools and processes to build an efficient and error-free workflow is an important consideration. Workflows are becoming increasingly complex, and so are the tools used to build them. These tools bring amazing results in increasing productivity, speeding up efficiency, and maintaining code consistency, but they also come with the risk of over-engineering and abstraction.

3. Test

To build a scalable and continuously optimized system, we must ensure that the new code is well compatible with the old code. Our code is not They will exist in isolation. They are all part of a larger system. Creating a comprehensive test plan can ensure that the old code can still run normally.

4. Documentation

Design documentation is a tool for you to communicate with others, to explain what your design decisions are, to explain what your design decisions are and why. Your decision is a good one. Unless a key member of the team is leaving, few will realize the importance of documentation.

These four cores are the foundation for building a scalable and sustainably optimized system.

(Learning video sharing: Getting started with web front-end)

The above is the detailed content of What is web front-end architecture. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
How to use Nginx web server caddy How to use Nginx web server caddy May 30, 2023 pm 12:19 PM

Introduction to Caddy Caddy is a powerful and highly scalable web server that currently has 38K+ stars on Github. Caddy is written in Go language and can be used for static resource hosting and reverse proxy. Caddy has the following main features: Compared with the complex configuration of Nginx, its original Caddyfile configuration is very simple; it can dynamically modify the configuration through the AdminAPI it provides; it supports automated HTTPS configuration by default, and can automatically apply for HTTPS certificates and configure it; it can be expanded to data Tens of thousands of sites; can be executed anywhere with no additional dependencies; written in Go language, memory safety is more guaranteed. First of all, we install it directly in CentO

Real-time protection against face-blocking barrages on the web (based on machine learning) Real-time protection against face-blocking barrages on the web (based on machine learning) Jun 10, 2023 pm 01:03 PM

Face-blocking barrage means that a large number of barrages float by without blocking the person in the video, making it look like they are floating from behind the person. Machine learning has been popular for several years, but many people don’t know that these capabilities can also be run in browsers. This article introduces the practical optimization process in video barrages. At the end of the article, it lists some applicable scenarios for this solution, hoping to open it up. Some ideas. mediapipeDemo (https://google.github.io/mediapipe/) demonstrates the mainstream implementation principle of face-blocking barrage on-demand up upload. The server background calculation extracts the portrait area in the video screen, and converts it into svg storage while the client plays the video. Download svg from the server and combine it with barrage, portrait

How to configure nginx to ensure that the frps server and web share port 80 How to configure nginx to ensure that the frps server and web share port 80 Jun 03, 2023 am 08:19 AM

First of all, you will have a doubt, what is frp? Simply put, frp is an intranet penetration tool. After configuring the client, you can access the intranet through the server. Now my server has used nginx as the website, and there is only one port 80. So what should I do if the FRP server also wants to use port 80? After querying, this can be achieved by using nginx's reverse proxy. To add: frps is the server, frpc is the client. Step 1: Modify the nginx.conf configuration file in the server and add the following parameters to http{} in nginx.conf, server{listen80

Using Jetty7 for Web server processing in Java API development Using Jetty7 for Web server processing in Java API development Jun 18, 2023 am 10:42 AM

Using Jetty7 for Web Server Processing in JavaAPI Development With the development of the Internet, the Web server has become the core part of application development and is also the focus of many enterprises. In order to meet the growing business needs, many developers choose to use Jetty for web server development, and its flexibility and scalability are widely recognized. This article will introduce how to use Jetty7 in JavaAPI development for We

How to implement form validation for web applications using Golang How to implement form validation for web applications using Golang Jun 24, 2023 am 09:08 AM

Form validation is a very important link in web application development. It can check the validity of the data before submitting the form data to avoid security vulnerabilities and data errors in the application. Form validation for web applications can be easily implemented using Golang. This article will introduce how to use Golang to implement form validation for web applications. 1. Basic elements of form validation Before introducing how to implement form validation, we need to know what the basic elements of form validation are. Form elements: form elements are

What are web standards? What are web standards? Oct 18, 2023 pm 05:24 PM

Web standards are a set of specifications and guidelines developed by W3C and other related organizations. It includes standardization of HTML, CSS, JavaScript, DOM, Web accessibility and performance optimization. By following these standards, the compatibility of pages can be improved. , accessibility, maintainability and performance. The goal of web standards is to enable web content to be displayed and interacted consistently on different platforms, browsers and devices, providing better user experience and development efficiency.

How to enable administrative access from the cockpit web UI How to enable administrative access from the cockpit web UI Mar 20, 2024 pm 06:56 PM

Cockpit is a web-based graphical interface for Linux servers. It is mainly intended to make managing Linux servers easier for new/expert users. In this article, we will discuss Cockpit access modes and how to switch administrative access to Cockpit from CockpitWebUI. Content Topics: Cockpit Entry Modes Finding the Current Cockpit Access Mode Enable Administrative Access for Cockpit from CockpitWebUI Disabling Administrative Access for Cockpit from CockpitWebUI Conclusion Cockpit Entry Modes The cockpit has two access modes: Restricted Access: This is the default for the cockpit access mode. In this access mode you cannot access the web user from the cockpit

what does web mean what does web mean Jan 09, 2024 pm 04:50 PM

The web is a global wide area network, also known as the World Wide Web, which is an application form of the Internet. The Web is an information system based on hypertext and hypermedia, which allows users to browse and obtain information by jumping between different web pages through hyperlinks. The basis of the Web is the Internet, which uses unified and standardized protocols and languages ​​to enable data exchange and information sharing between different computers.

See all articles