T
Tim
"Comments" does not denote fully what you or I mean. Most CSci
curricula discourage any commented text that duplicates what one can
express in code; in contrast, comments that actually convey the purpose
of the code are needed. It is the lack of good design documents that
can be addressed by proper JavaDocs. In a time of Extreme Programming
mythodology, meaningful comments are neccesary to provide design
information due to lack of complete and updated design documents. The
need for development by prototyping is more from bad, new, and unweildy
tools and frameworks rather than any effort at better software
engineering. A lack of comments leaves the follow-on programmer the
detective's task of analyzing the code, the design documents, and other
sources to determine what the author tried to do with the code.
I agree that good variable names are preferable. I cannot defend Java's
naming standards other than say they impose consistency and work with
most word combinations. Other than that I cannot see how they are
better or worse than other coding standards.
For those that support programming without design (programming by
prototyping, extreme programming, or whatever the current fad calls
it), here is a counter argument:
http://www.cs.utexas.edu/users/EWD/videos/NoorderlichtVideo.html
Another statement that is more general to all science is by Tesla that
Edison would, when asked to find a needle in a haystack, prefer to pick
up each needle one by one to see if it were the needle or hay rather
than perform a few basic calculations and determine the probable place
to find the needle. Of course, Edison made a lot more money, is better
recognized, and was one of the most proliferate patenters of US history
while Tesla did not need to employ hundreds of people and has
contributed at least as much to our every day lives as Edison.
TimJowers
curricula discourage any commented text that duplicates what one can
express in code; in contrast, comments that actually convey the purpose
of the code are needed. It is the lack of good design documents that
can be addressed by proper JavaDocs. In a time of Extreme Programming
mythodology, meaningful comments are neccesary to provide design
information due to lack of complete and updated design documents. The
need for development by prototyping is more from bad, new, and unweildy
tools and frameworks rather than any effort at better software
engineering. A lack of comments leaves the follow-on programmer the
detective's task of analyzing the code, the design documents, and other
sources to determine what the author tried to do with the code.
I agree that good variable names are preferable. I cannot defend Java's
naming standards other than say they impose consistency and work with
most word combinations. Other than that I cannot see how they are
better or worse than other coding standards.
For those that support programming without design (programming by
prototyping, extreme programming, or whatever the current fad calls
it), here is a counter argument:
http://www.cs.utexas.edu/users/EWD/videos/NoorderlichtVideo.html
Another statement that is more general to all science is by Tesla that
Edison would, when asked to find a needle in a haystack, prefer to pick
up each needle one by one to see if it were the needle or hay rather
than perform a few basic calculations and determine the probable place
to find the needle. Of course, Edison made a lot more money, is better
recognized, and was one of the most proliferate patenters of US history
while Tesla did not need to employ hundreds of people and has
contributed at least as much to our every day lives as Edison.
TimJowers