Tuesday, April 22, 2008

refactoring and spaghetti code

from engineering experience:

- Using map instead of repeating calls for function with more than two parameters looks bad and unmaintainable for number of calls 5 or less.

- Using dynamic SQL for creation of similar tables , describing same parts in while loop looks bad if number of tables less than 4.

Of cause you have not use this tech's if the code is evolving and probably would be changed (or it is permanent solution).

No comments: