Why do People Avoid Comments?
Unfortunately, many programmers neglect to include comments in their code. Reason being:
- Lack of Skills: Solidity developers might find it challenging to explain the intent of the code in simple English language, thus they avoid comments when the code is working fine.
- Limited understanding of a specific portion of code: Sometimes solidity developers have a limited understanding of the specific part of the code that could induce the inability to explain the concerned part of the code.
- Misleading comments: Comments that are outdated or inaccurate or don’t explain correctly can lead to confusion and errors, especially while working with multiple developers on the same project.
Solidity – Comments
Comments are an important aspect of programming as they help in providing clarity and understanding to the code. They allow developers to document the code and explain its purpose, making it easier for others to read and maintain the code. Solidity, being a programming language, also supports the use of comments. They are simply added for the convenience of the programmer and anyone else who might read the code in the future.
Contact Us