> Well typing this out directly makes me think a couple of things:
> - I'm not entirely sure but can a System be part of another context? 3 Screenplays end up being some sort of sequel to each other and thus resulting in a new context
A context can play a role in another context. P
> - Why do we assign the Roles in a Context and not inside of the System. Isn't it weird to see the first scene play a girl the role of Julia and the next scene Julia ends up being played by some bad-ass hairy guy?
Happens all the time in movies, there's stunt doubles and booty
doubles and there's artistic freedom where the director experiments
with multiple actors for the same role and all other sorts of reasons.
As long as it a conscious decision it's not a matter or whether it's
weird or not but whether it yields the desired result
> If so should the RoleMethods stay inside the object instead of some sort of dejection at the end of a scene?
The RoleMethods belongs to the context the object looses those
abilities when ir's no longer playing that role
> In an ideal situation we just define the role and it methods and not really inject it but rather use
> it as some sort of "mask" so that most Actors should they fit the requirements can play the role of the Character. I.e. if we have a mask for the character Romeo it doesn't really matter who's doing the playing. Cause they always look like Romeo.
This is exactly what Marvin aims at (http://fullOO.info/Examples/Marvin)
> But what I was really wondering was am I on the road to DCI or am I missing something? Also I would really like to know how a GUI should be implemented in case one chooses only to use DCI or is DCI complementary to MVC?
I'd say it sounds like you're off to a pretty good start. There are
different ways to combine MVC and DCI and quite a few posts on the
subject here on the list amongst them a good few by Trygve and Jim
they would be worth searching for. In general they are orthogonal
concepts. Where one system operation and therefor context might
include the use of several controllers and views triggering different
steps of the use case.
If you haven't already read it I strongly suggest reading the lean
architecture book
-Rune
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/JN7NGRu2O2gJ.
To post to this group, send email to object-co...@googlegroups.com.
To unsubscribe from this group, send email to object-composit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/object-composition?hl=en.
To post to this group, send email to object-composition@googlegroups.com.
To unsubscribe from this group, send email to object-composition+unsub...@googlegroups.com.
BB4b
)To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/X-Aj1W_LjNMJ.
To post to this group, send email to object-co...@googlegroups.com.
To unsubscribe from this group, send email to object-composit...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/object-composition?hl=en.
Trygve Reenskaug mailto: try...@ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver/
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
--
Trygve Reenskaug mailto: try...@ifi.uio.no
Hi Trygve,
Thank you for your response. It did change my perspective on MVC quite some. I only know MVC from web programmers point of view. In web programming (if I'm off please correct me) the view isn't the initial from which the user interacts with the system. Rather the user calls a method on a controller which in its turn communicates with the model and tosses the model to the view.
If I understand what your saying correctly (I'm having a bit trouble understanding Squeak so I can't really verify from your example code)
DCI + MVC should look a bit like this:
- Data & Model are much a like if not entirely alike. Both represent domain information
- Context represents "Use case" and contains the interactions
- Controller creates and coordinates Views (i.e. providing a view with the correct model/data for display)
- View or GUI translates model/data to something with meaning for the user. The view also captures events and methods invoked by users (i.e. "press button")
If my understanding is correctly why is there still a place for controller to be used here? Isn't "Translate model to meaningful data" an "use" of the system thus putting it in a context? If it is it would cause the controller to be nothing more than a sort of factory producing views. That may be fine but some how it doesn't feel like the proper use for a controller. Again I'm not 100% confident about this so please correct me if needed
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/jTbhDZD6XmcJ.
To post to this group, send email to object-co...@googlegroups.com.
To unsubscribe from this group, send email to object-composit...@googlegroups.com.
p.s.
depending on website complexity, you can omit rebuilding the model. the view Role POSTs directly to the remote object.
Hi Tom,
To unsubscribe from this group, send email to object-composition+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/X-Aj1W_LjNMJ.
To post to this group, send email to object-composition@googlegroups.com.
To unsubscribe from this group, send email to object-composition+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/object-composition?hl=en.
--
Trygve Reenskaug mailto: try...@ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver/
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/jTbhDZD6XmcJ.
To post to this group, send email to object-composition@googlegroups.com.
To unsubscribe from this group, send email to object-composition+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/object-composition?hl=en.
Hi Tom,
To unsubscribe from this group, send email to object-composition+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/X-Aj1W_LjNMJ.
To post to this group, send email to object-composition@googlegroups.com.
To unsubscribe from this group, send email to object-composition+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/object-composition?hl=en.
--
Trygve Reenskaug mailto: try...@ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver/
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To view this discussion on the web visit https://groups.google.com/d/msg/object-composition/-/jTbhDZD6XmcJ.