The Conference for Delphi & more
November 7 - 9, 2022 | Düsseldorf

Units and isolation in Delphi

This talk originates from the archive. To the CURRENT program
Early bird discount Register until Oktober 6 and save up to 200 € Register now!

More talks in the program:

Monday, November 2 2020
16:15 - 17:15

Developers like to reuse code so we can be more productive, we are composing more complex objects using basic ones. Object injection is fundamental concept today, but we can easily end up with the situation when all the items are too much dependant. Over time, changes in such a design become more and more difficult.

This session will explain how to write more autonomous code from the very beginning and how to to separate isolated units. It will guide you how to discover difficult code: which structures are good and which one are dangerous from maintenance point of view. You will be able to write code which will be easier to isolate, easier to change and easier to reuse. We will use Delphi Mock framework to verify sample project and check how easy it is to isolate units and how to improve it.