luxury
great comfort, especially as provided by expensive and beautiful things.
something expensive that is pleasant to have but is not necessary.
写unit test的时候deep equal有些问题(给不了差异点)
请教了同事 得到了解答
很赞 提高了效率
这两天刚读了iterator的deisgn pattern
就在codebase当中找到了一处优化的地方
Simple but not easy.
看了几个新的设计模式
state/chain of responsibility/decorator
这一段时间以来 明显感受是coding这件事情(尤其是在公司里)变得有意思多了
(工作的第三年和第一年相比)
设计模式确实有点意思
Pass through several design patterns of creational, structural and behavioral.
Explore 13 common Go mistakes during the weekend. (From 100 Go mistakes)
For these reasons, when we want to ignore an error in Go, there’s only one way to write it:
_ = notify()
(❌ Duplicate)
// Ignore the error
_ = notify()
(Great ✅)
// At-most once delivery.
// Hence, it's accepted to miss some of them in case of errors.
_ = notify()