簡評四

无为无不为

1.管理人員唔等於高人一等,只係代表佢地比較擅長協調同激發其他人潛能。
2.管理唔等於控制
3.唔好做惡意競爭

19 May 2018

  • 每個task無論難易,都係完成團體目標唔可以缺少嘅一部份
    • 唔可以忽視隊友係簡單嘅task上面嘅貢獻
    • 一D簡單嘅task可以起關鍵作用,唔可以因為事小就唔理
    • 要留意返簡單嘅task同low priorty嘅task
  • 現實中無人可以隨心所欲,只可以誘導事情往自己心想嘅方向發展

Read More

Avoiding Singleton Abuse

The singleton mentioned here is Singleton Design Pattern

  • Private constructor
  • Global referal to the instace

Singleton is global variable

The singleton instance can be access in every where. Actually, singleton instance is a group of global variables and methods. If we use singleton instance incorrectly, it will bring the problems from global vairables.

Read More

"objc@interface的设计哲学与设计技巧"感想

作者係文中比較java同objective C 嘅 OO。Objective C 嘅pattern係比較嚴格,可以由當中學到一D OOP嘅good practise.

Objective C 好似係冇所謂嘅public, private 同 protected 嘅 object function,作者係文中提及點樣可以做到E幾個keyword嘅效果。由於Objective C 歷史較長,佢冇E D keyword唔係因為佢design得唔好,可能係調返轉,果D keyword係由Objective C 啟發出來。

Read More

git clone <repo> --depth 1

Just find out a way to speed up the build of docker image for testing environment. We can use git clone <repo> --depth 1 to get the repo with latest copy only. In other words, no commit history is cloned.

It can speed up the git clone, especially your project is big and with long history.