Category: Coding Techniques

Melbourne Meeting – June 2016

Monday 20th June

Subject Anonymous Methods and Generics – Colin Johnsun

Colin  explained what they can do and how they do itContinue reading ›

Posted in Coding Techniques, Meetings, Melbourne, Technical Tagged with: ,

Melbourne Meeting – September 2015

Monday 21st September at 6 for 6:15pm start.

ADUG AGM followed by a presentation from current President Lachlan Gemmell

 … Continue reading ›

Posted in AGM, Coding Techniques, Meetings, Melbourne, Technical, Tools, VCL Tagged with:

For-in Enumeration

The “For in” style of enumeration in Delphi was introduced in Delphi 2005. The idea is to make enumeration over a collection of things easier and cleaner by removing the need for the iterator variable, removing the code for indexing and removing the code for boundary checking.… Continue reading ›

Posted in Coding Techniques, Language Tagged with: , ,

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 ›

Posted in Coding Techniques Tagged with: ,

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 ›

Posted in Coding Techniques, RTL

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 ›

Posted in Coding Techniques, RTL