[Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
Hello, Is there a book / tutorial/ challenges that I can use to become a expert in Pharo ? Roelof

Re: [Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
On Fri, Nov 7, 2014 at 6:01 PM, Roelof Wobben <r.wob...@home.nl> wrote: Hello, Is there a book / tutorial/ challenges that I can use to become a expert in

Re: [Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
stackoverflow. You dont need to be expert , just someone that finds pharo enjoyable and useful.  On Fri, Nov 7, 2014 at 7:17 PM, Roelof Wobben <r.wob...@home.nl> wrote: Thanks.

Re: [Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
By Example... it should give you everything to get you started. You can download it here http://pharobyexample.org/ Peter On Fri, Nov 7, 2014 at 7:13 PM, Roelof Wobben <r.wob...@home.nl>

Re: [Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
tutorials. if you got Pharo 3 or 4 , finder should be in the tools section of world menu.  On Fri, Nov 7, 2014 at 8:13 PM, Roelof Wobben <r.wob...@home.nl> wrote: oke, are there books / tutoria

Re: [Pharo-users] next sttep after the example tutorial

2014-11-07 Thread Roelof Wobben
module ?  On Fri, Nov 7, 2014 at 10:45 PM, Roelof Wobben <r.wob...@home.nl> wrote: Thanks, I can see a choice finder but as far as I can see I cannot use it for m

[Pharo-users] 64 bit version

2014-03-29 Thread Roelof Wobben
Hello, Is there a 64 bit version of Pharo. I use a 64 bit version without the 32 bit libraries so no multilib Roelof

Re: [Pharo-users] 64 bit version

2014-03-29 Thread Roelof Wobben
no such thing. Fortunately most open source libraries out there still compile for 32 bit so you should not experience any major issues.  On Sat, Mar 29, 2014 at 3:03 PM, Roelof Wobben <r.wob...@home.nl> wrote:

[Pharo-users] example does not work

2014-03-29 Thread Roelof Wobben
Hello, I have downloaded version2 on Windows 7. Now Im following chapter 1 and have to type BouncingAtomsMorph new openInWorld and then choose do it. But instead of seeing bouncing balls I see a message that BouncingAtomsMorph unknown variable. How to make it work ? Roelof

Re: [Pharo-users] 64 bit version

2014-03-29 Thread Roelof Wobben
kilon alios schreef op 29-3-2014 16:07: what "pure" means ? as far I know a lib can be either 64 or 32 bit , but not both. Yes you will need the 32 bit version to work it with pharo, of course you still going to need a FFI like nativeboost or to write a VM plugin to get it to work from inside P

Re: [Pharo-users] example does not work

2014-03-29 Thread Roelof Wobben
p...@highoctane.be schreef op 29-3-2014 16:36: Get the morph examples in the pharoextras smalltallhub repo. Some please point the correct location as I am on a mobe. Thanks, Can then also someone tell me how I can load the examples. I just begin with smalltalk so I have a lot to learn. R

Re: [Pharo-users] 64 bit version

2014-03-29 Thread Roelof Wobben
Pharo4Stef schreef op 29-3-2014 16:02: no yet. Planned for the end of the year. Stef Hello, Is there a 64 bit version of Pharo. I use a 64 bit version without the 32 bit libraries so no multilib Roelof Thanks, then I have to be patience to run Smalltalk on my 64 bit box. Roelof

Re: [Pharo-users] example does not work

2014-03-29 Thread Roelof Wobben
Nicolai Hess schreef op 29-3-2014 17:44: 2014-03-29 16:36 GMT+01:00 p...@highoctane.be : Get the morph examples in the pharoextras smalltallhub repo. Some pl

[Pharo-users] where can I find the prefences so I make the meta-click workable

2014-03-29 Thread Roelof Wobben
Hello, According to the Pharo by exampkle tutorial I have to do system > preferences to see the menu where I can change the keyboard to make a meta-click work, But there is no preferences choice. I have looked at system > settings > system but also there no keyboard. Does anyone know where t

[Pharo-users] Cannot find the method and Class window

2014-03-29 Thread Roelof Wobben
Hello, According to the tutorial im following these schould be in the world menu. But on 2.0 I cannot find them. Where can I find them. At this moment, it's a rocky start of Pharo. Roelof

Re: [Pharo-users] Cannot find the method and Class window

2014-03-29 Thread Roelof Wobben
Esteban Lorenzano schreef op 29-3-2014 19:58: Hi, you are using incorrect version of pharo. to follow the Pharo by Example book you need to download the right version: http://pharobyexample.org/image/PBE-O

Re: [Pharo-users] Cannot find the method and Class window

2014-03-29 Thread Roelof Wobben
Esteban Lorenzano schreef op 29-3-2014 20:27: On 29 Mar 2014, at 16:23, Roelof Wobben <r.wob...@home.nl> wrote: Esteban Lorenzano schreef op 29-3-2014

Re: [Pharo-users] example does not work

2014-03-29 Thread Roelof Wobben
-3-2014 20:52: This works form me in Pharo 2: 2014-03-29 18:25 GMT+01:00 Roelof Wobben <r.wob...@home.nl>: Nicolai Hess schreef op 29-3-2014

Re: [Pharo-users] 64 bit version

2014-03-29 Thread Roelof Wobben
Pharo4Stef schreef op 29-3-2014 21:07: Pity. You know there is no magic powder. We are already really grateful that eliot is pushing the vm work. 

Re: [Pharo-users] Cannot find the method and Class window

2014-03-29 Thread Roelof Wobben
Esteban Lorenzano schreef op 29-3-2014 21:07: both are in the world menu (that you get it by right clicking on the world canvas).  1) class browser is the first option (“class browser”) 2) method finder is in “tools”, then “met

Re: [Pharo-users] example does not work

2014-03-29 Thread Roelof Wobben
Pharo4Stef schreef op 29-3-2014 21:12: do not hesistate to ask questions. and have fun :) stef Thanks, I can find the interactive tutorial on the help. But how can I start it on 2.0 Roelof

Re: [Pharo-users] example does not work

2014-03-30 Thread Roelof Wobben
Ben Coman schreef op 30-3-2014 4:59: Roelof Wobben wrote: p...@highoctane.be schreef op 29-3-2014 16:36: Get the morph examples in the pharoextras smalltallhub repo. Some please point the correct location as I am on a mobe. Thanks, Can then also someone tell me how I can load the

[Pharo-users] Loop problem on Dr Stef

2014-03-30 Thread Roelof Wobben
Hello, When I select this part: 1 to: 100 do: [:i | Transcript show: i asString; cr ]. And do print it. I only see 1 where I expected to see all the numbers from 1 till 100. What went wrong ? Roelof

Re: [Pharo-users] Loop problem on Dr Stef

2014-03-30 Thread Roelof Wobben
: Hello, You should open Transcript, and than do it, instead of print it. Mark 2014-03-30 14:45 GMT+03:00 Roelof Wobben <r.wob...@home.nl>: Hello,

[Pharo-users] writing my own method problem .

2014-03-30 Thread Roelof Wobben
Hello, I have to make my own method but when I enter this: testShout self.assert: ( 'Do not panic' shout = "DO NO PANIC") The editor makes this : testShout self. Nothing more expected ->assert: ( 'Do not panic' shout = "DO NO PANIC") And I do not get a message that shout does not exist.

Re: [Pharo-users] writing my own method problem .

2014-03-30 Thread Roelof Wobben
Esteban Lorenzano schreef op 30-3-2014 16:31: you are using a dot: self DOT assert: is wrong syntax. you need just a space: self assert: Esteban On 30 Mar 2014, at 11:26, Roelof Wobben wrote: Hello, I have to make my own method but when I enter this: testShout self.assert: ( 'D

[Pharo-users] still failing test

2014-03-30 Thread Roelof Wobben
Hello, I trying to make the make you own method work. So I first I added this : testShout self assert: ('Don''t panic' shout = 'DON""T PANIC!') After that I added this as described in the book. shout ^ self asUppercase. "!" But still the testrunner gives that there is a failing test on t

Re: [Pharo-users] still failing test

2014-03-30 Thread Roelof Wobben
Ben Coman schreef op 30-3-2014 20:12: Roelof Wobben wrote: Hello, I trying to make the make you own method work. So I first I added this : testShout self assert: ('Don''t panic' shout = 'DON""T PANIC!') After that I added this as described

Re: [Pharo-users] still failing test - spoiler/answer

2014-03-30 Thread Roelof Wobben
Ben Coman schreef op 31-3-2014 2:44: Ben Coman wrote: Roelof Wobben wrote: Ben Coman schreef op 30-3-2014 20:12: Roelof Wobben wrote: Hello, I trying to make the make you own method work. So I first I added this : testShout self assert: ('Don''t panic' shout = &#x

[Pharo-users] Pharo 1

2014-03-31 Thread Roelof Wobben
Hello, Im busy with book 1 and I work with version 1 Now this morning I did some changes and save it under a name. But when I just start up Pharo I see the pharo1.img again without my changes. And I also do not see a menu where I can choose which image I want to use as version 2 of Pharo does.

Re: [Pharo-users] Pharo 1

2014-03-31 Thread Roelof Wobben
Stephan Eggermont schreef op 31-3-2014 14:37: Hello Roelof, That is a disadvantage of having a one-click that opens everywhere. It contains a script telling the executable which image to open. You should be able to find your image, and drag it onto the vm to open. If you just gave it a different

Re: [Pharo-users] Pharo 1

2014-03-31 Thread Roelof Wobben
Stephan Eggermont schreef op 31-3-2014 15:35: Two things come to mind: - method names start with lowercase CellsPerSide you are right, I mistyped that one. I wil change it - did you make cellsPerSide into a separate method? You mean choose all and then type in the text. nope, if that is t

Re: [Pharo-users] Pharo 1

2014-03-31 Thread Roelof Wobben
Camille Teruel schreef op 31-3-2014 15:49: On 31 mars 2014, at 15:43, Roelof Wobben wrote: Stephan Eggermont schreef op 31-3-2014 15:35: Two things come to mind: - method names start with lowercase CellsPerSide you are right, I mistyped that one. I wil change it - did you make

[Pharo-users] challenges

2014-03-31 Thread Roelof Wobben
Hello, I almost get book 1 ready. Now I wonder if there are challenges so I can practise more in Smaltalk. I know I learn the best by doing things and not just read about it. I like the most if the challenges can start at simple and get more complex . As example what I mean is 99 prolog/python

Re: [Pharo-users] challenges

2014-03-31 Thread Roelof Wobben
Ben Coman schreef op 31-3-2014 18:30: Roelof Wobben wrote: Hello, I almost get book 1 ready. Now I wonder if there are challenges so I can practise more in Smaltalk. I know I learn the best by doing things and not just read about it. I like the most if the challenges can start at simple and

Re: [Pharo-users] Pharo 1

2014-04-01 Thread Roelof Wobben
Pharo4Stef schreef op 1-4-2014 8:22: On which os are you? The new image on mac should be under the ressources folder and the script just opens the default one. Im on Windows 7 at the moment. Roelof

[Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Hello, Im on this page now: http://squeak.preeminent.org/tut2007/html/017.html I do not understand one thing. Where do I put the initialize "script" When I put it on the initializeActiveSegments then initialize get not found. Or must I make a seperate protocol named ActiveSegments for it. If

Re: [Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Camille Teruel schreef op 1-4-2014 15:08: On 1 avr. 2014, at 14:52, Roelof Wobben wrote: Hello, Hello, Im on this page now: http://squeak.preeminent.org/tut2007/html/017.html I do not understand one thing. Where do I put the initialize "script" #initialize is not a script, it&

Re: [Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Camille Teruel schreef op 1-4-2014 16:34: On 1 avr. 2014, at 16:21, Roelof Wobben <r.wob...@home.nl> wrote: Camille Teruel schreef op 1-4-2014 15:08: On 1 avr. 2014, at 14:52,

Re: [Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Nicolai Hess schreef op 1-4-2014 16:44: 2014-04-01 16:21 GMT+02:00 Roelof Wobben <r.wob...@home.nl>: Camille Teruel schreef op 1-4-2014

Re: [Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Ben Coman schreef op 1-4-2014 17:13: Camille Teruel wrote: On 1 avr. 2014, at 16:50, Roelof Wobben <r.wob...@home.nl> wrote: Nicolai Hess s

[Pharo-users] create instance var accesors from menu (Pharo 3.0)

2014-04-01 Thread Roelof Wobben
Hello, On squeeze 3.9 you can make them with a menu. Is there a simular way I can do the same in Pharo 3.0 ? Roelof

Re: [Pharo-users] lasergame question

2014-04-01 Thread Roelof Wobben
Mark Rizun schreef op 1-4-2014 18:12: Hello, Roelof! Stef is partly right. I had implemented Laser Game but on Squeak, not Pharo. If you have any questions, ask me and I will try to help you. Mark First question : I had a working test. I saved it to my hard disk. Closed Pharo . re open it

[Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Hello, On the first part I have to make a class named BlankCell which is a subclass of TestCase. So far no problem. But when you are on the MirrorCell part BlankCell must be a subclass of Cell. But then the tests will fail because should: cannot be found. The manual says nothing about that

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Camille Teruel schreef op 2-4-2014 13:40: On 2 avr. 2014, at 13:21, Roelof Wobben <r.wob...@home.nl> wrote: Hello, On the first part I have to make a class named BlankCell which

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 13:51: Hi, You probably misunderstood the task.  On the first part I have to make a class named BlankCell which is a su

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 14:22: And only on this method the test fail on should: testCellOnState   | cell |   cell := BlankCell

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 14:58: Does this test fails to assert something or it throws you some error? Like I said earlier it fails with this message: MessageNotUnderstood: BlankCell >> should. Which I find wierd because I use should: also on the other test methods off BlankCell and n

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 15:07: Could you give me the code of test that fails? I can but I did already. The code is : testCellOnState | cell | cell := BlankCell new. cell should: [ cell isOff ]. cell shouldnt: [ cell isOn ]. And this is a code which succeeced

Re: [Pharo-users] lasergame problem with Blankcell

2014-04-02 Thread Roelof Wobben
Mark Rizun schreef op 2-4-2014 15:16: The mistake is simple. You have to write as follows (just replace cell for self in two lines before should and shouldnt): testCellOnState       | cell |  

[Pharo-users] leansleft problem

2014-04-02 Thread Roelof Wobben
If I understood everything well on page 26 my Cell initialize must look like this: initialize super initialize. self initializeActiveSegments. self initializeExitSides. self leanleft. The Blankcell initialize must look like this : initialize super initialize. self initi

Re: [Pharo-users] leansleft problem

2014-04-02 Thread Roelof Wobben
Nicolai Hess schreef op 2-4-2014 17:05: 2014-04-02 16:40 GMT+02:00 Roelof Wobben <r.wob...@home.nl>: If I understood everything well on page 26 my Cell initialize must look lik

[Pharo-users] free learnig book

2014-04-06 Thread Roelof Wobben
Hello, I wonder if there is a free book with a lot of exercises so I can practice and learn a lot about Smalltalk. Roelof

Re: [Pharo-users] free learnig book

2014-04-07 Thread Roelof Wobben
Jean Baptiste Arnaud schreef op 7-4-2014 8:58: Steph keeps some treasure: http://stephane.ducasse.free.fr/FreeBooks.html On 07 Apr 2014, at 08:43, Roelof Wobben <r.wob...@home.nl>

[Pharo-users] best solution to store data

2014-09-01 Thread Roelof Wobben
Hello, I want to try to make a financial app for a organisation. There are some 50 customers so also 50 invoices a year. Then the payments . Also 50 a year. Cash and bank accounts . Every month some 10 - 20 things. So on my disk on the programm I now use it costs me some 30 - 50 Kb a year.

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
very easy to serialize a graph of objects to disk. You can also have a look at SandstoneDB, it's pretty small and some people use it. Cheers, Francois On Tue, Sep 2, 2014 at

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
pay attention that images can get corrupted so I would in addition use a file based approach (STON or whatever). Cheers, Francois On Tue, Sep 2, 2014 at 8:17 AM,

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
Hello Estaban. Do you have a tutorial or a example how I can store my data in objects. Roelof Esteban Lorenzano schreef op 2-9-2014 15:23: problem with relational databases is that they do not match really

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
in that link as well). Tim On 2 Sep 2014, at 07:17, Roelof Wobben <r.wob...@home.nl> wrote:

Re: [Pharo-users] best solution to store data

2014-09-02 Thread Roelof Wobben
I know what I want. The steps that I have to take. 1) Users and user management. User has username and password. 2) entering and editing plans. Plans has sort and amount. 3) entering and editing way of payment. this has name and sort payment 4) Entering and editing customers. Customers has

Re: [Pharo-users] how to get out of this mess

2019-03-25 Thread Roelof Wobben
and Ricard , I forgot to thank you for the explantion and the code. Roelof Op 25-3-2019 om 08:40 schreef Roelof Wobben: Sorry. Is this more the OOP way. https://github.com

Re: [Pharo-users] how to get out of this mess

2019-03-25 Thread Roelof Wobben
make this work. Roelof Op 25-3-2019 om 08:40 schreef Roelof Wobben: Sorry. Is this more the OOP way. https://github.com/RoelofWobben/Tournament-/tree/master/Exercism-Tournament Roelof

[Pharo-users] how to convert this with a stream

2019-03-26 Thread Roelof Wobben
Hello, I have a SortedCollection of teams. Now I need to convert this to a line like this : 'Allegoric Alaskans |  1 |  1 |  0 |  0 |  3' I tried it with this : outcome := Array         streamContents: [ :s |             TeamStatusSorted                 do: [ :each |              

Re: [Pharo-users] how to convert this with a stream

2019-03-26 Thread Roelof Wobben
nts: On 26 Mar 2019, at 20:12, Roelof Wobben wrote: Hello, I have a SortedCollection of teams. Now I need to convert this to a line like this : 'Allegoric Alaskans | 1 | 1 | 0 | 0 | 3' I tried it with this : outcome := Array streamContents: [ :s

Re: [Pharo-users] how to convert this with a stream

2019-03-26 Thread Roelof Wobben
happening is that the block is being added to outcome which will then print itself out. Cheers Carlo On 26 Mar 2019, at 20:45, Roelof Wobben wrote: Hello Could be , im confused now I tried this : outcome add: 'Team | MP |

Re: [Pharo-users] how to convert this with a stream

2019-03-27 Thread Roelof Wobben
  printTeams: teams on: aStream     -- print heading --     -- print each team --   printTeamsAsString: teams     ^String streamContents: [:s | self printTeams: teams on:s]

[Pharo-users] why is asDictonary a class method

2019-03-30 Thread Roelof Wobben
Hello, Im busy with a new challenge from exercism. Where I have to keep track of a robot , where it facing and on that coordinate the robot is. so I made this function what the test wanted createDirection: aString position: aCollection     self robot: (Robot directionLooking: aString) yoursel

Re: [Pharo-users] why is asDictonary a class method

2019-03-30 Thread Roelof Wobben
e     robot: aRobot   (aRobot isKindOf: Robot)     ifFalse: [aRobot error: 'not an instance of Robot']. you would have caught what I suspect is your problem. Check question 4.

Re: [Pharo-users] why is asDictonary a class method

2019-03-31 Thread Roelof Wobben
On Sun, 31 Mar 2019 at 19:55, Roelof Wobben <r.wob...@home.nl> wrote:

[Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
Hello, For a challenge of Exercism I need to check if some parenthes and brackets are balanced. so for example ()  = true ([])  = true but (])  is not true because the bracket has no opening bracket. Now I wonder if I can premature end a #do:  like this collection do: [:element | (conditio

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
Op 4-4-2019 om 13:22 schreef K K Subbu: On 04/04/19 4:46 PM, Roelof Wobben wrote: Hello, For a challenge of Exercism I need to check if some parenthes and brackets are balanced. so for example ()  = true ([])  = true but (])  is not true because the bracket has no opening bracket. Now I

Re: [Pharo-users] is this valid smalltalk

2019-04-04 Thread Roelof Wobben
rom the method through any number of blocks. For example, you will sometimes see code like    x := aDictionary at: aKey ifAbsent: [^false]. On Fri, 5 Apr 2019 at 00:16, Roelof Wobben <r.wob...@home.nl>

[Pharo-users] can I do something like this with Double Dispatch

2019-04-06 Thread Roelof Wobben
Hello, Just thinking how to solve the bowling challenge from exercism. but I wonder if I can do something like this in the method that checks if I have the right object I was thinking about this : Result -- Strike -- Spare -- allOther then In  Strike something like this checkForBonus: numb

[Pharo-users] difference between double dispatch and the method explains here

2019-04-06 Thread Roelof Wobben
Hello, I just learned double dispatch. And now for the Robot challenge of exercism Tim has pointed me to this article(https://blog.metaobject.com/2019/04/accessors-have-message-obsession.html) but I fail to see how the move method looks like in that article. I had a conversation with Tim in

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-06 Thread Roelof Wobben
]) key Roelof Op 6-4-2019 om 15:15 schreef K K Subbu: On 06/04/19 4:49 PM, Roelof Wobben wrote: Hello, I just learned double dispatch. And now for the Robot challenge of exer

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-07 Thread Roelof Wobben
Op 6-4-2019 om 15:15 schreef K K Subbu: On 06/04/19 4:49 PM, Roelof Wobben wrote: Hello, I just learned double dispatch. And now for the Robot challenge of exercism Tim has pointed me to this article(https://blog.metaobject.com/2019/04/accessors-have-message-obsession.html) but I fail to

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-07 Thread Roelof Wobben
that it is MUCH simpler than you think.  If you cannot show us the Smalltalk version of the problem, can you show us the version for some other language? On Sun, 7 Apr 2019 at 20:15, Roelof Wobben <r.wob

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-08 Thread Roelof Wobben
thing counter-productive, refuse the challenge. On Mon, 8 Apr 2019 at 17:21, Roelof Wobben <r.wob...@home.nl> wrote: I can try to explain what I trying to solve.

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-08 Thread Roelof Wobben
tements is that Point already exists, so costs nothing to write, and as a familiar class, code using it should be easy to read. If someone challenges you to do something counter-productive, refuse the challenge.

Re: [Pharo-users] can I do something like this with Double Dispatch

2019-04-08 Thread Roelof Wobben
KEEP IT SIMPLE. Not every *concept* needs to be a *class*. On Sat, 6 Apr 2019 at 21:53, Roelof Wobben <r.wob...@home.nl> wrote: Hello, Just thinking how to solve t

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-08 Thread Roelof Wobben
t;Space-Age" exercise where the README.md capitalised the planet names but test_Space-Age. insisted on lower case. That might well happen here. Just for grins, Dictionary>> asPoint   ^

Re: [Pharo-users] difference between double dispatch and the method explains here

2019-04-08 Thread Roelof Wobben
    start   [StdIn atEnd] whileFalse: [ |robot| robot := Robot new. Robot obey: StdIn nextLine.      StdOut print: Robot location; cr]. On Tue, 9 Apr 2019 at 02:58,

[Pharo-users] is this a valid Smalltalk way

2019-04-12 Thread Roelof Wobben
Hello, Im thinking how to solve this one : https://github.com/exercism/problem-specifications/blob/master/exercises/bowling/description.md so I thought because you throw two times for a frame to solve it like this : aCollection withIndexDo: [:index :item |    (if spare) ifTrue: take 3 item

Re: [Pharo-users] is this a valid Smalltalk way

2019-04-13 Thread Roelof Wobben
re depends on the scores of the *next* two throws, it might be easier to process the throws backwards. On Sat, 13 Apr 2019 at 04:32, Roelof Wobben <r.wob...@home.nl> wrote: > > Hello, > > Im thinking h

[Pharo-users] how to model this a better way

2019-04-18 Thread Roelof Wobben
Hello, I know I have asked earlier but im still stuck on this one : https://github.com/exercism/problem-specifications/blob/master/exercises/robot-simulator/description.md I tried with all double dispatch but that will

Re: [Pharo-users] how to model this a better way

2019-04-18 Thread Roelof Wobben
On Thu, Apr 18, 2019 at 8:57 AM Roelof Wobben <r.wob...@home.nl> wrote: Hello, I know I have asked earlier but im still stuck on this

Re: [Pharo-users] how to model this a better way

2019-04-18 Thread Roelof Wobben
10:01 AM Roelof Wobben <r.wob...@home.nl> wrote: yep, I have read that one but I never gets a answer how I can "convert"  a point to something

Re: [Pharo-users] how to model this a better way

2019-04-18 Thread Roelof Wobben
Ben, I have such a dictionary in my first attempt to solve this one. and another one for the facing. Lets say we have this scenario: Robot begins at (0,0) facing north then it turns right so it faces west then it moves one step so the new position is (-1,0) then it turns left so it faces north

Re: [Pharo-users] how to model this a better way

2019-04-18 Thread Roelof Wobben
ard Sargent: On Thu, Apr 18, 2019 at 10:01 AM Roelof Wobben <r.wob...@home.nl> wrote: yep,

Re: [Pharo-users] how to model this a better way

2019-04-19 Thread Roelof Wobben
ving a lot on the table because the question is asked from a narrow perspective. On 4/18/19 10:01 , Roelof Wobben wrote: because the challenge wants this to be the answer : (Dictionary new add: 'direction' -> 'north'; ad

Re: [Pharo-users] how to model this a better way

2019-04-24 Thread Roelof Wobben
Thanks all. Because of all the differences of oponion here what Object Oriented is and im still very stuck at some exercises of exercism , I have to decide to quit smalltalk. One says to not use classes , the other says use classes. im more and more confused. Maybe later I come back when I

Re: [Pharo-users] how to model this a better way

2019-04-24 Thread Roelof Wobben
Hello Ricard O'  Keefe For my exercism is a way of practising smalltalk and get familair with the concepts. So sometimes for me totally new concepts like Double Dispatch.  so in your questions some of the thirth and fourth question. And I try to sol

[Pharo-users] upload a stack trace with playground

2019-05-15 Thread Roelof Wobben
Hello, I tried to upload a stack trace with playground  with upload to cloud but I see then a 400 bad request error message. I was a file of 3Kb. Is there a alternative so I can upload a stack trace. Roelof

[Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
Hello, Im testing all my solutions with critiz and can solve almost all problems, Only this one I cannot figure out. I have this code (gifts allButLast inject: '' into: [ :str :each | str , each , ', ' ]) , 'and ' , gif

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
m nextPut: $,; space ] ] Esteban A. Maringolo On Thu, May 16, 2019 at 4:21 PM Roelof Wobben <r.wob...@home.nl> wrote: Hello, Im testing all my

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
Op 16-5-2019 om 21:47 schreef Roelof Wobben: oke, and then do something like : stream := String streamContents: [:stream | gifts do: [:each | stream nextPutAll: each ] separatedBy: [ stream nextPut: $,; space ]

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
nope, it takes also the last one and that schould not be used. Op 16-5-2019 om 21:51 schreef Roelof Wobben: I think this is better  ^  String streamContents: [:stream | gifts do: [:each | stream

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
r the hint. Roelof Op 16-5-2019 om 21:51 schreef Roelof Wobben: I think this is better  ^  String streamContents: [:stream | gifts do: [:each | stream nextPutAll: each ] separatedBy: [ stream nextPut:

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Roelof Wobben
uot; instead of "and". Now it makes sense. Esteban A. Maringolo On Thu, May 16, 2019 at 5:09 PM Roelof W

[Pharo-users] Why do I not see the transactions when opening a customer

2019-08-16 Thread Roelof Wobben
Hello, I try now to make this challege work on Pharo which is orginal a c# problem to practice OOP. The challenge is this : Consider the following situation: You have a bank account. Bank account has a password which is hidden and you can access data with

  1   2   3   4   >