像外行一樣思考 像專家一樣實踐

E本書共有四章,主要講作者嘅一D唔同嘅想法。書名「像外行一樣思考,像專家一樣實踐」只係第一章嘅內容。本書得四份一個內容係我嘅expectation之內,餘下嘅三章,其中兩章相當精楚,值得一讀。
由於作者係一個居美日籍computer science嘅教授,有D想法同例子令我覺得特別親切,亦都係我鐘意E本書嘅原因。

文中提到「類比電腦」,係利用自然法則去計覺問題嘅答案,係一種幾有趣嘅解決問題嘅方法

Read More

簡評二十六

What are the main uses of Command design pattern?

Command pattern 有時好似有D dummy,無端端要decouple generate request 同 execute request 嘅object。但係現實中有以下場境:

  • GUI
    • 因為UI(request generate object),成日要轉,所以最好拆開,亦姐係MVC pattern
  • Marco recording
    • 因為要record同replay行過嘅步驟,decouple左之後,只需要儲低個request object就做到
  • Multi-step undo
    • Similar to Marco recording
  • Networking
    • Remote execute嘅情況,request generate object 同 execute object唔係同一部機上邊,焗住要decouple
  • Progress bar
    • Decouple左個execution做一個個step之後,我地track住個request object,就可以知道個progress
  • Transaction
    • Similar to multi-step undo

Read More

簡評二十四

Why vendors perform code diagnostics before taking over an app developed by a third party

2 steps before taking over the code base

  • Codebase review
    • is it complete (and matches the deployed version)
    • does it have clear commit messages
    • is it easy to setup the environment
  • Exploratory test
    • find out bugs in the existing product
    • understand what needs to be fixed, or what bugs existed prior to any new development work

14 Jan 2019

Good to know how vendor take over an unknown code base.

Read More