Summary
In this chapter, we have learned some useful everyday skills that a Delphi developer can benefit from.
In the first part, we have looked into PPL. With constructs such as parallel for
loops, tasks, and futures, we can really make our Delphi apps faster and more responsive.
The second part of the chapter was related to working with text files. One can work with just plain text, or take advantage of popular structured file formats such as JSON and XML. We have looked into working with both file formats through building their in-memory representation. In the case of JSON, we have also looked into reading and writing data using dedicated readers and writers. For completeness, it should be noted that we have not covered the TJson
class from the REST.Json
unit that can be used for serializing Delphi objects to their JSON representation and back.
In the next chapter, we will be playing with FireMonkey through small, but funny demo apps.