This is the Delphi 13 development pattern I am using nowadays:
Call in Main code >> To a Singleton (Primoz G. style page 53) >> To an Interface. This setup keeps my main code very clean and crisp as the call is only ONE line (4 lines if you count definition and begin...end). This case handles 4 different actions identified by the Tag#.
To me the main code is uncoupled and it has no idea what the Interface does (Nick H. must be pleased with that, I am).
The below example results in only ONE call to the procedure that does the work "PU.StampSimple(.....). I am very pleased with the DRY result.
Saturday, November 1, 2025
Main Code >> Singleton >> Interface(s)
Subscribe to:
Post Comments (Atom)
ClientDatasets (Memory tables)
Blistering fast data loading and processing with TClientDataSet (using Delphi 13, 64 bit, September 2025 release), all records loaded and ...
-
Interesting and sadly true. 'Today we mourn the passing of a beloved old friend, 'Common Sense', who has been with us for ma...
-
No, we did not talk money. No need to. Why? The last 14-15 months Waiward and M&D have kept me and the current group of people employed,...
-
Edmonton is an oil oriented town. So if some where in the world there is a anomality in the oil-price Edmontionians share it. Hence the smal...
.jpg)
.jpg)
No comments:
Post a Comment