[{"data":1,"prerenderedAt":185},["ShallowReactive",2],{"term-b\u002Fbug":3,"related-b\u002Fbug":168},{"id":4,"title":5,"acronym":6,"body":7,"category":149,"description":150,"difficulty":151,"extension":152,"letter":153,"meta":154,"navigation":66,"path":155,"related":156,"seo":162,"sitemap":163,"stem":166,"subcategory":6,"__hash__":167},"terms\u002Fterms\u002Fb\u002Fbug.md","Bug",null,{"type":8,"value":9,"toc":143},"minimark",[10,15,19,23,26,30,132,136,139],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A bug is anything in your code that makes it behave wrong. The word comes from 1947 when an actual moth got stuck in a computer relay and caused a malfunction. Today a bug can be a typo, a wrong calculation, a misunderstood requirement, or just bad luck. Finding and killing bugs is half the job.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A bug is a defect in software that causes it to produce incorrect results or behave unexpectedly. Bugs are categorized by type (syntax, runtime, logic, concurrency, UI) and severity (critical, major, minor). Bug tracking systems (Jira, GitHub Issues, Linear) manage bug reports through lifecycle states: open, in-progress, fixed, verified.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F The original bug — from Grace Hopper's log, Sept 9, 1947:\n\u002F\u002F \"First actual case of bug being found\"\n\u002F\u002F (A moth was found in the Mark II computer relay)\n\n\u002F\u002F Modern bug example:\nfunction isAdult(age) {\n  return age > 18; \u002F\u002F BUG: should be >= 18\n}     \u002F\u002F 18-year-olds incorrectly rejected\n","javascript","",[38,39,40,49,55,61,68,74,99,123],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","\u002F\u002F The original bug — from Grace Hopper's log, Sept 9, 1947:\n",[41,50,52],{"class":43,"line":51},2,[41,53,54],{"class":47},"\u002F\u002F \"First actual case of bug being found\"\n",[41,56,58],{"class":43,"line":57},3,[41,59,60],{"class":47},"\u002F\u002F (A moth was found in the Mark II computer relay)\n",[41,62,64],{"class":43,"line":63},4,[41,65,67],{"emptyLinePlaceholder":66},true,"\n",[41,69,71],{"class":43,"line":70},5,[41,72,73],{"class":47},"\u002F\u002F Modern bug example:\n",[41,75,77,81,85,89,93,96],{"class":43,"line":76},6,[41,78,80],{"class":79},"spNyl","function",[41,82,84],{"class":83},"s2Zo4"," isAdult",[41,86,88],{"class":87},"sMK4o","(",[41,90,92],{"class":91},"sHdIc","age",[41,94,95],{"class":87},")",[41,97,98],{"class":87}," {\n",[41,100,102,106,110,113,117,120],{"class":43,"line":101},7,[41,103,105],{"class":104},"s7zQu","  return",[41,107,109],{"class":108},"sTEyZ"," age",[41,111,112],{"class":87}," >",[41,114,116],{"class":115},"sbssI"," 18",[41,118,119],{"class":87},";",[41,121,122],{"class":47}," \u002F\u002F BUG: should be >= 18\n",[41,124,126,129],{"class":43,"line":125},8,[41,127,128],{"class":87},"}",[41,130,131],{"class":47},"     \u002F\u002F 18-year-olds incorrectly rejected\n",[11,133,135],{"id":134},"when-youll-hear-this","When You'll Hear This",[16,137,138],{},"\"File a bug report for this.\" \u002F \"I found a bug — it calculates the discount incorrectly for premium users.\"",[140,141,142],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":144},[145,146,147,148],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":134,"depth":51,"text":135},"general","A bug is anything in your code that makes it behave wrong.","beginner","md","b",{},"\u002Fterms\u002Fb\u002Fbug",[157,158,159,160,161],"Debug","Error","Logic Error","Hotfix","Technical Debt",{"title":5,"description":150},{"changefreq":164,"priority":165},"weekly",0.7,"terms\u002Fb\u002Fbug","XAOU053lDfvE7CvIrdbGgiKf8VfxynZ1HDhmlN2xQtI",[169,172,175,178,181],{"title":157,"path":170,"acronym":6,"category":149,"difficulty":151,"description":171},"\u002Fterms\u002Fd\u002Fdebug","Debugging is the process of finding and fixing the gremlins in your code. Something is broken, and you need to play detective — adding clues (console.",{"title":158,"path":173,"acronym":6,"category":149,"difficulty":151,"description":174},"\u002Fterms\u002Fe\u002Ferror","An error is when your program says 'I cannot do that' and either stops or complains loudly. It is the computer's way of telling you something went wrong.",{"title":160,"path":176,"acronym":6,"category":149,"difficulty":151,"description":177},"\u002Fterms\u002Fh\u002Fhotfix","A hotfix is an emergency patch you ship immediately to fix a critical bug in production — no waiting for the next planned release.",{"title":159,"path":179,"acronym":6,"category":149,"difficulty":151,"description":180},"\u002Fterms\u002Fl\u002Flogic-error","A logic error is the sneakiest kind of bug — the code runs perfectly fine, no crashes, no errors, but it does the WRONG thing.",{"title":161,"path":182,"acronym":6,"category":183,"difficulty":151,"description":184},"\u002Fterms\u002Ft\u002Ftechnical-debt","vibecoding","Technical debt is the coding equivalent of putting things on a credit card.",1776518261544]