From: Lorenzo Jorquera Date: 2005-04-29T20:42:56+09:00 Subject: Re: Comments Are More Important Than Code --0-1178755584-1114774940=:75642 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I don�t think that comments are useless but I do think that in most cases they can be made redundant by better code or unit tests. Would you care to provide some examples where this is not true? Stephen Kellett wrote: In message <20050428203052.4537.qmail@web32207.mail.mud.yahoo.com>, Lorenzo Jorquera writes >>How will you know if it's the test or the code that's broken? Without >>comments in the_func telling you why that exception is raised, you >>could end up fixing the wrong problem. > >When you run your unit tests very often (tipically several times an >hour) you will know exactly why the test failed. Wrong answer. You still are not documenting the "why". Comments tell you what the code *SHOULD* be doing, not *WHAT* it is doing. So many people responding to this thread seem oblivious to this obvious, yet subtle and important fact. Stephen -- Stephen Kellett Object Media Limited http://www.objmedia.demon.co.uk RSI Information: http://www.objmedia.demon.co.uk/rsi.html --------------------------------- Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, Am�rica Latina y el resto del Mundo. Vis�ta Yahoo! Noticias. --0-1178755584-1114774940=:75642--