[{"data":1,"prerenderedAt":232},["ShallowReactive",2],{"term-w\u002Fworkaround":3,"related-w\u002Fworkaround":214},{"id":4,"title":5,"acronym":6,"body":7,"category":195,"description":196,"difficulty":197,"extension":198,"letter":199,"meta":200,"navigation":164,"path":201,"related":202,"seo":208,"sitemap":209,"stem":212,"subcategory":6,"__hash__":213},"terms\u002Fterms\u002Fw\u002Fworkaround.md","Workaround",null,{"type":8,"value":9,"toc":189},"minimark",[10,15,19,23,26,30,178,182,185],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A workaround is a way to avoid a problem without actually fixing it. The door is broken so you use the window. The bug still exists, but you found a way to sidestep it. Workarounds are common in enterprise software where the real fix would take months of approval.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A workaround is a temporary or alternative solution that achieves a desired result despite a known bug, limitation, or missing feature. Unlike a fix, it does not address the root cause. Workarounds accumulate as technical debt and should be documented. In APIs, workarounds often involve extra API calls, data transformations, or client-side patches for backend bugs.",[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 Bug: the library's sort() breaks on null values\n\u002F\u002F Workaround: filter nulls before sorting (not fixing the lib)\nconst sorted = items\n  .filter(item => item !== null) \u002F\u002F workaround for library bug\n  .sort((a, b) => a.name.localeCompare(b.name));\n\n\u002F\u002F TODO: remove this filter when library v3.0 is released\n\u002F\u002F Tracking issue: https:\u002F\u002Fgithub.com\u002Flib\u002Fissues\u002F1234\n","javascript","",[38,39,40,49,55,73,108,159,166,172],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","\u002F\u002F Bug: the library's sort() breaks on null values\n",[41,50,52],{"class":43,"line":51},2,[41,53,54],{"class":47},"\u002F\u002F Workaround: filter nulls before sorting (not fixing the lib)\n",[41,56,58,62,66,70],{"class":43,"line":57},3,[41,59,61],{"class":60},"spNyl","const",[41,63,65],{"class":64},"sTEyZ"," sorted ",[41,67,69],{"class":68},"sMK4o","=",[41,71,72],{"class":64}," items\n",[41,74,76,79,83,86,90,93,96,99,102,105],{"class":43,"line":75},4,[41,77,78],{"class":68},"  .",[41,80,82],{"class":81},"s2Zo4","filter",[41,84,85],{"class":64},"(",[41,87,89],{"class":88},"sHdIc","item",[41,91,92],{"class":60}," =>",[41,94,95],{"class":64}," item ",[41,97,98],{"class":68},"!==",[41,100,101],{"class":68}," null",[41,103,104],{"class":64},") ",[41,106,107],{"class":47},"\u002F\u002F workaround for library bug\n",[41,109,111,113,116,118,120,123,126,129,132,134,137,140,143,145,148,151,153,156],{"class":43,"line":110},5,[41,112,78],{"class":68},[41,114,115],{"class":81},"sort",[41,117,85],{"class":64},[41,119,85],{"class":68},[41,121,122],{"class":88},"a",[41,124,125],{"class":68},",",[41,127,128],{"class":88}," b",[41,130,131],{"class":68},")",[41,133,92],{"class":60},[41,135,136],{"class":64}," a",[41,138,139],{"class":68},".",[41,141,142],{"class":64},"name",[41,144,139],{"class":68},[41,146,147],{"class":81},"localeCompare",[41,149,150],{"class":64},"(b",[41,152,139],{"class":68},[41,154,155],{"class":64},"name))",[41,157,158],{"class":68},";\n",[41,160,162],{"class":43,"line":161},6,[41,163,165],{"emptyLinePlaceholder":164},true,"\n",[41,167,169],{"class":43,"line":168},7,[41,170,171],{"class":47},"\u002F\u002F TODO: remove this filter when library v3.0 is released\n",[41,173,175],{"class":43,"line":174},8,[41,176,177],{"class":47},"\u002F\u002F Tracking issue: https:\u002F\u002Fgithub.com\u002Flib\u002Fissues\u002F1234\n",[11,179,181],{"id":180},"when-youll-hear-this","When You'll Hear This",[16,183,184],{},"\"It's a workaround for now — we'll fix it properly next sprint.\" \u002F \"Document the workaround so nobody removes it thinking it's unnecessary.\"",[186,187,188],"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 .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .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":190},[191,192,193,194],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":180,"depth":51,"text":181},"general","A workaround is a way to avoid a problem without actually fixing it. The door is broken so you use the window.","beginner","md","w",{},"\u002Fterms\u002Fw\u002Fworkaround",[203,204,205,206,207],"Bug","Hack","Technical Debt","Patch","Refactor",{"title":5,"description":196},{"changefreq":210,"priority":211},"weekly",0.7,"terms\u002Fw\u002Fworkaround","Nwua3_R-coVAeethaFzv0guP07JqHX8QvGpoirGuAnI",[215,218,221,224,228],{"title":203,"path":216,"acronym":6,"category":195,"difficulty":197,"description":217},"\u002Fterms\u002Fb\u002Fbug","A bug is anything in your code that makes it behave wrong.",{"title":204,"path":219,"acronym":6,"category":195,"difficulty":197,"description":220},"\u002Fterms\u002Fh\u002Fhack","In coding, a hack is a clever but ugly solution that works without being pretty or proper. It is duct tape on a leaky pipe.",{"title":206,"path":222,"acronym":6,"category":195,"difficulty":197,"description":223},"\u002Fterms\u002Fp\u002Fpatch","A patch is a small update that fixes something specific without replacing the whole program.",{"title":207,"path":225,"acronym":6,"category":195,"difficulty":226,"description":227},"\u002Fterms\u002Fr\u002Frefactor","intermediate","Refactoring is cleaning and reorganizing your code without changing what it does — like tidying your room without throwing anything away.",{"title":205,"path":229,"acronym":6,"category":230,"difficulty":197,"description":231},"\u002Fterms\u002Ft\u002Ftechnical-debt","vibecoding","Technical debt is the coding equivalent of putting things on a credit card.",1776518258500]