When reviewing, I sometimes encounter this kind of loop:
i = begin while ( i != end ) { // ... do stuff if ( i == end-1 (the one-but-last element)
I came to a realization that when I put special cases in a for loop, I'm usually being too clever for my own good.