I am aware of the power of scripting languages within the Java platform, and I advocate it whenever possible. However it's not clear to me how much a developer can benefit from the proposed approach of programming against (scripted) interfaces.
It seems to me that the possibility of continuously changing the implementation, even at runtime (a good thing), is outbalanced by the need to apply a factory pattern explicitly for this need (a bad thing). This is even worse if you consider other viable solutions, such as developing inside IDEs which support hot code replace.
Can you suggest a real world scenario where the proposed strategy is thoroughly adopted ? |