Solved

Bug Fixing

Posted on 2003-11-17
5
375 Views
Last Modified: 2010-04-17
hi experts,
       What is a bug?, and What is known as Bug Fixing?. plz explain briefly.

Thanks,
DVR
0
Comment
Question by:RagavanSP
  • 3
  • 2
5 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9762395
Hi RagavanSP,

A bug is an error in a program which manifests itself in erroneous behaviour of the program... The process of removing a bug is called bug fixing

Cheers!
Sunny:o)
0
 

Author Comment

by:RagavanSP
ID: 9762421
Hi Sunny,
       Thanks for ur post. And i am not cleared with ur answer. Plz tell me more.

Thanks,
DVR
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9762428
bug
<programming> An unwanted and unintended property of a program or piece of hardware, especially one that causes it to malfunction. Antonym of feature. E.g. "There's a bug in the editor: it writes things out backward." The identification and removal of bugs in a program is called "debugging".

Admiral Grace Hopper (an early computing pioneer better known for inventing COBOL) liked to tell a story in which a technician solved a glitch in the Harvard Mark II machine by pulling an actual insect out from between the contacts of one of its relays, and she subsequently promulgated bug in its hackish sense as a joke about the incident (though, as she was careful to admit, she was not there when it happened). For many years the logbook associated with the incident and the actual bug in question (a moth) sat in a display case at the Naval Surface Warfare Center (NSWC). The entire story, with a picture of the logbook and the moth taped into it, is recorded in the "Annals of the History of Computing", Vol. 3, No. 3 (July 1981), pp. 285--286.

The text of the log entry (from September 9, 1947), reads "1545 Relay #70 Panel F (moth) in relay. First actual case of bug being found". This wording establishes that the term was already in use at the time in its current specific sense - and Hopper herself reports that the term "bug" was regularly applied to problems in radar electronics during WWII.

Indeed, the use of "bug" to mean an industrial defect was already established in Thomas Edison's time, and a more specific and rather modern use can be found in an electrical handbook from 1896 ("Hawkin's New Catechism of Electricity", Theo. Audel & Co.) which says: "The term "bug" is used to a limited extent to designate any fault or trouble in the connections or working of electric apparatus." It further notes that the term is "said to have originated in quadruplex telegraphy and have been transferred to all electric apparatus."

The latter observation may explain a common folk etymology of the term; that it came from telephone company usage, in which "bugs in a telephone cable" were blamed for noisy lines. Though this derivation seems to be mistaken, it may well be a distorted memory of a joke first current among *telegraph* operators more than a century ago!

Actually, use of "bug" in the general sense of a disruptive event goes back to Shakespeare! In the first edition of Samuel Johnson's dictionary one meaning of "bug" is "A frightful object; a walking spectre"; this is traced to "bugbear", a Welsh term for a variety of mythological monster which (to complete the circle) has recently been reintroduced into the popular lexicon through fantasy role-playing games.

In any case, in jargon the word almost never refers to insects. Here is a plausible conversation that never actually happened:

"There is a bug in this ant farm!"

"What do you mean? I don't see any ants in it."

"That's the bug."

[There has been a widespread myth that the original bug was moved to the Smithsonian, and an earlier version of this entry so asserted. A correspondent who thought to check discovered that the bug was not there. While investigating this in late 1990, your editor discovered that the NSWC still had the bug, but had unsuccessfully tried to get the Smithsonian to accept it - and that the present curator of their History of American Technology Museum didn't know this and agreed that it would make a worthwhile exhibit. It was moved to the Smithsonian in mid-1991, but due to space and money constraints has not yet been exhibited. Thus, the process of investigating the original-computer-bug bug fixed it in an entirely unexpected way, by making the myth true! - ESR]

bug fix
<programming> A change to a program or system intended to permanently cure a bug. Often a fix for one bug inadvertantly introduces new bugs, hence the need for careful forethought and testing.


http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?bug
http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?bug+fix
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 50 total points
ID: 9762455
actually bug is nothing but an error in a program e.g. If I have to write a program in C for adding two numbers and I write it as

#include <stdio.h>

int main ()
{
      int a,b;

      a = 5;
      b = 6;

      printf ( "%d\n", a - b );
}

there is an error in the program ... it will output -1 in place of 11 ... the print statement should be using a + b in place of a - b ... this is a bug... Realizing this, if I cahnge this program to

#include <stdio.h>

int main ()
{
      int a,b;

      a = 5;
      b = 6;

      printf ( "%d\n", a + b );
}

then what I did was bug fixing ... another name for removing errors, thats all
0
 

Author Comment

by:RagavanSP
ID: 9762773
hey cool..... Just explain ur own words yaar plz.

Thanks,
DVR
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scores100 challenge 3 84
countAbc challenge 9 49
wordcount challenge 11 78
silent install of security banner via msiexec command 4 52
This is an explanation of a simple data model to help parse a JSON feed
A short article about problems I had with the new location API and permissions in Marshmallow
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now