Consider perhaps:
(StringMorph contents: 'hello world') openInHand
-- Scott
At 10:25 AM -0800 1/29/02, Ned Konz wrote:
On Monday 28 January 2002 08:19 pm, Aaron J Reichow wrote:
Is there another person or two who would be interested in giving me a hand to Squeakify this text, introducing a Squeak book that would be pretty comprehensive for beginners?
And so we see yet another computer programming intro that starts with "hello world"...
How would one present that in Squeak?
- get to the world menu, or to the Tools pane, or to the Objects tool
- open a Transcript (from the menu), or drag out a Transcript
- open a Workspace, or drag out a Workspace
- type in something like:
Transcript show: 'hello world'
- select it, or hit alt-d (or cmd-d, depending on whether you have a mac)
- now look in the transcript
As you see, the focus is suddenly more on the environment than on the language. This isn't surprising, of course, given that one of the most important parts of Squeak is the envirionment.
But the focus of the book is on the language; I wonder how well Squeak would fit in to this book form.
Also, it doesn't seem like this presentation would show Squeak's best side (that is, why print text into the Transcript when one could make things move?)
Scott Wallace wrote:
Consider perhaps:
(StringMorph contents: 'hello world') openInHand
-- Scott
Even better Speaker manWithHead say: 'hello world'
Karl
At 10:25 AM -0800 1/29/02, Ned Konz wrote:
On Monday 28 January 2002 08:19 pm, Aaron J Reichow wrote:
Is there another person or two who would be interested in giving me a hand to Squeakify this text, introducing a Squeak book that would be pretty comprehensive for beginners?
And so we see yet another computer programming intro that starts with "hello world"...
How would one present that in Squeak?
- get to the world menu, or to the Tools pane, or to the Objects tool
- open a Transcript (from the menu), or drag out a Transcript
- open a Workspace, or drag out a Workspace
- type in something like:
Transcript show: 'hello world'
- select it, or hit alt-d (or cmd-d, depending on whether you have a mac)
- now look in the transcript
As you see, the focus is suddenly more on the environment than on the language. This isn't surprising, of course, given that one of the most important parts of Squeak is the envirionment.
But the focus of the book is on the language; I wonder how well Squeak would fit in to this book form.
Also, it doesn't seem like this presentation would show Squeak's best side (that is, why print text into the Transcript when one could make things move?)
I put the following three variants of a 'hello world'-program on a swiki page http://minnow.cc.gatech.edu/squeak/2230 (Hello World programs) Accessible by >Home page>Squeak Bon Mots
I anybody has another way of doing it....
Hannes Hirzel
Scott Wallace wrote:
(StringMorph contents: 'hello world') openInHand
Karl Ramberg wrote:
Speaker manWithHead say: 'hello world'
At 10:25 AM -0800 1/29/02, Ned Konz wrote:
How would one present that in Squeak?
- get to the world menu, or to the Tools pane, or to the Objects tool
- open a Transcript (from the menu), or drag out a Transcript
- open a Workspace, or drag out a Workspace
- type in something like:
Transcript show: 'hello world'
- select it, or hit alt-d (or cmd-d, depending on whether you have a mac)
- now look in the transcript
And so we see yet another computer programming intro that starts with
"hello world"...
How would one present that in Squeak?
Hopefully, by the time the book is done, for the benefit of truly newbies, clueless about morphic and all the other goodies in Squeak:
Squeak HelloWorld.st
BTW, this can be done now in Smallscript as 'stsc hello.sts'. Gee, don't I wish that there will be a Morphic version for it ;-)
Cheers,
PhiHo.
-----Original Message----- From: squeak-dev-admin@lists.squeakfoundation.org [mailto:squeak-dev-admin@lists.squeakfoundation.org] On Behalf Of Karl Ramberg Sent: Sunday, February 03, 2002 3:32 AM To: squeak-dev@lists.squeakfoundation.org Subject: Re: A Squeak version of "How to Think Like a Computer Scientist"
Scott Wallace wrote:
Consider perhaps:
(StringMorph contents: 'hello world') openInHand
-- Scott
Even better Speaker manWithHead say: 'hello world'
Karl
At 10:25 AM -0800 1/29/02, Ned Konz wrote:
On Monday 28 January 2002 08:19 pm, Aaron J Reichow wrote:
Is there another person or two who would be interested in giving me a hand to Squeakify this text, introducing a Squeak book that would be pretty comprehensive for beginners?
And so we see yet another computer programming intro that starts with
"hello world"...
How would one present that in Squeak?
- get to the world menu, or to the Tools pane, or to the Objects tool
- open a Transcript (from the menu), or drag out a Transcript
- open a Workspace, or drag out a Workspace
- type in something like:
Transcript show: 'hello world'
- select it, or hit alt-d (or cmd-d, depending on whether you have a
mac)
- now look in the transcript
As you see, the focus is suddenly more on the environment than on the
language. This isn't surprising, of course, given that one of the most important parts of Squeak is the envirionment.
But the focus of the book is on the language; I wonder how well Squeak would fit in to this book form.
Also, it doesn't seem like this presentation would show Squeak's best
side (that is, why print text into the Transcript when one could make
things move?)
squeak-dev@lists.squeakfoundation.org