avatar

Coderek's blog

Live a more efficient life
Archived Posts for year 2021

In this article, I want to talk about my learnings on building testable apps from the past few years. I've been building mostly Frontend apps using React, so I'll talk from that perspective, but it s…

Read more ››

An old friend of mine got an offer from Facebook recently. He was doing frontend development before. And after joining Facebook, he will be doing mostly backend stuff. According to him, this is a big…

Read more ››

The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, u…

Read more ››

Original link In a previous blog post, Rahul talked about audio codecs and transcoding, some of which “compress” audio in order to save storage space. But what exactly do these audio codecs do in ter…

Read more ››

距离2011年大学毕业已经十年了。这十年间,我换了许多家公司,每家工作时间一年到两年。这之中有很多原因,我就不在此赘述。这篇文章主要想整理一下十年间我职业生涯的成长历程。 初出茅庐 第一家公司O是一家老式的小型软件作坊。当时的办公司在 Bugis,很小的一个房间,加上老板兄弟一共就五个人。我记得当时做的项目是给一家打印公司维护一个CRM的系统。这个系统用C++写的,只在windows上运行。除了…

Read more ››

Tree shaking Tree shaking is a term commonly used in the JavaScript context for dead-code elimination. It relies on the static structure of ES2015 module syntax, i.e. import and export. The name and…

Read more ››

Initializing the app using suspense This trick combines dynamic import of components with initialization code to make a artificial dynamic loading of component. It can make sure the component is init…

Read more ››

Coordinated universal time is what we usually refer to as UTC in software programming. Before we talk about UTC, we should know what is universal time. Universal time is the date-time standard used …

Read more ››

说到加班就不得不提996。最近有人搞了个996.ICU的github repo,竟然聚集了25万颗星星,可见这个话题在程序员群体里面是多么的敏感。 但是我在国外生活这么久,也在好几个国家工作过,996这个问题说真的只是在国内显得这么尖锐。 我觉得这有好几方面的深层次的原因。 首先,为什么要996?最直接的回答可能是大家都这样,是这样的氛围,所以没有办法啊。当然这个氛围不是公司主动搞出来的。公司本…

Read more ››