deja.com Please visit our sponsor
Before You Buy Help  |  Contact Us  |  My Deja  |  Logout   

 Home >> Discussions >> comp . programming
 >>  comp.programming 
DISCUSSIONS SEARCH
  Power Search 
 
 
>> Forum: comp.programming
>> Thread: Comment before code, or comment after code?
>> Message 88 of 89
Save this thread

Subject:Re: Comment before code, or comment after code?
Date:10/28/1999
Author: Carfield Yim <c8133594@comp.polyu.edu.hk>

<< previous in thread  ·  next in thread >>

Thank for all!
I have read through all message and finally I think that I should not pay to much attention on how to comment my code, indeed I should pay more attention on how to have better structure and make the code itself more easy to read and use algorithm as simple as possible.
But I don't think that prevent comment is a good idea, according to one message, no matter how good you set your varible name, it can only show you what is it, but can't tell you why we need it. Besides, comment can let us more easy to link the code with the requirement as well as illustrate the idea of design better than code.
The above is my conclusion, what do you think?
 
 
Carfield Yim wrote:
 
> As title, which one is better?
> Personally, I have draft comment during coding, and make the comment
> clear afterward, it is a good practice?

<< previous in thread  ·  next in thread >>

Unsubscribe from comp.programming
Mail this message to a friend
View original Usenet format

Messages

Message Author Date
Msg 51   Dan  10/26/1999 
Msg 52   Tom Ayerst  10/26/1999 
Msg 53   Ben Pfaff  10/26/1999 
Msg 54   Chris Stromberger  10/27/1999 
Msg 55   Dan  10/29/1999 
Msg 56   Jim McFarland  10/29/1999 
Msg 57   Dan  11/01/1999 
Msg 58   Chip  10/26/1999 
Msg 59   Jim McFarland  10/26/1999 
Msg 60   Ernie Englehart  10/26/1999 
Msg 61   randy c ford  10/26/1999 
Msg 62   Chip  10/26/1999 
Msg 63   randy c ford  10/27/1999 
Msg 64   leisner  11/07/1999 
Msg 65   Helmut Leitner  11/07/1999 
Msg 66   Ronald E Jeffries  11/07/1999 
Msg 67   Mike Mohr  11/14/1999 
Msg 68   Shaun Flisakowski  10/27/1999 
Msg 69   David Dillard  10/27/1999 
Msg 70   Peter K  10/27/1999 
Msg 71   Jim McFarland  10/26/1999 
Msg 72   wetboy  10/26/1999 
Msg 73   Jim McFarland  10/27/1999 
Msg 74   wetboy  10/27/1999 
Msg 75   Jim McFarland  10/28/1999 
Msg 76   randy c ford  10/30/1999 
Msg 77   JHawkins  10/31/1999 
Msg 78   Chris Stromberger  10/27/1999 
Msg 79   Alexei Boukirev  10/26/1999 
Msg 80   randy c ford  10/27/1999 
Msg 81   Alexei Boukirev  10/26/1999 
Msg 82   Kram  10/26/1999 
Msg 83   Markus Kohler  10/29/1999 
Msg 84   Per Strömgren  10/26/1999 
Msg 85   randy c ford  10/27/1999 
Msg 86   Hannah Schroeter  10/26/1999 
Msg 87   Ingo Wenke  10/26/1999 
» Msg 88 «  Carfield Yim  10/27/1999 
Msg 89   Martijn Meijering  10/28/1999 

Search Discussions
  For a more detailed search in Discussions go to Power Search
Search only in: comp.programming
All Deja.com
Search for:
Search  discussions

 

Please visit our sponsor
Explore More:

Upgrade Your IT career
or win $10K with 1 email

Christian Books & Music
Up to 90% off Retail!!!

Save Big on ELECTRONICS
Shop @ ETRONICS

A search engine that works
www.northernlight.com

Shop with confidence
and save at Circuit City!

Shop Deja.com for
Computing products

Join an email club
at theglobe.com

Copyright © 1995-2000 Deja.com, Inc. All rights reserved.
Trademarks · Terms and Conditions of Use · Site Privacy Statement

Advertise With Us | About Deja.com
Tires.com · Deja e-centives · StateStreetDirect · ELECTRONICS@ETRONICS · TireRack.com · Search for Jobs! JobOptions · Find your next IT Job here · Domain Registration · Never forget passwords! ·