Edit requests of 「なぜDI(依存性注入)が必要なのか?」についてGoogleが解説しているページを翻訳した 

@ghost

2016-08-14

Accepted

new呼び出しをFactoryメソッドに変更してるコードがテストコードになってたので、原文からコピーし直しました。

@toastkidjp

2016-08-13

Accepted

Typo?の修正とタグ追加

Please check the preview of this article

We released Markdown parser changes on February 24, 2022. There may be some unexpected appearance changes in this update, because this article was posted before the changes.
Please don't forget to check the preview before updating your article.
For more information on the changes, please read this article.