Programming Style Guide
Posted: 22 January 2006, 13:11 PM
Is there a programming style guide for ZBasic programs. Being somewhat new to this flavor of BASIC and wanting to be sure that I husband the processor's resources, I would like to have a discussion of "proper" programming style.
I also like to have things neat in the code. I have tons of experience with Pascal especially Borland's and have used their products from TP3 to Delphi. I have sort of developed my style. Such things a never capitalizing the words function and procedure (function and subroutine here). I try to capitalize variable names like MyVariable (which I have seen refered to as Camel Caps) and I always (almost) capitalize constants completely (MYCONST). I do not identify variables - strMyVariable. I would like to see the editor do like the help files and enforce capitalzation like this ( MakeString) so I don't have too. Tabbing is an issue with me. I have always indented with two spaces per level and dkinzer was kind enough to explain how to set my tab levels gobally for this.
Anyway I think style is important and makes for easier reading of programs. I would like to hear how others approach this issue.
Any enlightenment will be appreciated.
Vic
I also like to have things neat in the code. I have tons of experience with Pascal especially Borland's and have used their products from TP3 to Delphi. I have sort of developed my style. Such things a never capitalizing the words function and procedure (function and subroutine here). I try to capitalize variable names like MyVariable (which I have seen refered to as Camel Caps) and I always (almost) capitalize constants completely (MYCONST). I do not identify variables - strMyVariable. I would like to see the editor do like the help files and enforce capitalzation like this ( MakeString) so I don't have too. Tabbing is an issue with me. I have always indented with two spaces per level and dkinzer was kind enough to explain how to set my tab levels gobally for this.
Anyway I think style is important and makes for easier reading of programs. I would like to hear how others approach this issue.
Any enlightenment will be appreciated.
Vic