Timeline for How to refactor multiple if statements?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:41 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Apr 9, 2014 at 5:01 | vote | accept | tesicg | ||
Apr 7, 2014 at 12:24 | comment | added | Kami | @tesicg It is a point for consideration, as the name of the constant is more descriptive then the string values. If this value is to be used at multiple locations, then it is easier to refractor the code at a later point. I have updated the answer to include a sample. | |
Apr 7, 2014 at 12:21 | history | edited | Kami | CC BY-SA 3.0 |
added 399 characters in body
|
Apr 7, 2014 at 11:42 | comment | added | tesicg | Why should various cases be converted to const values? | |
Apr 7, 2014 at 11:11 | vote | accept | tesicg | ||
Apr 9, 2014 at 5:01 | |||||
Apr 7, 2014 at 10:54 | history | answered | Kami | CC BY-SA 3.0 |