Blogs

Type-Safe callAll

Feb 24, 2019 (1 minute 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 (2 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 (1 minute 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 (3 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 (3 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 (1 minute 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)

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