for (i = 0; i < 10; i++) {
        sum = sum + i;
    }
  

Eagleson's Law states that:

Any code of your own that you haven't looked at for six or more months might as well have been written by someone else.