程序除了写错代码出 bug 外,其他 bug 如何产生的?

作者:休闲 来源:休闲 浏览: 【 】 发布时间:2024-04-29 05:09:51 评论数:

程序除了写错代码出 bug 外,其他 bug 如何产生的?

可能性有很多。程序除写错代其中一种可能性是码出,机器里面真的何产有一个 “bug”:

一个引起 bug 的 “bug”

可以看维基百科对于这个 bug 的介绍:

Bug (engineering) - Wikipedia

The term "bug" was used in an account by computer pioneer Grace Hopper, who publicized the cause of a malfunction in an early electromechanical computer.[7] A typical version of the story is:

In 1946, when Hopper was released from active duty, she joined the Harvard Faculty at the Computation Laboratory where she continued her work on the Mark II and Mark III. Operators traced an error in the Mark II to a moth trapped in a relay, coining the term bug. This bug was carefully removed and taped to the log book. Stemming from the first bug, today we call errors or glitches in a program a bug.[8]

Hopper did not find the bug, as she readily acknowledged. The date in the log book was September 9, 1947.[9][10][11] The operators who found it, including William "Bill" Burke, later of the Naval Weapons Laboratory, Dahlgren, Virginia,[12] were familiar with the engineering term and amusedly kept the insect with the notation "First actual case of bug being found." Hopper loved to recount the story.[13] This log book, complete with attached moth, is part of the collection of the Smithsonian National Museum of American History.[10]


大意就是 1946 年的时候,几个工程师在追溯一个 bug 原因的程序除写错代时候,发现继电器上困住了一只蛾子,码出这个蛾子导致了 bug 的何产发生。

不过要注意的程序除写错代是,在这之前,码出就已经有人把程序错误称为 bug 了,何产所以不要把这个故事当成 bug 这个说法的程序除写错代起源。详细可以看维基百科。码出

何产