1 of 21

Injection!?!?!

2 of 21

Dependency Injection!?!?!

3 of 21

Why you should care about and use Dependency Injection

  • Easy to implement
  • Clean, maintainable code
  • Increased testability

4 of 21

Dependency Injection is EASY

5 of 21

Dependency Injection is EASY

6 of 21

Dependency Injection is EASY

7 of 21

Dependency Injection results in clean, maintainable code

8 of 21

Dependency Injection results in clean, maintainable code

9 of 21

Dependency Injection results in clean, maintainable code

10 of 21

Dependency Injection results in clean, maintainable code

11 of 21

Dependency Injection results in clean, maintainable code

12 of 21

Dependency Injection results in clean, maintainable code

13 of 21

Dependency Injection results in clean, maintainable code

14 of 21

Dependency Injection results in clean, maintainable code

15 of 21

Dependency Injection increases testability

16 of 21

Dependency Injection increases testability

17 of 21

Dependency Injection increases testability

18 of 21

But how??

19 of 21

Libraries!

20 of 21

Frameworks!

21 of 21

Write cleaner code with dependency injection!

  • Easy to implement
  • Clean, maintainable code
  • Increased testability