Software

Tuesday, August 03, 2004

Programming Practices :- Multiple exit points from procedures

To be somewhat polite would compare the result of such a practice to a maze
with so many misleading paths that you need to go through each of them to
find out the right path that would lead me out of the maze.
That's exactly what a procedure with so many return statements
would look like. Following are the problems that we would encounter with
such a code (and so such a code would be deemed as a bad code) :-
- maintenance trouble : Debugging...which is the path that is actually causing the
trouble.
- compute the time spent in that procedure. Take the

0 Comments:

Post a Comment

<< Home