Please don't use enums for this.
|
There are design patterns built for this kind of thing (e.g. Command pattern or even Observer pattern). Using an enum in this case seems like misuse of enums like Spooky said on page 1.
Thanks for creating this thread. Got a good deal of education from your post and some of the replies giving good feedback and alternatives.
Fairly commonly myself. Nothing quite so extensively complicated as that guy how on earth did you learn that? It's like its own programming language lol. I use it a lot for converting the format of files for instance a tabbed prices file to json which I would never actually do because that would be huge.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |