Recent Blogs

Dark Mode

Joining a Hackathon

May 05, 2019 (6 minutes read)

Personal notes on my recent experience of joining Can You Hack It hackathon.

Thoughts on Testing

Apr 15, 2019 (3 minutes read)

A list of unorganized random thoughts on automated testing

Creating a Simple Event Bus

Apr 09, 2019 (2 minutes read)

How to create an event bus to coordinate multiple section of your Javascript app.

Adding Types for npm Packages

Apr 01, 2019 (1 minute read)

How to add custom types for npm packages that doesn't have declaration nor DefinitelyTyped support.

红豆

Mar 30, 2019 (1 minute read)

小学时期种红豆的故事

Be Human While You Code

Mar 19, 2019 (3 minutes read)

Even when your colleague or boss doesn't care, write accessible code. Because you can. Because you should. Because you're human, and you care about other human too.

Using Web Component With React

Mar 17, 2019 (3 minutes read)

Using web component in React requires some boilerplates to make it work, trying to abstract that boilerplate has a limitation. With React hooks, it's much less boiletplate and the abstraction is no longer needed.

Type-Safe callAll

Feb 24, 2019 (2 minutes read)

You can have typesafe callAll utility in Typescript 3

Using Typescript Type Guard to Narrow Down Type

Nov 26, 2018 (1 minute read)

Using custom type guard allow us to create reusable checking that narrow down the type of a variable

Monitoring Government Website for Content Change

Oct 24, 2018 (3 minutes read)

My experience on developing a web-scraping application that will notify subscribers for any changes of a government website

Accessible HTML File Input

Sep 26, 2018 (1 minute read)

By being more thoughtful, we can have a file input that is beautiful but still accessible.

My First Tech Talk: Render Props & Higher Order Components

Aug 20, 2018 (2 minutes read)

A note on my first technical talk on React. I find the act of preparing and delivering the talk satisfying.

How to bargain in marketplace like a tactful auntie

Jun 24, 2018 (4 minutes read)

To bargain successfully in marketplace, make abrupt concession and threaten to flip-table effectively.

How to say no to friends and family that want to borrow money

Jun 23, 2018 (4 minutes read)

When friends/family want to borrow money from you, instead of asking how much they want to borrow first, ask why they want to borrow, and respond accordingly.

React Patterns: Container-Presenter

Jun 17, 2018 (2 minutes read)

There are a few design patterns of React component, and the easiest one is the Component-Presenter pattern, which is actually to separate mapping/states/transformation from the rendered content

如何拥有一份喜爱的工作

Jun 16, 2018 (1 minute read)

拥有一份喜爱的工作的关键并不在于找到自己的热情在哪里,而是专注于提升自己的能力,掌握好自己的专业后获得一份好工作,热情才会随之而来。

对能力的心态

May 27, 2018 (1 minute read)

理解对能力的两种心态,以及它们如何影响我们对学习和努力的态度。透过提醒自己要秉持成长心态,可以让我们对挫折和努力秉持更健康的心态。

Introduction to React with Typescript

May 10, 2018 (4 minutes read)

Using typescript allow static typechecking and intellisense in your React application, and it is easy to get started.

The best way is to Improve Yourself

May 07, 2018 (1 minute read)

Note to remind myself of my working philosophy

My first Meetup

May 01, 2018 (2 minutes read)

A journal on my first Meetup experience