好像...
As if/though
Tina seems as if she had finished the homework, but we know she didn't bring it home.
在因果關係中 點出某個事實 並做出推斷/後果
Since
As
Now that
Seeing that
Jia-Jun Yeh changed a year agoView mode Like Bookmark
https://github.com/pacificplusplus/conference/blob/master/slides-2017/Low Latency C%2B%2B for Fun and Profit/slides.pdf
重點
remove branch
template-based configuration
memory alloc (pooling)
exceptionalmost zero-cost if not throw
avoid multi threading
Jia-Jun Yeh changed 2 years agoView mode Like Bookmark
the clean arch
外圈程式的修改不應該影響內圈
藉由DI讓依賴的方向總是由外往內走 (外圈 import 內圈 package)
可以根據狀況加減層數和職責
例如:從Yahoo抓資料變成從Google抓資料,結果資料格式變了,修改格式以後所有用到的地方都需要跟著修正 => 不管從哪裡抓資料,都應該轉成一個統一的格式回傳,並要求不同的資料源抓取實作要擁有相同的interface。
package pubfinance
// x, data struct is different for every api
Jia-Jun Yeh changed 2 years agoView mode Like Bookmark