[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
MUMPS » QbasicFAQ_Inkey » CPU » help » complexnumbers » CppCli » WhatLinksHere » QbasicFAQ_EventDriven » thunks » programmer » QbasicFAQ_Stucture
Program structure
Back to QBasic FAQ Main Page.
QBasic provides the beginning programmer with the tools to learn to program. HOW the new user chooses to create his/her program is their choice. Program structure should be of accepted standard so that when the source code is shared, (as you more than likely will do), it is comprehensible. Good structure will include clearly defined TYPES, SUBS, MODULES, and LOOPs. Good QBasic structure will also include clearly named variables, line identifiers, arrays and files. Loops should have a minimum of exit points, and subs should not branch unpredictably.
It is also considered good practice to include comments for your code, and use line indents, for each loop level.
The old adage of "GOTO is poor programming practice" rings true.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
MUMPS » QbasicFAQ_Inkey » CPU » help » complexnumbers » CppCli » WhatLinksHere » QbasicFAQ_EventDriven » thunks » programmer » QbasicFAQ_Stucture
Program structure
Back to QBasic FAQ Main Page.
QBasic provides the beginning programmer with the tools to learn to program. HOW the new user chooses to create his/her program is their choice. Program structure should be of accepted standard so that when the source code is shared, (as you more than likely will do), it is comprehensible. Good structure will include clearly defined TYPES, SUBS, MODULES, and LOOPs. Good QBasic structure will also include clearly named variables, line identifiers, arrays and files. Loops should have a minimum of exit points, and subs should not branch unpredictably.
It is also considered good practice to include comments for your code, and use line indents, for each loop level.
The old adage of "GOTO is poor programming practice" rings true.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
