Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft Advertising 16:9 Template Light Use the slides below to start the design of your presentation. Additional slides layouts (title slides, tile.

Similar presentations


Presentation on theme: "Microsoft Advertising 16:9 Template Light Use the slides below to start the design of your presentation. Additional slides layouts (title slides, tile."— Presentation transcript:

1 Microsoft Advertising 16:9 Template Light Use the slides below to start the design of your presentation. Additional slides layouts (title slides, tile slides, etc.) are available to you in the slide master.

2 Grid Use this grid to align your copy, imagery and charts/graphs.

3 Krešimir Meze Omega software ASP.NET MVC Dependency Injection with Unity Application Block

4 Doing It Yourself The Basics Agenda Injecting With Unity

5 Krešimir Meze Omega software Email: kresimir.meze@omega-sofware.hrkresimir.meze@omega-sofware.hr LinkedIn: www.linkedin.com/in/kresimir.mezewww.linkedin.com/in/kresimir.meze Blog: http://kresimirmeze.wordpress.comhttp://kresimirmeze.wordpress.com Twitter: https://twitter.com/kmezehttps://twitter.com/kmeze GitHub: https://github.com/kmezehttps://github.com/kmeze About me

6

7 Inspirirani ljudima. Ugasite mobitele. Hvala.

8 Inspirirani ljudima. The Basics

9

10 Loose Coupling Reducing the number of dependencies between the components that make up your system.

11 Dependency Injection A software design pattern that implements inversion of control and allows a program design to follow the dependency inversion principle. Martin Fowler

12 Dependency Inversion Principle High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions. Robert C. Martin

13 Open/close principle Single responsibility principle SOLID principles of object-oriented programming First five principles Liskov substitution principle Interface segregation principle Dependency inversion principle

14 SOLID Single responsibility principle - states that a class should have one, and only one, reason to change. Open/close principle - software entities (classes, modules, functions, and so on) should be open for extension, but closed for modification. Liskov substitution principle - states that in a computer program, if S is a subtype of T, then objects of type T may be replaced with objects of type S without altering any of the desirable properties, such as correctness, of that program. Interface segregation principle - states that interfaces that are very large should be split into smaller and more specific ones so that client classes only need to know about the methods that they use: no client class should be forced to depend on methods it does not use. Dependency inversion principle - High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend upon details. Details should depend upon abstractions.

15 Inversion of Control (IoC) Hollywood principle: “Don't call us, we'll call you.“

16 Inspirirani ljudima. Doing It Yourself

17

18 Inspirirani ljudima. Injecting With Unity

19

20 Inspirirani ljudima. Recap

21 Doing It Yourself The Basics Recap Injecting With Unity

22 References Wikipedia http://en.wikipedia.org/wiki/Dependency_injection Source http://unity.codeplex.com/ Unity Developer's Guide http://download.microsoft.com/download/4/D/B/4DBC771D-9E24-4211-ADC5-65812115E52D/DependencyInjectionWithUnity.pdf Hands-On Labs http://www.microsoft.com/en-us/download/details.aspx?id=40287 Robert C. Martin: The Dependency Inversion Principle http://www.objectmentor.com/resources/articles/dip.pdf Martin Fowler: Inversion of Control Containers and the Dependency Injection pattern http://martinfowler.com/articles/injection.html PluralSight - Practical IoC With ASP.NET MVC 4 http://pluralsight.com/training/courses/TableOfContents?courseName=ioc-aspdotnet-mvc4 PluralSight - Inversion of Control http://pluralsight.com/training/courses/TableOfContents?courseName=inversion-of-control

23 Inspirirani ljudima. Pitanja i odgovori.

24 Krešimir Meze Omega software Email: kresimir.meze@omega-sofware.hrkresimir.meze@omega-sofware.hr LinkedIn: www.linkedin.com/in/kresimir.mezewww.linkedin.com/in/kresimir.meze Twitter: https://twitter.com/kmezehttps://twitter.com/kmeze Blog: http://kresimirmeze.wordpress.comhttp://kresimirmeze.wordpress.com GitHub: https://github.com/kmezehttps://github.com/kmeze Contact

25 Inspirirani ljudima. Section Divider

26 1-column slide header Main topic 1 Subtopic 1 Subtopic 2 Main topic 2 Subtopic 1 Subtopic 2 Main topic 3 Subtopic 1 Subtopic 2

27 2-column slide header Main topic 1 Subtopic 1 Subtopic 2 Main topic 2 Subtopic 1 Subtopic 2 Main topic 3 Subtopic 1 Subtopic 2 Main topic 1 Subtopic 1 Subtopic 2 Main topic 2 Subtopic 1 Subtopic 2 Main topic 3 Subtopic 1 Subtopic 2

28 Main topic 1 Subtopic 1 2-tile slide header

29 Main topic 1 Subtopic 1 3-tile slide header

30

31


Download ppt "Microsoft Advertising 16:9 Template Light Use the slides below to start the design of your presentation. Additional slides layouts (title slides, tile."

Similar presentations


Ads by Google