Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > comment
Next programming language constructcondition    Upprogramming language construct    Previous programming language constructclass   

comment
subjectfact 
commentcan be written before writing the code2001-08-30 14:54:57.0
has purpose to describe the purpose of each class, method and variable along with any difficult-to-understand statements inside methods, and to indicated any changes to the code2001-08-30 14:54:57.0
is essential to give readers an overview and to help them understand its complexities quickly2001-08-30 14:54:57.0
is a subtopic of Programming Style Guidelines2001-08-30 14:54:57.0
is a kind of programming language construct2001-08-30 14:54:57.0
should be between about 20% and 35% of the total length of the code2001-08-30 14:54:57.0
should be written to describe each non-obvious variable2001-08-30 14:54:57.0
should be written to describe loops and conditional statements inside complex algorithms2001-08-30 14:54:57.0
should be written at the head of each non-obvious method describing its function and usage2001-08-30 14:54:57.0
should be written at the top of each class2001-08-30 14:54:57.0
should describe the purpose of the class, how it should be used, its authors and its history of modification2001-08-30 14:54:57.0
should not be about obvious things since they add clutter2001-08-30 14:54:57.0

Kinds of comment :