Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between bug and failure [closed]

Tags:

terminology

I want to ask about the difference between bug and failure and error, i read that the error is mistake made by people, but i conflicted between the difference between the bug and failure. I can't know the difference exactly. Can any one help please and give simple snippet for code represents the difference. Thanks a lot.

like image 394
Computer_Engineer Avatar asked Dec 02 '25 10:12

Computer_Engineer


1 Answers

  • Bug is a programming error - not checking array bounds, ignoring error codes, multiple deletions, memory leaks, etc. fall under this general category. Errors like this require code changes to fix (there may be work-arounds that do not require code changes, though)
  • Failure is a system error - disconnection of storage, lack of network connectivity, and hardware failures are in this category. Fixing failures usually requires configuring other parts of the system, not the program itself.
  • User errors are mistakes made by users - entering values incorrectly or providing incomplete data are in this category. Errors like that are fixed by the user who uses the program without anyone else's involvement.
like image 174
Sergey Kalinichenko Avatar answered Dec 05 '25 21:12

Sergey Kalinichenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!