Delphi Style Guide

About once a year or so, I seem to get involved in some discussion of whether there’s a “correct” way to format Delphi code. For me, whenever possible, questions about code formatting always end with the Object Pascal Style Guide originally written by Charlie Calvert and published by Embarcadero.

Castalia‘s internal code formatting routines adhere to the standards in the Object Pascal Style Guide, and I consider it to be an authoritative voice on the “correct” way to format most common Delphi code structures.

2 Responses to Delphi Style Guide

  1. Nick Hodges July 13, 2011 at 12:23 pm #

    Jacob —

    Yes, there is a “correct” way to format code. This correct way is my way — the way I do it — and all others are incorrect.



  1. Customizing Structural Highlighting in Delphi | TwoDesk Delphi Blog - September 26, 2011

    […] course, code formatting can be quite a touchy subject, and by extension, the “best” way to highlight that formatting has been the subject of […]

For programmers, by a programmer

Hi. My name is Jacob, and I'm the creator of Castalia.

I starting programming in 1986, learning Lightspeed Pascal on a Mac Classic. Today, I'm a professional programmer, teacher, and entrepreneur.

I have a Master's Degree in Computer Science, and I still love Pascal and Delphi.

I believe that writing code is the heart and soul of software development, and I love helping programmers write code more effectively.