Cover photo

Tips for Finding Bugs

Writing programs is not an easy job. It is rare for an application to be successfully built from 0 to completion without any problems, be it a write error or a program logic error. When an error occurs that causes the application not to run properly, that's when we find a bug.

There are several types of bugs that are often encountered, including:

  • Syntax writing error

  • Error at runtime

  • Logic error

Syntax writing error (syntax error)

As humans, we are certainly very with mistakes. The error that often occurs is writing the programming syntax incorrectly. Syntax is the rules of writing code that have been standardized by a particular language or framework. If we do not follow these rules, then the program we write will not run properly.

Syntax writing errors usually occur when we forget some attributes such as quotes ( "), semicolon ( ;), brackets ( [{<>}]), or write incomplete commands. While it may seem simple at first glance, errors like this can take a while to find if you're not used to it.

Runtime error (runtime error)

Syntax writing errors will usually appear immediately after the application will be executed or when it will be compiled. There are types of errors that do not appear when the application is first executed, but will appear after the program is run. This error appears when an application fails to execute something by the system while the program is running.

Logic error

This type of error is the most difficult to find because it rarely shows an error message. The consequences of logical errors are calculation errors (not always mathematical). The system cannot recognize this error because the writing has followed the correct rules but because the "formula" is wrong, the result is also wrong.