COSCUP x RubyConf TW 2021

Learning go error handling design from open source
2021年7月31日 , TR209
語言: 漢語


slido url:

https://app.sli.do/event/hjbnq0p7

英文演講標題:

Learning go error handling design from open source

hackmd url:

https://hackmd.io/@coscup/HyHyr6PR_/%2F%40coscup%2FByeT4pvC_

演講摘要:

go 的錯誤處理上一直被大家所抱怨, 但是回歸到開發本身, 錯誤處理的設計議題卻常常被忽略, 讓我們以 Dave 的文章 "Don’t just check errors, handle them gracefully" 爲基礎, 學習開源專案怎麼做錯誤處理設計

agenda:
- 快速複習 errors API
- standard library 如何減少錯誤處理的程式碼
- errors 的種類, 以及針對不同層級 package 的應用
- 開源專案的錯誤處理設計

演講長度:

40

英文演講摘要:

We love to complain about Go's error handling, but ignore to discuss how to design it well. Let's start from Dave's amazing article "Don’t just check errors, handle them gracefully" and study Go's error handling design in open source projects

agenda:
- quick go through errors API
- how standard library eliminate lines for error handling
- categories of errors, and how to use them in different scenarios
- error handling design in open source projects

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件): True 內容難易度:

中階