
In this blog post, we will discuss how to avoid errors in your programs by following the rules of language.
For example, if you are using a C-based programming language like Java or C++ and you create an error with semicolons (i.e., forgetting them), it will be detected at compile time rather than giving results that may not be what is expected.

Programs that follow the rules of languages are easier to debug and maintain. However, when programs violate those same language rules, they will be hard or impossible to find in a test environment because such violations might not appear until runtime.
Some examples include: forgetting semicolons at the end of statements (i.e., there is no; followed by an opening {), using invalid variable names like $var instead of var or smthng_wrong instead of something_wrong)
The following code illustrates how we can make sure our program follows all these constraints by inspecting it with CodeLite’s built-in error-checking tool! public static void main.