Skip to main content
12 events
when toggle format what by license comment
Apr 12, 2016 at 19:39 history edited gnat
edited tags
Jan 15, 2013 at 11:04 vote accept Songo
Jan 9, 2013 at 11:29 history edited Songo CC BY-SA 3.0
added a link to the state pattern
Jan 9, 2013 at 4:03 history tweeted twitter.com/#!/StackProgrammer/status/288858419622973440
Jan 8, 2013 at 20:54 answer added svick timeline score: 3
Jan 8, 2013 at 19:58 comment added Euphoric How? How can you call Cancel on OrderState, when instance of state in SalesOrder is supposed to change. I think the whole model is wrong. I would like to see full implementation.
Jan 8, 2013 at 19:56 comment added Songo @Euphoric why is it weird? calling cancel() changes the state to cancelled.
Jan 8, 2013 at 19:53 comment added Euphoric I haven't read this book, but it seems weird to me that OrderState contains Cancel() and then there is Cancelled state, that is different subtype.
Jan 8, 2013 at 19:02 answer added pdr timeline score: 12
Jan 8, 2013 at 18:50 answer added Jimmy Hoffa timeline score: 4
Jan 8, 2013 at 18:34 comment added James Change OrderState to be a concrete class that throws "NotSupported" exceptions in all its methods by default?
Jan 8, 2013 at 18:30 history asked Songo CC BY-SA 3.0