I don't think it should. If you have a small cluster of objects where you Yes, that makes sense.... 1. Blocks (i.e. anonymous functions) means that one needs not necessarily 2. If one does want a number of "finders" (as Classes), then one will Is the real question for 2 above, "what (or who) decides" which will be Finder is just an illustration of the problem, that finder class can have much more behavior in a real example, such as a DAO or a Repository would have, and blocks could't be used properly to deal with that. cheers, Vitor On Sat, Jun 10, 2017 at 8:59 AM, aryehof <[hidden email]> wrote: In SmallTalk:- |
Consider that in Java, one can only achieve polymorphic behavior across objects by using interfaces or inheritance. In Smalltalk one can achieve polymorphic behavior across objects just by having them understand the same message.
The need to have complex schemes for the wiring of objects in Java is a consequence of this. |
Yes, I can understand that, but I will have to practice more with Smalltalk to comprehend better. Still I think there are some objects used by large bits of the application that would benefit the design if they have it's creation decoupled and somehow organized, but I am convinced that a simple service locator would do the job :) On Tue, Jun 13, 2017 at 3:29 AM, aryehof <[hidden email]> wrote: Consider that in Java, one can /only /achieve polymorphic behavior across |
On Wed, Jun 14, 2017 at 3:39 AM, Vitor Medina Cruz <[hidden email]> wrote:
Keep some notes. When you get to the end and you've had a good soaking in Smalltalk, it would be good to read of how your thinking adapted on your journey from Java to Pharo. It harder to think back to what you once didn't know. cheers -ben
|
Free forum by Nabble | Edit this page |