On 10/17/06, Matthew Fulmer tapplek@gmail.com wrote:
Cool. That heavily commented SampleImageViewerMorph>>initialize is especially useful
Yes, that took a while to get working as I wanted!
The code is attached, and can also be found at
http://www.squeaksource.com/SampleImageViewer.html
I'd appreciate it if anyone could spare some time to have a look at
this
sample and see if I'm making any obvious mistakes (especially my termination of processes, which I suspect isn't very robust), or if
the
'squeakiness' of the code could be improved.
I am not sure, but every time I hit enter in the dir box, or click the main panel, I get a debug window. What Squeak version is this made for? I am using 3.8. A quick question: is the correct way to run this program: SampleImageViewerMorph new openInWorld
Just "SampleImageViewerMorph new" is enough. I found that I was using a couple of newish features (String>>startsWith: and Collection>>select:thenDo:), so I've replaced them. I've tested Version 2 (attached) on a 3.7/3.8 image.
If anyone from the Documentation team is building a repository of sample
code for beginners, I'd be happy to incorporate this application into
such
a repository.
We have not considered a code repository, but this morph is quite simple, and may be useful in a tutorial. I might incorporate it into my beginner's tutorial: http://minnow.cc.gatech.edu/squeak/5869
Please feel free to do so. I'd be happy to contribute some more commentary if it would help. Maybe I should have written a test-case to go with it as well!
I think it would be a useful to have a set of such simple applications available to point new users at once they'd worked their way through tutorial materials and were wanting to get their teeth into something more meaty.
For instance, I'm now working on a simple rss reader which might sit nicely alongside this (grabbing content from the BBC news rss, parsing xml, and displaying the articles on a map background). I'd be interested in seeing if other people have some simple applications that could demonstrate other aspects which I know can be difficult to 'get' eg, communicating with the OS, use of DBs, persistency solutions. If there was a reasonable cross-section of code, it would be striaghtforward to have a set of "SampleCode-..." packages on SqueakMap to provide easy access.
Cheers, Michael
On Tue, Oct 17, 2006 at 11:40:27AM +0100, Michael Davies wrote:
For instance, I'm now working on a simple rss reader which might sit nicely alongside this (grabbing content from the BBC news rss, parsing xml, and displaying the articles on a map background). I'd be interested in seeing if other people have some simple applications that could demonstrate other aspects which I know can be difficult to 'get' eg, communicating with the OS, use of DBs, persistency solutions. If there was a reasonable cross-section of code, it would be striaghtforward to have a set of "SampleCode-..." packages on SqueakMap to provide easy access.
An RSS reader? You may want to work with Derek O'Connell, who is working on a similar newbie project. His project is a Stock chart that shows rising companies in blue and falling ones in red, and he has also written a simple RSS reader: http://minnow.cc.gatech.edu/squeak/5873
An RSS reader? You may want to work with Derek O'Connell, who is
working on a similar newbie project. His project is a Stock chart that shows rising companies in blue and falling ones in red, and he has also written a simple RSS reader: http://minnow.cc.gatech.edu/squeak/5873
Looks interesting - I'll have a closer look at that, thanks!
beginners@lists.squeakfoundation.org