© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. SarcarSimple and Efficient Programming with C# https://doi.org/10.1007/978-1-4842-7322-7_3

3. Wise Use of Code Comments

Vaskaran Sarcar1  
(1)
Kolkata, West Bengal, India
 

Comments help you understand other people’s code. They can describe the program logic. Expert programmers are particular about comments, however. They do not like to see unnecessary comments, for various reasons, which we will discuss. You may or may not agree with all these points of view. The different case studies included in this chapter can help you decide whether to put a comment in your application.

Recap

It is standard practice to use comments in your program. The C# compiler ignores ...

Get Simple and Efficient Programming with C#: Skills to Build Applications with Visual Studio and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.