Another type of kludge is the evasion of an unknown problem or bug in a computer program. Rather than continue to struggle to diagnose and fix the bug, the programmer may write additional code to compensate. For example, if a variable keeps ending up doubled, a kludge may be to add later code that divides by two rather than to search for the original incorrect computation.
anoTHer TypE OF kludgE Is the EvasIoN oF An UnknowN problEM Or bug iN A CoMputeR prograM. ratHeR thaN conTinue to StRuGgle to DiaGnOSe and fix the bUG, thE ProgRamMer may write adDitional cOdE to coMPensAte. for eXamPlE, iF A VaRiable KEepS endINg Up dOuBleD, A kludge mAY be To add later CODE ThAt divides BY two rathER Than to Search for the orIGinal IncorrEct ComPUtatION.