Re: [Pharo-users] [Modeling with Pharo] How to model a simple human interaction.
Your using an object-oriented language, why not use an object /domain model/? Consider that Kristen Nygaard stated that an object-oriented "program execution is regarded as a physical model, simulating the behavior of either a real or imaginary part of the world." By physical model, he really is meaning a "direct model" where you /directly /represent the concepts of your problem domain as objects that interact with each other. Sure, you could use a state machine, but why build a model (your domain problem) on top of a model (a state machine) using a paradigm intended to support a different way. State machines are a favored way to model process and state in functional programming. A domain model would separate the user interaction from your domain problem itself. You would model an Order that knows a User and one or more Images. Anyway, hopefully some food for thought. -- Aryeh -- View this message in context: http://forum.world.st/Modeling-with-Pharo-How-to-model-a-simple-human-interaction-tp4937293p4950766.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Wiring objects, IoC and Service Locator
In SmallTalk:- 1. Blocks (i.e. anonymous functions) means that one needs not necessarily implement a /Class/ (MovieFinder), in order to vary alternative behavior, unlike Java (before 8). 2. If one does want a number of "finders" (as Classes), then one will typically see one "injected" (constructor or method injection), where each understands some common "find" message. Is the real question for 2 above, "what (or who) decides" which will be injected? -- View this message in context: http://forum.world.st/Wiring-objects-IoC-and-Service-Locator-tp4949280p4950768.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
[Pharo-users] Rewriting question
Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how do i make it invisible for that part of the systembrowser? and btw where are the rules collected for that part? werner
Re: [Pharo-users] Rewriting question
On 06/10/2017 03:37 PM, werner kassens wrote: Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how do i make it invisible for that part of the systembrowser? and btw where are the rules collected for that part? werner i should add that it only shows up after i used it. werner
[Pharo-users] how to open an pharo4 image on macOs 10.12.5
Hi, I cannot figure out how to open an old pharo4 image (downloaded from pharocloud) on macOs Sierra. Is there a usable vm? Johannes
Re: [Pharo-users] Rewriting question
On 06/10/2017 04:07 PM, werner kassens wrote: On 06/10/2017 03:37 PM, werner kassens wrote: Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how do i make it invisible for that part of the systembrowser? and btw where are the rules collected for that part? werner i should add that it only shows up after i used it. werner and i use this way: b:=MyRBTransformationRule new runOnEnvironment: a. b builder changes do:[:r|r execute]. and afterwards MyRBTransformationRule also appears in the lower SystemBrowser pane if applicable.