I just finished writing a function that has ended up with nested code blocks something like the following:
class ... {
void Method() {
while (...) {
...
switch (...) {
while (...) {
switch (...) {
if (...) {
}
}
}
}
}
}
}
Do you find this is standard in your day-to-day coding work, or do you quickly set about trying to redesign and break up the code when you see something like this?