I'm in the habit of marking twisty, head-bending sections of code with a comment like:
// here be dragons
Ideally I'll get back to that section and clean it up, but meanwhile...