Articles under the 'Front End' tag

Android Studio Custom Lint Tool

Android Studio Custom Lint ToolIntroductionAndroid Studio provides a code scanning tool called lint that helps you find and correct problems with the structural quality of your code without actually executing your app or writing test cases. Every issue detected by the tool is reported with a descrip ... More >>

After Front-End Deployment Releases the Project, How to Notify the User to Refresh the Page and Clear the Cache?

After Front-End Deployment Releases the Project, How to Notify the User to Refresh the Page and Clear the Cache?There are two approaches to this problem Method 1: Pure front-end Every time you package for release, use webpack to build a version.json file. The content in the file is a random string ( ... More >>

The Solution for Monitoring the Deadlock of the Main Thread

The Solution for Monitoring the Deadlock of the Main ThreadIn project development, the solution for monitoring the main thread’s lag is particularly important. It plays a guiding role in our subsequent optimization logic, so below we start to discuss the implementation of the solution for monitoring ... More >>

The Use and Principle Analysis of Coroutines

The Use and Principle Analysis of Coroutines1st. Why Use CoroutinesWhether it’s the birth of a technology or a product, it often comes with demand, and coroutines are no exception. When asked why to use coroutines, the first thing to understand is, what is a coroutine? In summary, it is a lightweigh ... More >>

Pnpm Principle

Pnpm PrincipleDo you need some operating system knowledge to understand how pnpm works 1.The nature of the documentIn the operating system, a file is actually a pointer, only instead of pointing to a memory address, it points to an external storage address (in this case, external storage can be a ha ... More >>

Web Performance Optimization - Performance Metrics

In the past, most tools only used loading performance as a web performance metric, but poor performance can happen at any time, not just during loading. Applications that don't respond quickly to clicks, don't scroll smoothly, or have stuttering animations can all lead to a poor experience. Users ca ... More >>

Do you really understand babel-polyfill?

babel only does syntax conversion for JS syntax, but not for new JS APIs, such as Map, Set, Promise and other global objects. babel cannot convert methods on global objects, such as the new ES6 Array.find method 1. targets ... More >>

Illustration of how Git works

This article illustrates the most common commands used in Git. If you have a little understanding of how Git works, this article will help you understand it more thoroughly. Basic usage The four commands above copy files between the working directory, the staging directory ... More >>

Distributed system design patterns, which ones have you used?

1.Bloom filter Bloom filter is a space-saving probabilistic data structure for testing whether an element is a member of a collection or not. It is used in scenarios ... More >>

What exactly is code neatness?

Write in frontThis article was not intended to write, until after several code review meetings, I realized that their own coding way is not systematic, still need to learn systematically, mastering the most applicable laws summed up by seniors is undoubtedly a good way. It so happens that a long tim ... More >>