A best Practice Question : package name for classes created by composition from a mediated View class

thomas.thorstensson's Avatar


11 Mar, 2013 12:10 PM

Hello Dear Robotlegs users,

I have a PresentationView class which has a PresentationView mediator. Simple enough the PresentationView resides in a'components' package and the mediator in a 'mediators package under 'view' package.

However the PresentationView creates some views itself by composition. I been pondering the question: What would be a suitable package name for such views created from PresentationView ?

So far I have come up with 'composed' and 'derived' ...

Any suggestions,


Thomas aka Snoopy

  1. Support Staff 1 Posted by creynders on 11 Mar, 2013 12:39 PM

    creynders's Avatar

    I tend to group sub-views/display objects in a package with the same name as the composing class, i.e. components.presentationView in your case. Or components.shared if reused in other views.

  2. 2 Posted by thomas.thorsten... on 11 Mar, 2013 12:47 PM

    thomas.thorstensson's Avatar

    I like this idea, thanks!

    Any other tenders out there?

    Happy coding!


  3. Support Staff 3 Posted by Ondina D.F. on 11 Mar, 2013 01:55 PM

    Ondina D.F.'s Avatar

    Hey Snoopy,

    +1 to creynders’ suggestion

    Happy coding to you, too.

  4. 4 Posted by thomas.thorsten... on 11 Mar, 2013 02:01 PM

    thomas.thorstensson's Avatar



    This discussion can now be closed as I per advice decided to adapt the "same name as composing class" tactical approach!


  5. Support Staff 5 Posted by Ondina D.F. on 11 Mar, 2013 02:03 PM

    Ondina D.F.'s Avatar

    Cool, closed:)

  6. Ondina D.F. closed this discussion on 11 Mar, 2013 02:03 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