Singsys blog

Write ‘Clean Code’ to make your code look more elegant, readable and easily understandable

How to write clean code


1. Practice, practice, practice. And never be satisfied with the first thing that comes to mind. Always search for better ways to write clean and correct code.
2. Improve programming skills not just by reading code, writing code, reading books, watching screenshots and more but by implementing these codes.


Use consistent naming convention in programming to easily understand the source code

In computer programming, naming convention might be considered as a set of rules for choosing the identifiers to denote variables, types and functions & methods names in source code and project documentation. The purpose for using this naming convention is only to reduce the effort needed to read and understand the source code and to also to enhance the code appearance by using appropriate and concise keys.