Timeline for Improve if-statement for multiple strings
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 5, 2013 at 15:17 | comment | added | Kinjal | the drawback would be you need to maintain that paramNames list every time there is a new request parameter | |
Nov 5, 2013 at 15:07 | comment | added | Michael Schmidt | @Kinjal: Thats true, but in my application, I always will get Strings. So for me the best answer | |
Nov 5, 2013 at 14:54 | comment | added | Kinjal | you are preparing a list of parameters of type String. This is only going to work when all your parameters are String which is fine as per current code of @dTDesign. However as soon as you start getting values other than String, it would be a problem. | |
Nov 5, 2013 at 12:36 | vote | accept | Michael Schmidt | ||
Nov 5, 2013 at 12:11 | comment | added | Michael Schmidt | This version looks good. With some changes it is perfect for me. And yes, i'm using the mvc framework but i'm not very familiar with it. I'll take a look to some documentations. Thanks | |
Nov 5, 2013 at 11:33 | review | First posts | |||
Nov 5, 2013 at 11:42 | |||||
Nov 5, 2013 at 11:17 | history | answered | nvseenu | CC BY-SA 3.0 |