• Jeff Moden (1/2/2016)


    Ed Wagner (1/2/2016)


    I'm pretty particular on the formatting of my code, for the very reasons of readability and maintainability. I can write format that'll confuse anyone, including myself, but why on earth would I let haphazardly-formatted code into production. It inhibits progress during development and later modifications, so it's a serious disservice to myself and others.

    On a related note, I also take the radical step of including comments. If nothing else, it'll tell me what I was thinking when I originally wrote it. If it's been two years since I touched it, I really benefit from seeing the overall approach and comments I left myself. I also really appreciate it when others do the same. An important point is to update the comments so they match the code.

    None of this is really controversial and shouldn't take anyone off-guard. However, it's still something many people don't do.

    Heh... I don't write comments for other people. I write them for ME because I have a major CRS problem. 😛

    Yep. Comments are for the next person. Often the next person is the one who wrote the comments. Almost as often, those comments are still gratefully received.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!