Tuesday, June 26, 2012

types of computer bugs


Arithmetic bugs

Logic bugs

Syntax bugs

  • Use of the wrong operator, such as performing assignment instead of equality test. For example, in some languages x=5 will set the value of x to 5 while x==5 will check whether x is currently 5 or some other number. In simple cases often warned by the compiler; in many languages, deliberately guarded against by language syntax

Resource bugs

Multi-threading programming bugs

Interfacing bugs

  • Incorrect API usage
  • Incorrect protocol implementation
  • Incorrect hardware handling

Performance bugs

Teamworking bugs

  • Unpropagated updates; e.g. programmer changes "myAdd" but forgets to change "mySubtract", which uses the same algorithm. These errors are mitigated by the Don't Repeat Yourself philosophy.
  • Comments out of date or incorrect: many programmers assume the comments accurately describe the code
  • Differences between documentation and the actual product


My Famous Blog List