--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
To post to this group, send email to object-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/object-composition.
For more options, visit https://groups.google.com/d/optout.
I view events as one part of an interaction saying "whoever I'm interacting with do stuff" I'd prefer two roles agreeing to interact rather than the more fire and forget approach of events.
What's the gain of one of the roles in the interaction being unnamed/outside the context? Or put differently what's the gain of an interaction not being contained in a context? and is that then DCI?
So in you concrete example of MVC what stops you from having an MVC context? Or is the general consensus that Model, View and Controller are not interacting?
To unsubscribe from this group and stop receiving emails from it, send an email to object-composition+unsub...@googlegroups.com.
To post to this group, send email to object-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/object-composition.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composition+unsub...@googlegroups.com.
To post to this group, send email to object-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/object-composition.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composition+unsub...@googlegroups.com.
To post to this group, send email to object-co...@googlegroups.com.
Visit this group at https://groups.google.com/group/object-composition.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composition+unsub...@googlegroups.com.
On those events, I trigger context. So context has no thing to do with events.Events are triggers and entry points for context. Context may have many entry points(not sure it is the right way, just to avoid too many contexts, like one context per event...)
Den 10/02/2016 kl. 23.44 skrev Matthew Browne <mbro...@gmail.com>:
I still think that using trigger methods as in the shopping cart example is a valid approach, but I admit it doesn't enforce that the programmer call the trigger methods in the correct order.
Remember, the whole goal of DCI is to be able to analyze the code to see that it works correctly. Splitting the design along slices of the use case and outboarding the sequencing to something external to the Context breaks this completely. It of course can work and is kind of the way we’ve been doing things all these years. But it’s about as un-DCI-like as you can get.
Den 10/04/2016 kl. 22.36 skrev Matthew Browne <mbro...@gmail.com>:One place where I think events are definitely necessary is in the UI - that's essential complexity, as users can interact with the computer in multiple ways in different sequences (to the extent that the UI allows that).
Den 11/04/2016 kl. 15.49 skrev Matthew Browne <mbro...@gmail.com>:However, I haven't yet found a solutions I'm satisfied with that both keeps a single Context for the overall use case (which could either delegate some behavior to nested contexts, or not) and doesn't make the MVC controller part of that Context (which introduces additional coupling between the use case and the UI).
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
The reason I find the pong example interesting is that it is best viewed, I think, as several use cases. The ball’s path is one use case; the paddle’s position is a parallel (sic.) use case which ideally would block on input events, but does not, because trygve is single-threaded in the end-user computational model it provides (though it has three threads internally)
Den 11/04/2016 kl. 19.16 skrev rune funch <funchs...@gmail.com>:My model of an OO system has one object. That object can consist of a network of OO systems. in this case it might consist of three each playing their part and how they communicate with each other is defined by the one object called "the system".
The ball’s path is one use case; the paddle’s position is a parallel (sic.) use case which ideally would block on input events, but does not, because trygve is single-threaded in the end-user computational model it provides (though it has three threads internally).
On 4/11/16 12:58 PM, James O Coplien wrote:
The ball’s path is one use case; the paddle’s position is a parallel (sic.) use case which ideally would block on input events, but does not, because trygve is single-threaded in the end-user computational model it provides (though it has three threads internally).Why would blocking on input events be ideal? A useful lesson I've learned from node.js is that blocking a thread while waiting for an event is inefficient. Of course, in most cases it would be premature optimization to worry about this (node.js is, after all, concerned with massive scalability of incoming web requests).
I think there is a good discussion to be had here about how DCI and time relate. The read example is instructive because it turns an event-driven solution into something that is syntactically sequential, in line with the presumed sequential model we’re used to in current DCI implementations. The question is: can we do this trick with all events? And should this be a part of the DCI computational model? I have already found it to be an essential part of the trygve virtual machine architecture (though we still need to sort out how much of it is due to Java’s sophomoric approach to design).
Hi everyone,
I wrote some (non-compiling) trygve code as an experiment of an MVC context (Rune's idea, although he may have had a very different implementation in mind). For now, just consider it one step beyond pseudo-code, just to share the idea with you all. I thought I'd start with something simple - a counter that can either be controlled via a slider, or incremented with an "Increment" button. Maybe it's too simple to give any realistic insights but it's a place to start.
I'm not sold on this idea, and I have a number of questions about things I think I've done incorrectly, but with that slew of caveats out of the way here's some code... I think the main question is whether pursuing this approach would ultimately yield more readable code than direct or event-based communication between Model, View, and Controller. In other words, is there anything here that potentially could improve on traditional MVC?
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
Hi Egon,
I think your version is simpler mainly because it doesn't show the rendering code (graphics in trygve are currently pretty low-level), but it looks like this version also lacks any updating from the Model to the View, i.e. it would not update the slider position when the Increment button is pressed. Putting UI methods in the Counter role is interesting - the model object playing the role of a View (actually 2 Views). Anything else you were aiming to demonstrate?