CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Threaded View

  1. #6
    Join Date
    May 2007
    Location
    Scotland
    Posts
    1,164

    Re: Apgar score for software?

    Tools like Lint are available to tell you if they think there is a possibility that things are wrong with the code... Lint (and no doubt other tools) is not always correct though. If you want some figure on code quality you could count the number of Lint errors.

    However, as DHillard has inferred and TheCPUWizard has pointed out, this doesn't mean the code does what it is intended to do. Neither does it mean its easy to follow, well designed, well implemented or scalable. Basically, it could pass all the tests you could ever want it to, but that doesn't mean its good code, worth reusing, or more to the point, worth using at all.

    I have seen code written in my company, that passes all unit tests, doesn't give any compiler warnings, or lint errors, but is not exception safe and still leeks a ton of memory.
    Last edited by PredicateNormative; July 31st, 2007 at 12:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured