• @xantoxis@lemmy.world
    link
    fedilink
    191 year ago

    There is actually an approach for this. Leave the cursed code in, but implement it again in the same file, from scratch, without looking at the cursed code. You’ll either unthinkingly fix the combination of conditions that led to bad code being correct, or you’ll realize why that was what you needed the whole time.

    • Rikudou_SageA
      link
      11 year ago

      More often than not you’ll actually learn that the code is never really ran and it just looks like it does something, while the real code runs somewhere entirely else.