The conversation is interesting and I would like to give my opinion.
Regardless of some important basic conventions, I do not share the idea that a code must necessarily adhere to a pre-established structure.
Every code bears the signature of the person who wrote it, and this manifests itself primarily in the indentation.
Assuming that a given begin cannot have its end unaligned, or the assignment of multiple variables cannot proceed in a zig zag, etc., because it would make the code unreadable, specific statements or indentation should not be imposed.
For example:
uses
// RTL, FCL, LCL
MacOSAll, CocoaAll,
Classes, LCLType, SysUtils, LCLMessageGlue, LMessages,
Controls, ComCtrls, Types, StdCtrls, LCLProc, Graphics, ImgList,
Math,
// WS
WSComCtrls,
// Cocoa WS
CocoaPrivate, CocoaScrollers, CocoaTabControls, CocoaUtils,
CocoaWSCommon, CocoaTables, cocoa_extra, CocoaWSStdCtrls, CocoaGDIObjects, CocoaButtons;
tidy and precise, personally in C# I do it with the variables declared in MonoBehaviour. I list groups of variables that refer to specific objects so that the user can identify them more easily.
But what about:
CallingWithLotOfParameters
(
'A value here',
ValueThere,
123123123,
YabadbaDoo
);
I prefer to write:
CallingWithLotOfParameters (
'A value here',
ValueThere,
123123123,
YabadbaDoo );
As well as:
if (VeryLargeName <> AnEvenLargerNameThanTheOther)
and (VeryLargeName <> AnotherThing)
I prefer:
if (VeryLargeName <> AnEvenLargerNameThanTheOther) and
(VeryLargeName <> AnotherThing)
Again, as an example, in C#:
if (a == 1) {
[...];
}
rather than
if (a == 1)
[...];
while in Pascal I would never write
if (a = 1) then
begin
[...];
end
In short, it’s my opinion, but I wouldn’t like to adhere to a pre-established code formatting standard.
All codes are fine if they follow the basic general conventions and then differ in small details, in their structure, which ultimately are nothing more than the expression of whoever wrote them.