P
Profetas
Hi,
Nested statements helps to generate complex source code,
what is the nesting limit that you normally consider?
I know that the Halsted and McCabe analyses can define the acceptable
level, but in your personnel point of views what is the limit before you
re-code the block into multiple blocks
a 3 level nesting example
If (z is true)
while (x < Y )
begin
if (z==x)
......
else
.......
end if
end
end
else
while (x < Y )
begin
if (z==x)
......
else
.......
end if
end
end
end if
I think that 3 level sometimes 4 is acceptable.
but I was wondering would you restrict it to 3 or 4?
is there anyway to avoid this excluding the creation of new functions?
Thanks
Nested statements helps to generate complex source code,
what is the nesting limit that you normally consider?
I know that the Halsted and McCabe analyses can define the acceptable
level, but in your personnel point of views what is the limit before you
re-code the block into multiple blocks
a 3 level nesting example
If (z is true)
while (x < Y )
begin
if (z==x)
......
else
.......
end if
end
end
else
while (x < Y )
begin
if (z==x)
......
else
.......
end if
end
end
end if
I think that 3 level sometimes 4 is acceptable.
but I was wondering would you restrict it to 3 or 4?
is there anyway to avoid this excluding the creation of new functions?
Thanks