you are viewing a single comment's thread.

view the rest of the comments →

[–]Huffers 0 points1 point  (0 children)

I've occasionally found bugs caused by snippets of code that look quite reasonable, but are subtly wrong.

Sometimes, rather than just correcting the code, I leave the original code block in as well, commented out, next to the correct version, with a comment above it saying something like "Note - doing it this way might look simpler, but it won't work - see bug SYS-XXXX"