Timeline for Implementation of object state in an OO language?
Current License: CC BY-SA 3.0
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 1, 2016 at 16:37 | comment | added | Dunk | All the answers given so far, including the accepted answer miss the main reason that switch statements are considered bad. They don't allow adherence to the open/closed principle. | |
| Sep 1, 2016 at 12:56 | history | edited | Michael Durrant | CC BY-SA 3.0 | edited title |
| Sep 1, 2016 at 12:21 | answer | added | Simon B | timeline score: 0 | |
| Sep 1, 2016 at 12:03 | vote | accept | PythonNewb | ||
| Sep 1, 2016 at 11:38 | history | tweeted | twitter.com/StackProgrammer/status/771311383375781889 | ||
| Sep 1, 2016 at 6:17 | answer | added | JacquesB | timeline score: 2 | |
| Sep 1, 2016 at 5:04 | answer | added | candied_orange | timeline score: 16 | |
| Sep 1, 2016 at 4:53 | answer | added | Maxim Bernard | timeline score: 0 | |
| Sep 1, 2016 at 4:03 | history | edited | user22815 | CC BY-SA 3.0 | deleted 2 characters in body |
| Sep 1, 2016 at 3:58 | answer | added | Tulains Córdova | timeline score: 13 | |
| Sep 1, 2016 at 3:37 | answer | added | Joel Harmon | timeline score: 1 | |
| Sep 1, 2016 at 2:01 | answer | added | Frank Hileman | timeline score: 2 | |
| Sep 1, 2016 at 1:52 | comment | added | robert bristow-johnson | sounds like a state machine to me. object.state = object.function(object.state); | |
| Sep 1, 2016 at 1:38 | comment | added | Robert Harvey | I still think you should consider posting your code to codereview. | |
| Sep 1, 2016 at 1:35 | history | edited | PythonNewb | CC BY-SA 3.0 | added 178 characters in body; edited title |
| Sep 1, 2016 at 1:34 | comment | added | PythonNewb | Perhaps "state machine" is a bad choice of words, but yes, bascially we have a bunch of car objects which switch on their own internal state. The system can be described eloquently with a UML state diagram, which is why I titled my post as such. In hindsight, it's not the best way to describe the issue, I'll edit my post. | |
| Sep 1, 2016 at 1:32 | comment | added | Robert Harvey | Your description doesn't sound like a state machine to me; it merely sounds like a bunch of car objects, each having its own internal state. Consider posting your actual, working code to codereview.stackexchange.com; those folks are very good at providing feedback on working code. | |
| Sep 1, 2016 at 1:20 | review | First posts | |||
| Oct 1, 2016 at 1:25 | |||||
| Sep 1, 2016 at 1:20 | history | asked | PythonNewb | CC BY-SA 3.0 |