Error 訊息處理流程 說明 如果在執行過程產生錯誤,例如要求廣告資料這個孤嗯能,需要提供使用者的ID才能顯示對應的廣告,這時候若未收到使用者的ID便無法繼續執行,所以程式會終止並回傳錯誤訊息。對於處理這個狀況的流程請參考以下建議做法。 流程 1.使用以下方法產生錯誤訊息 new Error("userId is required") 使用這個方式的錯誤,可產生如下提示 debug: Error: userId is required at Object.exports.getAllAds (/services/Service.coffee:7:43) at module.exports.getAllAds (/Controller.coffee:108:18) 如此以來便可以清楚知道問題產生的程式與行數,快速找到問題點 2.使用套件方式進行轉換 error ParserService.errorToJson(error) 透過這個方法可將 error 轉換爲 pmd...

我們的做法 gitflow 與 code review 太繁瑣,所以無法確保程式品質,因此我們改為 githubflow,並且每個禮拜發布一次,確保開發步奏的循環。 流程改為 github flow 使用 gitlab 的 pull request 來進行 發出 pull request 後會搭配一個觀察者進行 code review 任何人都可以是觀察者 關於程式碼的修改建議一律在 gitlab 上進行 管理人員可以進行 accept request git...

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways,...