When we are writing a project, we will produce some bugs. As the saying goes, "the first step in solving a bug is to reproduce it", but what if we encounter a ghost bug (a bug that cannot be stably r...
Background Recently, I received a requirement: display a diff with 2 JSON strings, which are basically an API's request and response data. Furthermore, we should show the diff in a Git-like style. ...
"Our user reported a live issue, could you please take a look?" As I started writing backend projects in Golang, my services always become abnormal in unexpected situations, and my job is to solve t...
前端的编译器,除了可以做转换,是否还有其它用途? 由于现在国内“前端主流框架”的称号基本被 React、Vue、Angular 占领,前二者在渲染层的技术,本质上都是极为相似的:在内存中维护 Virtual DOM,通过某些方式获取到变量被修改,然后利用 DOM Diff 算法(以及一些优化)计算出需要对 DOM 做的操作,再 Patch 到真实的 DOM 上。相信大家(尤其是准备过面试的小伙...
I thought that the duty of frontend developers only contained dealing with browsers, or doing some client-side and server-side work; I never thought that, as the title suggests, I actually need to so...
The Image Size Optimization Plan Two and a half years ago, when I first learned that WebP could effectively reduce the size of images, I had a moment of the impulse to "replace all resources in the ...
There are more and more complex requirements in the AWB platform I am responsible for. Since I implemented a complex table layout requirement during the winter vacation, various businesses teams have...
Remember about two years ago, I wrote an article State-driven business code , which talked about my experience of using state to describe business requirements. Since then, I rarely meet business re...
Heard from a friend of Seagate. A user reported that the laptop would crash every time he played Li Na's Qinghai-Tibet Plateau. After testing, it was found that when singing to the end of "That is th...
Background Some of you may be familiar with the "AWB Tool" project, because I have written several articles related to it before. Its basic function is nothing more than drawing a shipping label: if...
If you want to read the Traditional Chinese version of this article, click the link "正體中文" in the footer. About the background of this article, it's a long story... Eight years ago, I went to CTSC ...