I don't see any compelling need, or benefit, to having a customized getter at all. I don't like knowing that for every view or controller I create, I either have to create a getter for it, or have one generated for it - that means I have a new function definition hanging out in memory along with each of my objects. This is wasteful.
Originally Posted by Justin Noel
There should be one single set of functions within a controller that I can use to obtain a reference to by simply passing in the same name that I used to create it.
Since views, controllers and stores only ever have one instance, this should work fine. Similarly, views and controllers should provide a getApp() method that returns a reference to the application object to which they belong, and views should have a getController(name) method that returns a reference the named controller instance.
views: [ 'MyView' ],
var myView = this.getView('MyView');
I just don't understand the need to jump through these extra hoops to generate individual getters for each object. It is wasteful of client-side resources, creates complication and confusion, encourages a bad practice, and feels like it is unnecessarily trying to mimic something from the Java world that just doesn't belong here.