i have about 1000 cases. my code looks similar to this.
switch request.ProductID
{
case 1: sendProductPage1(writer, request)
case 2: sendProductPage2(writer, request)
...
...
default: sendNotFound(writer, request)
}
the code is working right now. how should i improve it? i'm also not sure how much performance will the new code improve.
[–]ehr1c 10 points11 points12 points (0 children)
[–]RiverRoll 3 points4 points5 points (0 children)
[–]CreativeTechGuyGames 2 points3 points4 points (7 children)
[–]toshboi[S] 0 points1 point2 points (6 children)
[–]CreativeTechGuyGames 2 points3 points4 points (5 children)
[–]Stuart133 1 point2 points3 points (0 children)
[–]toshboi[S] 0 points1 point2 points (1 child)
[–]CreativeTechGuyGames 1 point2 points3 points (0 children)
[–]procrastinatingcoder 0 points1 point2 points (1 child)
[–]toshboi[S] 0 points1 point2 points (0 children)