Original Post
So I have this course "Information and Program Structures" and it's basicly another one of those courses involving Java and OOP, and with one of those Extremely Hardcore Object Oriented Programming professors. So he said: "A double loop is UNREADABLE! you make a seperate class for the outside and inside loop". In other words, he finds this unreadable:
for(int x = 0; x < width; x++)
for(int y = 0; y < height; y++)
{
drawPixel(x, y, image[x][y]);
}
and wants instead to see two classes: one for the first loop, and one for the second loop!!! WTF is up with that? Has anyone ever heard that a double loop is unacceptable in OOP and should be split into two different classes? Can you imagine how FREAKING SLOW this would be for the inner loop? That would make OOP programs 100 times slower than non OOP ones, and that certainly isn't the case! OOP professers FRUSTRATE THE HELL OUT OF ME.