Hello,
Is there a book / tutorial/ challenges that I can use to become a expert
in Pharo ?
Roelof
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
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.
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>
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
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
Hello,
Is there a 64 bit version of Pharo.
I use a 64 bit version without the 32 bit libraries so no multilib
Roelof
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:
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
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
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
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
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
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
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
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
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
-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
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.
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
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
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
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
:
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,
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.
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
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
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
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 =
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.
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
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
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
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
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
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
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
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&
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,
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
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
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
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
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
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
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
Mark Rizun schreef op 2-4-2014 14:22:
And only on this
method the test fail on should:
testCellOnState
| cell |
cell := BlankCell
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
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
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 |
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
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
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
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>
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.
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
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,
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
in that link as well).
Tim
On 2 Sep 2014, at 07:17, Roelof Wobben <r.wob...@home.nl>
wrote:
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
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
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
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 |
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
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 |
printTeams: teams
on: aStream
-- print heading
--
-- print each team
--
printTeamsAsString:
teams
^String
streamContents: [:s | self printTeams: teams on:s]
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
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.
On Sun, 31 Mar 2019 at
19:55, Roelof Wobben <r.wob...@home.nl>
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 wonder if I can premature end a #do: like this
collection do: [:element | (conditio
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
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>
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
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
]) 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
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
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
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.
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.
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
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
^
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,
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 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
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
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
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
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
ard Sargent:
On Thu, Apr 18,
2019 at 10:01 AM Roelof Wobben <r.wob...@home.nl>
wrote:
yep,
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
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
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
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
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
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
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 ]
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
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:
uot; instead of "and".
Now it makes sense.
Esteban A. Maringolo
On Thu, May 16, 2019 at 5:09
PM Roelof W
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 - 100 of 360 matches
Mail list logo