[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.

last edited (November 4, 2003) by philip7891, Number of views: 3876, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.