I got to thinking about arbitrary coding standards and my prior experiences, and remembered in Visual Basic classes that we were required to use "Polish notation" within our programs to define variables, like forms, text boxes, etc.
Basically instead of defining things like:
You do something like:
basically the idea is prefixing all variable identifiers with the purpose of the widget.
Personally, I wasn't too impressed with this, and the instructor required it. If you really look at it, there's a rather long list of specifically defined extensions, which just add unneeded complexity to have to produce.
So what is your opinions on this?
Basically instead of defining things like:
Code:
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Label1: TLabel;
Button1: TButton;
var
Form1: TForm1;
You do something like:
Code:
TForm1 = class(TForm)
txtEdit1: TEdit;
txtEdit2: TEdit;
lblLabel1: TLabel;
cmdButton1: TButton;
var
frmForm1: TForm1;
basically the idea is prefixing all variable identifiers with the purpose of the widget.
Personally, I wasn't too impressed with this, and the instructor required it. If you really look at it, there's a rather long list of specifically defined extensions, which just add unneeded complexity to have to produce.
So what is your opinions on this?