Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DI-antiPattern.pdf

shindyu
December 20, 2018
68

 DI-antiPattern.pdf

shindyu

December 20, 2018
Tweet

Transcript

  1. DEPENDENCY INJECTION ANTI-PATTERNS SELF-INTRODUCTION ▸ ৽ಊ ܟོ / @shindyu ▸

    ϠϑΦΫ! iOS ▸ ٕज़ॻయ̑ͰςετຊΛॻ͖·ͨ͠ʂ
 https://booth.pm/ja/items/1040471
  2. DEPENDENCY INJECTION ANTI-PATTERNS STABLE / VOLATILE ▸ Stable Dependency :

    ҆ఆͨ͠ґଘؔ܎ ▸ ex) ಺෦ͰͷΈར༻͢ΔϞδϡʔϧ ▸ Volatile Dependency : شൃੑͷ͋Δґଘؔ܎ ▸ ex) ཚ਺ɺ࣌ؒΛར༻͢ΔϞδϡʔϧɺ
 ɹ ฒߦ։ൃதͰFIX͍ͯ͠ͳ͍ґଘؔ܎
  3. DEPENDENCY INJECTION ANTI-PATTERNS SUMMARY ▸ Dependency Injection ▸ Constructor Injection

    ▸ Property Injection ▸ Method Injection ▸ Ambient Context ▸ Anti-Patterns ▸ Control Freak ▸ Bastard Injection ▸ Service Locator ͍ͨͩ͠ύλʔϯΛཧղͯ͠ΑΓྑ͍ίʔυΛʂ