1VOTES VOTE The Curiously Recurring Generic Pattern Erik van Bilsen This curious little pattern can be helpful for certain problems that involve generics. We’ll look at what it is, and at a couple of use cases for it. What is it? The Curiously Recurring Generic… – Details… 1 year ago in Collections, Delphi, generics, Patterns, Tips & Tricks 0
1VOTES VOTE Custom Managed Records for Smart Pointers Erik van Bilsen In this 3rd part in (what turns out to be) a series about Custom Managed Records, we take a look at how they can be used to create smart pointers. About Smart Pointers But first… – Details… 3 years ago in Custom Managed Records, Foundation, Patterns, Tips & Tricks, Uncategorized 0
1VOTES VOTE Automate Restorable Operations with Custom Managed Records Erik van Bilsen There are those common try..finally blocks that you write over and over again. For example entering and leaving a critical section to protect resources from multiple threads, or calling BeginUpdate and EndUpdate to efficiently bulk-update… – Details… 3 years ago in Custom Managed Records, Foundation, Patterns, Tips & Tricks, Uncategorized 0
1VOTES VOTE Mapping Delphi Types to Indices at Compile Time Erik van Bilsen Say what now? In this post I will show you how you can use generics and class variables to generate unique incrementing indices for any Delphi type. For example, the Integer type could map to… – Details… 3 years ago in Delphi, generics, Patterns, Tips & Tricks, Tricks, Types, Uncategorized 0
1VOTES VOTE Storing your Objects in a Database Malcolm Groves I’ve just begun a series of posts and accompanying videos over at the Code Partners site on using an Object Relational Mapper in Delphi. It starts out simple but over the series I want to… – Details… 7 years ago in Architecture, FireMonkey, LiveBindings, MVVM, Patterns 0