R·ex / Zeng


MUGer, hacker, developer, amateur UI designer, punster, Japanese learner.

A Ghost Bug Caused by Use Zoom For DSF

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...

TypeScript 小技巧:校验 i18n 参数

最近我们的某个项目需要支持多语言了。作为一个从 Entry Task 开始就与多语言打过交道的人,我已经对这里面的套路很是熟悉。但是作为一个工程师,还是想着能不能做的更好一些。 我们是怎么做国际化的 对于大部分场景来说,国际化都相当简单:有若干语言包,每个语言包中是一堆 Key 和对应的文字模板,模板中可能会有占位符。一个语言包可能长这样: { "user_settin...

从 Svelte 3 的编译器中得到的启示

前端的编译器,除了可以做转换,是否还有其它用途? 由于现在国内“前端主流框架”的称号基本被 React、Vue、Angular 占领,前二者在渲染层的技术,本质上都是极为相似的:在内存中维护 Virtual DOM,通过某些方式获取到变量被修改,然后利用 DOM Diff 算法(以及一些优化)计算出需要对 DOM 做的操作,再 Patch 到真实的 DOM 上。相信大家(尤其是准备过面试的小伙...

When Table Layout Meets Cell Merging

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...

State-driven business code (2)

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...

We've been together for

3846 days