Controller config option refs provides an easy way to get refereneces to views within the controller. However, there’s a catch. In some situations refs do not work as expected or cannot be used at all.
Why should we even seek an answer to this question? Everybody knows. We use them every day, they’re all around us and we cannot even imagine life without them. Well, you wouldn’t believe how many people cannot give you a definition, even if they use computers all day long.
I have received very nice private message on Sencha Forums from the user new to ExtJS whom I helped to understand the basic concepts of Ext applications. Here is the full text of the message (with his permission).
In essence, factory functions are class methods that manufacture items or other properties during the instantiation of the class. This article explains pros and cons of factory function and how to use them correctly.