Helping IT community to separate the myths from reality.
Myths About Code Comments
Jason Baker gives his take on the biggest misconceptions about code comments:
Comments are free
(’When you update the code that the comment references, you usually have to update the comment as well’).
Comments make code more readable
(’by far the most pervasive myth that I’ve encountered’).
3) You should comment every function, method, class, and module (’documenting something that needs no documentation is universally a bad idea’).
Code must always be ’self documenting’
(’would you rather use a one-liner that requires a 3-line comment, or a 10-liner that requires no comments?’).”
Post a Comment
Post Comments (Atom)