Tuesday, March 22, 2011

Keep your code readable

Sorry but I still don't get it ....


public void doSomething(Vector items) {
int j = 0;
while (j < items.size()) {
// 50 lines of code
if (0 == j && 1 < items.size()) {
break;
}
// 50 lines of code
j += (j + 1) == items.size() && 1 < items.size() ? -j : 1;
}
}

No comments:

Post a Comment