Category Archives: Programming

Forms management tip

(portuguese)

From my point of view, one thing that is really missing for Delphi/Lazarus is a better application’s form management. Two problems: an independent public variable is used to control an instance, and the ‘please place everything within the form’ approach. The first one requires the programmer to either create the form at the start of the application and not destroy it anymore, or it requires the programmer to create the forms and keep track of object destruction insuring that no variable points to a destroyed object. The second, among other problems, requires that the first one works perfectly so that the communication between forms can work. Continue reading Forms management tip

Data Type Framework

(portuguese)

(special thanks to Richard Scoop)

What do Object Persistence Framework (OPF) and its brother Model-View-Presenter (MVP) have in common, other than being object oriented patterns? Both use the same source of data. At one end the OPF reads information from a persistence mechanism (eg a RDBMS) and at the other end the MVP presents the information that the user sees from it. The link between these two is what a few authors call a Value Type Framework, which I call Data Type Framework or simply the Subject Framework. Continue reading Data Type Framework