Nested Type Enumerations
Over the last couple of years, I have been making more use of nested types to organise how my code (behaviour) is organised in an application. If some application behaviour (encapsulated in class A) is part of a broader behaviour (encapsulated in class B), then I will at least consider nesting class A within class B.… Continue reading ›
Rolling your own Dependency Injection, Part two
In Part 1 we covered the beginnings of rolling your own Dependency Injection framework as an alternative to using the Delphi Spring Framework. We discussed the patterns and objects involved and described using RTTI to perform the actual injection. Now we’ll look at an example of using DI to inject logging functionality into an object.… Continue reading ›
Rolling your own Dependency Injection
What if you want to employ the Dependency Injection pattern in your application, but don’t want to use a third party framework for it?… Continue reading ›