comments - Documentation style -


from syllabus 1 of programming classes: "your documentation sufficient if possible read comments, without looking @ code, , explain code does."

have of heard of documentation style this? practice? seems extremely overzealous me.

code should easy follow. can achieved in number of ways:

  1. appropriate , meaningful naming
  2. commenting on difficult algorithms or complex code
  3. extensive documentation of code

appropriate documentation use 3 approaches appropriate.

however, when audience code trying understand code , assess understanding of concepts - ie in academic context, third 1 highly desirable.

all code should written , documented can understood worst detractor, when on callout @ 3 o'clock in morning because there problem production system.

at same time, excessive comments item maintained, , kept in sync code when changes made code, , comments least item maintained under change.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -