Old examples in new robotlegs - work in progress

matej's Avatar


25 Feb, 2015 08:11 PM


I am in progress of rewriting old examples from joel into robotlegs 2 for general population, and now I am wandering with some best practices.


Take this example.

I am wondering about practice of using the mediator to save the selected author to Model.

In my experience, I would use command to do it.

so view > mediator > command > model
instead of view > mediator > model

What do you think?

  1. Support Staff 1 Posted by Ondina D.F. on 26 Feb, 2015 09:13 AM

    Ondina D.F.'s Avatar

    Hey Matej!

    That's a fantastic idea!!! Thank you for your efforts and time!

    If it's not too much work for you, make 3 versions of the example:

    • a one to one copy of the original with the models injected into the mediators
    • another similar to the first, but with models injected as interfaces
    • and a third example, where models are accessed in commands

    That way, everyone is happy ;)

    Thanks again,

  2. Ondina D.F. closed this discussion on 28 Oct, 2015 03:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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