8
votes
Vote UpVote

Dependency Injection best practices - lazy initialization

Delphi sorcery – “You gotta know when to be lazy. Done correctly, it's an art form that benefits everyone.” Nicholas Sparks, The ChoiceI admit this was taken out of context a bit - but we will see how this applies to dependency injection.Identifying the problemWhen dealing with dependency injection - and when I am saying dependency injection I am referring to the software design pattern - you are facing one problem pretty quickly. The first instance you create (or resolve using the container at the very root of your application) needs everything injected that you will ever need, either directly ...
Favorite? Off-Topic? noreply@blogger.com @ 2013-12-08 02:37

Statistics

Visits: 1232
Votes: 8
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

ajasja
Alister Christie
Jeroen Pluimers
Jørn E. Angeltveit
Mohammed Nasman
Primoz Gabrijelcic
Ravaut123
TOndrej
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)