November 2019
Beginner to intermediate
674 pages
15h
English
A concept of a builder is often used together with a concept of fluent interfaces. When an interface or a class is written in a fluent manner, its every method (or at least most of the methods) returns the implementing object itself. To put this in Delphi terms: each method returns Self.
Fluent interfaces allow us to chain method calls. For example, given an initialized object sb of type TStringBuilder (from unit System.SysUtils), we can create a simple string by using the following four commands:
sb.Append('The answer: ');sb.Append(42);sb.AppendLine;ShowMessage(sb.ToString);
As both Append and ...
Read now
Unlock full access