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:
- appropriate , meaningful naming
- commenting on difficult algorithms or complex code
- 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
Post a Comment