Interviews - C# Corner

Santosh Kumar Adidawarpu
Are Comment GOOD or BAD?
By Santosh Kumar Adidawarpu in .NET onNov 16 2017
  • Gajendra Jangid
    Feb, 2018 5

    there is no issue for comment............it used to increase the readability of our code...

    • 1
  • Santosh Kumar Adidawarpu
    Nov, 2017 16

    Usually we write comments for each block of code for the uses of it. If there is a need to write comment for your block of code, it is probably the written code is bad. And even it is very difficult to write comment for each block of code, and it is not good practice because it increases the unused quantity. Good code should be understandable to everyone without reading any type of comments. Good coding style is about storing all necessary information to understand the problem in code.In a programming style, there is a concept of “self-describing source code” which is a common descriptor for the written source code that follows certain loosely defined conventions for naming and structure. The main goal for self-describing is to make source code easier to read and understand, so that it is very easy to maintain or extend the existing code.

    • 1
  • Bidyasagar Mishra
    Jul, 2019 12

    good

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS