Skip to main content
8 events
when toggle format what by license comment
Mar 14, 2015 at 20:22 comment added abl State is an arbitrarily defined abstraction, and whether it has changed or not depends on the definition of that abstraction. At the appropriate level, even the call to setChanged() is tautological since any method call changes the state of the program. Given the semantics of ConnectionFactory, however, I don't think the factory's state changes when it creates a connection. And yes, I may be overthinking it.
Mar 14, 2015 at 17:03 comment added radarbob dittos. Certainly client state changed - it now has a new/different connection. Think about your layers of abstraction - somewhere changed state. I wonder if a new connection is merely a component of a "higher perspective" state change; perhaps there is an abstraction that needs a more formal/concrete presence. Finally, mega-dittos on the observation of over-thinking pattern implementation and use.
Mar 14, 2015 at 17:02 vote accept abl
Mar 14, 2015 at 14:47 history undeleted Robert Harvey
Mar 14, 2015 at 14:47 history deleted Robert Harvey via Vote
Mar 14, 2015 at 14:46 history undeleted Robert Harvey
Mar 14, 2015 at 14:46 history deleted Robert Harvey via Vote
Mar 14, 2015 at 14:31 history answered Robert Harvey CC BY-SA 3.0