Skip to main content

Timeline for Switch case statement refactoring

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Jan 26, 2012 at 17:42 comment added pstrjds Wish I could upvote more than once. Enums are far more readable than magic numbers and if the code can be refactored to just use a single enum value then you end up with the clear ToString operation on the value itself, no conditional parsing needed. My first thought when reading the code was Enum.
Jan 20, 2012 at 15:24 history edited Lars-Erik CC BY-SA 3.0
clarifying that I presume that refactoring is possible
Jan 20, 2012 at 11:49 history answered Lars-Erik CC BY-SA 3.0