- Hands-On Dependency Injection in Go
- Corey Scott
- 117字
- 2021-06-10 19:17:43
Never Stop Aiming for Better
Do you want code that is easier to maintain? How about easier to test? Easier to extend? Dependency Injection (DI) might be just the tool you need.
In this chapter, we will define DI, perhaps in a somewhat atypical way, and explore the code smells that could indicate you need DI. We will also talk briefly about Go and how I would like you to approach the ideas presented in this book.
Are you ready to join me on a journey to better Go code?
We will cover the following topics:
- Why does DI matter?
- What is DI?
- When should I apply DI?
- How can I improve as a Go programmer?
推薦閱讀
- Visual Basic編程:從基礎(chǔ)到實踐(第2版)
- Java應(yīng)用開發(fā)與實踐
- 實戰(zhàn)Java程序設(shè)計
- 程序員考試案例梳理、真題透解與強化訓(xùn)練
- Java深入解析:透析Java本質(zhì)的36個話題
- STM32F0實戰(zhàn):基于HAL庫開發(fā)
- HTML5入門經(jīng)典
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開發(fā)實踐
- 單片機原理及應(yīng)用技術(shù)
- C語言從入門到精通
- PHP項目開發(fā)全程實錄(第4版)
- HTML5游戲開發(fā)實戰(zhàn)
- JavaEE架構(gòu)與程序設(shè)計
- HTML5與CSS3權(quán)威指南
- C語言編程魔法書:基于C11標準