For faster navigation, this Iframe is preloading the Wikiwand page for Bug.

Bug

飛蛾係導致第一次電腦出錯嘅原兇

程式錯誤bug粵拼bak1),又譯臭蟲,係程式設計術語,指軟件或系統運行嗰時因本身出錯而造成異常情況、死機、唔見咗數據、非正常中斷等現象[1]

電腦遊戲入面,假如有隱錯冇令遊戲出現大錯時,經常會意外變成一種「秘技」,稱為 bug。

史上第一個Bug

[編輯]

1947年9月9號,Grace Hopper 發現第一個電腦Bug。當佢用Harvard二型電腦做緊嘢嗰時,成個團隊都搞唔清楚係邊度出錯。經過大家深度挖掘,發現一隻飛蛾飛咗入一部電腦而引起嘅故障,因此用「bug」(原本解做「蟲」)來稱呼。而家喺華盛頓嘅美國歷史國家博物館重可以睇到呢個遺稿。

解法

[編輯]
  • Bug 解決得到,稱為 fix。
  • Bug 解決唔到,但揾到替代方法避開個問題,稱為 workaround。
  • Severity 係 Bug 造成嘅嚴重程度。
  • Debug 指解決 bug 嘅過程(除錯)。

其他

[編輯]
  • 編譯器探測唔到嘅錯字:有陣時,編程員可能打錯字,搞到段碼做嘅嘢同佢嘅意願唔夾,而錯嘅唔係段碼嘅句法,所以個編譯器唔曉探測到個錯;舉個例,想像一個編程員想個程式計 (x + y) * z 嘅結果(計 x + y 嘅結果,再將個結果 z),但佢因為手快等嘅原因,將段碼打咗做 x + y * z(變咗做「計 y * z 嘅結果,再將個結果加落去 x 嗰度」),搞到最後計出嚟嘅結果唔啱。

睇埋

[編輯]

參考

[編輯]
  1. Ubuntu行動作業系統開放下載 但仍存在一些BUG
{{bottomLinkPreText}} {{bottomLinkText}}
Bug
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?