Click here to Skip to main content
15,918,596 members

Survey Results

What's more important - easily understandable code or good comments?   [Edit]

Survey period: 1 Sep 2003 to 7 Sep 2003

You would hope to get both, but given a choice, which would you take?

OptionVotes% 
Easily understandable code69066.60
Good comments34633.40



 
GeneralDocumentation is like sex... Pin
Steven J. Ackerman2-Sep-03 5:14
Steven J. Ackerman2-Sep-03 5:14 
GeneralRe: Documentation is like sex... Pin
Gary Wheeler2-Sep-03 6:27
Gary Wheeler2-Sep-03 6:27 
GeneralDepends on the code you're writing. Pin
Navin2-Sep-03 4:55
Navin2-Sep-03 4:55 
GeneralBad Language Pin
Gavin Greig2-Sep-03 3:42
Gavin Greig2-Sep-03 3:42 
GeneralRe: Bad Language Pin
Navin2-Sep-03 5:35
Navin2-Sep-03 5:35 
GeneralRe: Bad Language Pin
ColinDavies2-Sep-03 22:42
ColinDavies2-Sep-03 22:42 
GeneralRe: Bad Language Pin
Gavin Greig2-Sep-03 23:07
Gavin Greig2-Sep-03 23:07 
GeneralThis code sure is legible eh? Pin
Nish Nishant1-Sep-03 19:06
sitebuilderNish Nishant1-Sep-03 19:06 
///
/// The function takes an int as first argument 
/// Not sure what the int is supposed to be
/// The second arg is a char* and it looks as if
/// you gotta send in a pointer that points to valid memory
///
void Calculate(int y, char* s)
{
    //uncomment this later
    //int tmp = g_tot;
    //char* tmp = s;
    //ignore previous comment
    //int tmp = 100;
    int tmp = g_tot;

    //remember to add code to check g_tot later
    //sorry - going out for coffee now/ so cannot do it
    if( Parse(s, tmp) > tmp )
    {
        //Minimize(s);
        //Minimize(tmpstr);
        tmp++; //forgot why I did this; 
        //must rmber to ask Maria later

        //MessageBox(NULL,s,"before SecondParse",0);
        SecondParse(s, tmp);
        //MessageBox(NULL,s,"after SecondParse",0);
    }
    else
        *(s+tmp)++;//not sure - verify later
}



Extending MFC Applications with the .NET Framework [NW] (coming soon...)
Summer Love and Some more Cricket [NW] (My first novel)
Shog's review of SLASMC [NW]
Come with me if you want to live
GeneralRe: This code sure is legible eh? Pin
Matt Newman2-Sep-03 2:34
Matt Newman2-Sep-03 2:34 
GeneralRe: This code sure is legible eh? Pin
Navin2-Sep-03 5:36
Navin2-Sep-03 5:36 
GeneralRe: This code sure is legible eh? Pin
Taka Muraoka2-Sep-03 7:33
Taka Muraoka2-Sep-03 7:33 
GeneralRe: This code sure is legible eh? Pin
Gary Wheeler2-Sep-03 5:52
Gary Wheeler2-Sep-03 5:52 
GeneralBoth are important... Pin
J. Dunlap1-Sep-03 18:21
J. Dunlap1-Sep-03 18:21 
GeneralRe: Both are important... Pin
Matt Newman2-Sep-03 2:35
Matt Newman2-Sep-03 2:35 
GeneralSame thing Pin
Jim A. Johnson1-Sep-03 16:25
Jim A. Johnson1-Sep-03 16:25 
GeneralRe: Same thing Pin
Chris Maunder1-Sep-03 16:54
cofounderChris Maunder1-Sep-03 16:54 
GeneralRe: Same thing Pin
berndg1-Sep-03 20:16
berndg1-Sep-03 20:16 
GeneralRe: Same thing Pin
Chris Beckett2-Sep-03 3:57
Chris Beckett2-Sep-03 3:57 
GeneralRe: Same thing Pin
leppie2-Sep-03 7:46
leppie2-Sep-03 7:46 
GeneralRe: Same thing Pin
John M. Drescher2-Sep-03 16:05
John M. Drescher2-Sep-03 16:05 
GeneralRe: Same thing Pin
Wade Tingley2-Sep-03 16:40
Wade Tingley2-Sep-03 16:40 
GeneralRe: Same thing Pin
Gary Wheeler2-Sep-03 9:23
Gary Wheeler2-Sep-03 9:23 
GeneralRe: Same thing Pin
brianwelsch3-Sep-03 15:48
brianwelsch3-Sep-03 15:48 
GeneralRe: Same thing Pin
Gary Wheeler4-Sep-03 1:47
Gary Wheeler4-Sep-03 1:47 
GeneralRe: Same thing Pin
brianwelsch4-Sep-03 2:53
brianwelsch4-Sep-03 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.