Should I use "software defect" or "software bug"?
The "bug" word seems to be so popular that it overshadows "defect" (in search results, in tags somewhere, even Wikipedia article is called "Software bug") despite of looking jargonesque.
Is the word "bug" official term for this or it should be used only in informal occasions?
Solution 1:
The words are used interchangeably in many situations. Here are some ways in which they may have different meanings.
The term defect is more formal. I think nowadays everyone knows what a bug is, but in official standards documentation or regulated environments, you'll see defect used more often.
Bugs are usually only used to refer to software problems, but defects can apply to any part of a product: hardware, software, and even user manuals and training materials.
There's often a tendency to call something a bug only if the behavior is different than what the programmer intended. Defects have a broader use, for situations where the behavior is different than what the specifications asked for or - in some teams - what the customer actually wanted.
Solution 2:
"Defect" simply implies that the software fails to do what the customer or business representative wants it to do. This might be due to an actual "bug" (a programming mistake); but more often, it's due to some kind of communication problem between the customer or business representative, and the programming team. For example, if the customer fails to clearly express what they want, or changes their mind after the programmer has started work, then this can lead to a "defect", even though the programmer has not made an error.
In other words, a bug is a specific type of defect, but not the only type.
Occasionally, though, the two terms are used interchangeably. But usually not by programmers.
Solution 3:
To me, a bug implies something that can be fixed and will likely be fixed in a future release. A defect implies something that is hopelessly irreparable a bit worse.
Bug definitely seems to be the official term. From Wikipedia:
Use of the term "bug" to describe inexplicable defects has been a part of engineering jargon for many decades and predates computers and computer software; it may have originally been used in hardware engineering to describe mechanical malfunctions. For instance, Thomas Edison wrote the following words in a letter to an associate in 1878:
It has been just so in all of my inventions. The first step is an intuition, and comes with a burst, then difficulties arise — this thing gives out and [it is] then that "Bugs" — as such little faults and difficulties are called — show themselves and months of intense watching, study and labor are requisite before commercial success or failure is certainly reached.
Solution 4:
Bug means there is some fault somewhere in the code of the software Defect is also malfunctioning of the application due to fault in code But Defect is more appropriate a term use officially