I heard that it is not good style to change a list which you are iterating over within the iteration.
Example (pseudo code):
for (int i = 0; i < someList.length(); i++) {
someList.getAt(i).doSomething();
}
Why is that? Could there be any side effects?