Error
From Programmer's Wiki
A bug or an error is something which went wrong in an application. It can for instance lead to the program not starting at all, the program crashing or the program to not work as expected. (See "Types of Error")
Contents |
[edit] Types of Error
[edit] Syntax Error
When writing code programmers often make make mistakes where the code they have written does not conform to he language they are writing. This is often something as simple as leaving a semicolon off the end of a line.
[edit] Compile-time Error
Compile-time errors are errors that occur when the program is being compiled. This could be something like required libraries not being installed.Syntax errors are a form of compiletime error
[edit] Runtime Error
Runtime errors are those that occur between when the program starts and when it ends. Often these are caused by conditions that were often unforseen by the programmer. To avoid this the programmer should use Exception handling to gracefully avoid the problem.
[edit] Best Practice
Programmers should always test their code after adding something new. This makes the whole process for finding the bugs easier.
