Posted by Walker-san 169.244.143.19 using Mozilla/4.0 (compatible; MSIE 5.5; Windows NT) on April 10, 2000 at 07:42:47:
In Reply to: An equation to help you find bugs in a program posted by Gaden on April 10, 2000 at 04:27:01:
I'm somewhat a newbie (still getting used to the code) and yet, I haven't had many bugs in my code. In fact, almost nill
: You can use the equation to figure out how many bugs there are in your code.
: Bugs = Program size / Programming Experience
: That equation is very usefull. Program Size is the number of lines in your program and programming experience is the number of programs you've successfully written in that language without bugs.
: Lets say I'm a newbie at RPGCode (which...I am...sort of) and I've only written about 9 programs. The program I'm writting has about 40 lines.
: Bugs = 40/9
: Bugs = 4.444
: 4.444 is the standardly distributed mean with a standard deviation of 1 bug.
: So...using the statistics 68-95-99 rule
: 68% of the time I would have between 3.444 and 5.444 bugs
: 95% of the time I would have between 2.444 and 7.444 bugs
: 99% of the time I would have between 1.444 and 8.444 bugs
:
: You could also use Z-scores to fins your chances of having a certain amount of bugs, but you need a Z-table....and I don't have one with me.