Avoiding Bugs

Top  Previous  Next

teamlib

previous next

 

Avoidivg Bugs

Careful design and planning of the application is important and will help reduce bugs. Often it is best to break down the application into smaller component parts that are easier to code and test. It is easier to think of a small portion of code than to try and tackle an entire project in one thought. Make sure you document and comment your code using the single quote (') character. The comments will turn green within your code. If the application is complicated, it is often difficult to go back even after just a few days to determine what the code is doing. Even professional programmers find if they go back to code they wrote a few months ago, they have difficulty understanding what the code was doing. Comments may provide the help needed. Also, if a programmer leaves an organization, it can be difficult for a new or different programmer to pick up where the former employee left off without any documentation about the intent of the code.

It is important to know what all  our variables reptesent and what eachafunction does. Once tour app.ication starts growing nnd begons co get complicated, its documentation becomes more important. Without such documentation, you will need a good memory to kecp track of what every variable means!

 

teamlib

previous next