language agnostic - Upper limit of bugs in a given program -
Is there a limit on the number of bugs present in a given program? If the number of instructions is known, can someone say that the program can not be more than 'N'? For example, how many bugs might be in the following functions?
Double Calci Interest (Double Amount) {Return- O.07 / zodiac; } A parser will count four words in the
function, and I can count these errors:
- Wrong number syntax
- Inaccurate
- Potentially divided by zero
Obviously not a number of bugs (business requirements error)
If the bug was not found by the "a requirement" " program, the bug There is no limit on the number of (per line or other) number, because there is no limit on the number of requirements.
Print "Hello World"
There can be one million bugs in it, it is not making a pink elephant. I leave it to 999999 to meet other requirements which are not satisfied with this program. Land.
Comments
Post a Comment