A Squeak version of "How to Think Like a Computer Scientist"

PhiHo Hoang phiho.hoang at rogers.com
Sun Feb 3 21:04:31 UTC 2002


> >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 at lists.squeakfoundation.org
[mailto:squeak-dev-admin at lists.squeakfoundation.org] On Behalf Of Karl
Ramberg
Sent: Sunday, February 03, 2002 3:32 AM
To: squeak-dev at 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?)




More information about the Squeak-dev mailing list