Posted by Gaden 208.236.224.30 using Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) on April 10, 2000 at 04:27:01:
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.