• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: number of bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: number of bugs


  • Subject: Re: number of bugs
  • From: Darrin Cardani <email@hidden>
  • Date: Sun, 26 Oct 2003 17:09:03 -0600

At 1:54 PM -0800 10/26/03, Brent Gulanowski <email@hidden> wrote:
On Sunday, October 26, 2003, at 03:09 PM, Chris Hanson wrote:
> Experienced programmers know that every line of code is an opportunity
> for more bugs, and prefer to minimize the amount of unnecessary code
> to accomplish a particular task.

I'm sorry but that is specious, since writing less code is an attribute
of OOP itself, if you use it right.

There is hard evidence which shows that Chris is right. For example, "Program Quality and Programmer Productivity" by Capers Jones lists the results of a study which showed the following error rates as the number of lines of code increased:

Proj. Size Error density
---------- -------------
< 2k loc 0-25 errors per kloc (1,000 lines of code)
2k-16k loc 0-40 errors per kloc
16-64k loc 0.5-50 errors per kloc
64k-512k loc 2-70 errors per kloc
512k loc 4-100 errors per kloc

Clearly there is a correlation between the amount of code written and the number of errors per line of code.

What you are really saying is that it saves lazy programmers the work
of doing their own software engineering.

It saves good programmers from having to do engineering that's already been done, and that they might do wrong, too. (Just because they're good doesn't mean they'll do everything perfectly! How many times have you found the source of a bug and slapped your forehead and thought, "I can't believe I made that same mistake again!"?) That frees them up to do new engineering that hasn't been done, which results in a better product for the same cost, or an equally good product for less cost.

Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: number of bugs
      • From: Chaz McGarvey <email@hidden>
    • Re: number of bugs
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Xcode bug
  • Next by Date: Re: The Problems with NSController
  • Previous by thread: Re: Xcode bug
  • Next by thread: Re: number of bugs
  • Index(es):
    • Date
    • Thread