A comment on comments

Which code is more readable? implementation uses // Delphi units SysUtils, Windows, Classes, // Libraries Lib.Utils, Lib.Settings, Lib.JSON, MainFormU, // Main form unit Settings; // Settings unit procedure TForm.OnButton1Click( ASender: TObject ); var Humpty: THumptyDumpty; begin // Set up a humpty dumpty class and execute it, passing it the personal id, name and what looking … Continue reading A comment on comments

Don’t put your publics where your privates should go

Somewhen around 1998 or so some guy at Borland decided that developers are a stupid bunch of people and need the absolutely obvious clarified, so he or she decided to add comments to the unit template to explain where the private and the public declarations should go. unit ContentFrameUnit; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, … Continue reading Don’t put your publics where your privates should go

Visual components as a natural part of a Delphi application

For me, as a long time Delphi developer, custom made Visual components have not been a part of my Delphi VCL applications, nor my various frameworks that's evolved over the years. Not that I don't know how to create a visual component using VCL, but it's just to much work, I think, to bother. But … Continue reading Visual components as a natural part of a Delphi application