AS3 Signals, past tense and present
Hello Dear Robotlegs users !
File this question under "Best Approach".
I have a Signal (past tense) in a View which updates a Mediator and the Mediator dispatches a Signal (present tense) which updates a Command. So far so good as this past and present division makes sense.
However, I also want the model to dispatch a Signal once the Value Object been updated. It seems to me good practice to make that Signal past tense as well?
For example:
The Signal from the mediator is named AddItem;
The Signal from the model once the Value Object been updated is
named AddItemUpdated;
Many Thanks
Thomas, over a medium sized cup of latte
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Ondina D.F. on 22 Oct, 2012 02:39 PM
Hey Thomas,
I’d say:
ItemAdded
or
ItemUpdated (for a single item)
or
ItemsUpdated (if you add an item to a collection)
Ondina
2 Posted by thomas.thorsten... on 22 Oct, 2012 03:18 PM
Thats fine , thanks for the feedback, seems I was moving along the right lines.
Well, goodbye for now, see you next time!
Thomas
Support Staff 3 Posted by Ondina D.F. on 22 Oct, 2012 03:36 PM
See you:)
Ondina D.F. closed this discussion on 22 Oct, 2012 03:36 PM.