Woman in the rain

At noon today, my workmates and I were walking back after having lunch. It’s a rainy day. A woman was walking towards us, dressed in a short black skirt and a black coat over a tight skin coloured top. It looks like the woman dose not wear…

好的代码

刚刚写代码的时候,对某个函数的调用进行了思考和修改,发现修改结果有很大的好处。把这个记录下来,努力让自己以后写代码都能这样思考。 原先的代码是这样的: export default { getBoundingRect() { let el = this.getElement(); let bounding = el.getBou…

Awkward moment in subway

In the subway, a girl besides me while I was waiting for next stop in the front of door. The girl seems want to get off too. She looks into the window on the door and trying to make herself look better. Arrived at the stop, the girl sudden…

Writing good code.

将容易变化的代码放到一个模块里,或者一个方法里面,给这些代码一个接口。(方便修改) 将可替换的代码放到一个模块里,或者一个方法里面,给这些代码一个接口。(方便替换) 将可复用的代码放到一个模块,或者一个方法里面,给这些代码一个接口。(方便复…

Hello World

This is the very first post of this blog.