easy di-slideshare

34
Eric Torreborre Easy DI

Upload: eric-torreborre

Post on 16-Jan-2017

690 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Easy di-slideshare

Eric Torreborre

Easy DI

Page 2: Easy di-slideshare

What are we trying to solve?

Page 3: Easy di-slideshare
Page 4: Easy di-slideshare
Page 5: Easy di-slideshare

Factories

Page 6: Easy di-slideshare

Factories

Page 7: Easy di-slideshare

Constructor injection

Page 8: Easy di-slideshare

Constructor injection

Page 9: Easy di-slideshare

Constructor injection

Page 10: Easy di-slideshare

Constructor injection

Interface 1

Implementation 1 Interface 2

Implementation 2

Page 11: Easy di-slideshare

Separatedependencies from

wiring

Page 12: Easy di-slideshare

DI

Page 13: Easy di-slideshare

Cake pattern

Page 14: Easy di-slideshare

Cake pattern

Page 15: Easy di-slideshare
Page 16: Easy di-slideshare
Page 17: Easy di-slideshare

Unit tests

Integration testsProduction

Page 18: Easy di-slideshare

application.conf

Page 19: Easy di-slideshare

Production

Page 20: Easy di-slideshare

Unit tests

Integration testsProduction

Page 21: Easy di-slideshare

Integration tests

Kiama

https://bitbucket.org/inkytonik/kiama

Page 22: Easy di-slideshare

Kiama

Page 23: Easy di-slideshare

Rewriter

Page 24: Easy di-slideshare

Kiama

Page 25: Easy di-slideshare

Integration tests

Page 26: Easy di-slideshare

Unit tests

Integration testsProduction

Page 27: Easy di-slideshare

Singleton

Page 28: Easy di-slideshare

Singleton

Page 29: Easy di-slideshare

Resources

Page 30: Easy di-slideshare

Unit tests

Integration testsProduction

Page 31: Easy di-slideshare
Page 32: Easy di-slideshare

No, there's more!

Page 33: Easy di-slideshare

Tree rewriti

ng

Attribute

grammars

Page 34: Easy di-slideshare

Topological sort!