1. JavaScript vs Ruby in Inheritance

    Both JavaScript and Ruby have special inheritance model. In JavaScript, it is handled by stuff known as prototype chain; in ruby, there is a special class named as Singleton Class that wires all the magic up. The basic concept is the same: instance methods should be placed in ‘Class’ so that the instance can refer to it rather than duplicating it. Here is a diagram to clarify the inheritance chain in JS and Ruby and hope the comparison will shed some light on the common concept. …


  2. 香港懒人计划


  3. Docker inside GFW

    Mainland China is a big market and your might want get a piece of cake from it. Normally if you want to apply the Asia-pacific businese to Europe, even if the application logic is exactly the same, it is better to create a new instance in EU zone and change the base url to the new server in order to achieve faster network connection. This also applies to mainland China. …


  4. Test with iOS

    This article tries to generalize the best practice of testing with iOS project. …


  5. 完美都是存在的,只是不能经常去追求它

    其中黄金时代一篇,从二十岁时就开始写,到将近四十岁时才完篇,其间很多次的重写。现在重读当年的书稿,几乎每句话都会使我汗颜,只有最后的定稿读起来感觉不同。这篇三万多字的小说里,当然还有不完美的地方,但是我看到了以后,丝毫也沒有改动的冲动。这说明小说有这样一种写法,虽然困难,但还不是不可能。这种写法就叫作追求对作者自己来说的完美。我相信对每个作者来说,完美都是存在的,只是不能经常去追求它。 – 王小波 …


  6. 职场建议和薪酬谈判

    大部分国人教育是告诉从业者在一个岗位上工作,少跳槽。这篇文章从另外一个角度和大家共享了他自己的观点,那就是及早跳槽同时经常跳槽。观点正确与否见仁见智,仅供参考。英文原文链接如下: Career Advice and Salary Negotiations: Move Early and Move Often …