Session Details

EKON 24
The Conference for Delphi & More
November 2 - 4, 2020 | Meliá Düsseldorf & online

Bogdan Polak

en

02 Nov 2020
16:15 - 17:15
Early Bird Register until October 1 and save up to € 100! Register now!

Units and isolation in Delphi

02 Nov 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.