[Newbies] Re: Beginners Digest, Vol 92, Issue 9

Herbert König herbertkoenig at gmx.net
Sat Dec 28 20:32:11 UTC 2013


Hi David,

I was completely mislead by "broadcast". Hardware guy :-))

But whether you use announcements or the ages old dependency mechanism 
(look for changed and update and friends) it means you first will have 
to register to receive the updates, announcements, events ...

Later some object will just iterate over your collection. Usually using 
a framework tends to slow things down a bit but makes things clearer if 
the framework is the right choice for your task.

But go for clarity first then use the profiler then optimise. Sounds 
like I'm repeating Casey here. Well, it's worth repeating :-)

Cheers

Herbert



Am 28.12.2013 06:57, schrieb David Holiday:
> oops - disregard on the dead link. turns out my internet connection 
> got wonky :-p
>
>
> David Holiday
> -------------------------------------------------
> San Diego State University
> neuburge at rohan.sdsu.edu <mailto:neuburge at rohan.sdsu.edu>
>
>
>
>
>
>
> On Dec 27, 2013, at 6:11 PM, 
> beginners-request at lists.squeakfoundation.org 
> <mailto:beginners-request at lists.squeakfoundation.org> wrote:
>
>> Send Beginners mailing list submissions to
>> beginners at lists.squeakfoundation.org 
>> <mailto:beginners at lists.squeakfoundation.org>
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>> or, via email, send a message with subject or body 'help' to
>> beginners-request at lists.squeakfoundation.org
>>
>> You can reach the person managing the list at
>> beginners-owner at lists.squeakfoundation.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Beginners digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: Is There A Tutorial for People Who Have NeverProgrammed?
>>      (Herbert K?nig)
>>   2. Is there a way to broadcast messages to more than one
>>      recipient? (David Holiday)
>>   3. Re: Is there a way to broadcast messages to more than one
>>      recipient? (Herbert K?nig)
>>   4. Re: Is there a way to broadcast messages to more than one
>>      recipient? (Casey Ransberger)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 27 Dec 2013 13:53:29 +0100
>> From: Herbert K?nig <herbertkoenig at gmx.net>
>> Subject: Re: [Newbies] Is There A Tutorial for People Who Have Never
>> Programmed?
>> To: beginners at lists.squeakfoundation.org
>> Message-ID: <52BD7849.4070002 at gmx.net>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hello William,
>>
>> there is a book named "Learn programming with robots" which is aimed at
>> teaching programming with Squeak.
>> The book can be obtained via Amazon and google turned up this page for
>> download.
>> https://gforge.inria.fr/frs/download.php/10764/BotsInc-OriginalEnglish.pdf
>>
>> Then there is Squeak by example which is meant to teach Squeak but
>> assumes some programming experience.
>>
>> In both cases find the accompanying Squeak images. This is because
>> Squeak evolves and for newcomers it's important that the examples just
>> work. Although finding out why an example did not work is a great
>> learning achievement people are usually good at providing enough not
>> working examples for themselves. :-)
>>
>> The site Casey recommended is a great resource, it can be found here.
>> http://stephane.ducasse.free.fr/FreeBooks.html
>>
>> But you have to be a bit careful because of the differences in Smalltalk
>> dialects. Which means not every example will work unmodified in a
>> current Squeak image.
>>
>> Other than that there are Etoys and Scratch which are based on Squeak
>> but provide a graphical introduction (tile programming) into programming.
>>
>> And finding an answer to Casey's question, a project that interests you,
>> may get you some more results.
>>
>> Cheers,
>>
>> Herbert
>>
>> Am 27.12.2013 06:44, schrieb william murphy:
>>> Hello,
>>>
>>> If I have never programmed before but want to learn to program with
>>> Squeak, which tutorial should I read?
>>>
>>> Thank you,
>>>
>>> Will
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: 
>> http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131227/f1494542/attachment-0001.htm
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 27 Dec 2013 11:15:57 -0800
>> From: David Holiday <neuburge at rohan.sdsu.edu>
>> Subject: [Newbies] Is there a way to broadcast messages to more than
>> onerecipient?
>> To: beginners at lists.squeakfoundation.org
>> Message-ID: <35B9F01C-8A1B-40FD-B78B-90BEB495367C at rohan.sdsu.edu>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> As far as I can tell, messages have to be directed at a single 
>> recipient. Is this the case or, for example, is it possible to blast 
>> a message to every member of an Array at the same time?
>>
>>
>> David Holiday
>> -------------------------------------------------
>> San Diego State University
>> neuburge at rohan.sdsu.edu
>>
>>
>>
>>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: 
>> http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131227/c5715766/attachment-0001.htm
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Fri, 27 Dec 2013 20:44:12 +0100
>> From: Herbert K?nig <herbertkoenig at gmx.net>
>> Subject: Re: [Newbies] Is there a way to broadcast messages to more
>> than onerecipient?
>> To: beginners at lists.squeakfoundation.org
>> Message-ID: <52BDD88C.7060105 at gmx.net>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi David,
>>
>> short answer:
>> anArray do: [:each| each message].
>>
>> One of the things to learn about Smalltalk is it's rich collection 
>> protocol.
>>
>> The fact that I use do: might hint that I should reread the protocol of
>> collections, there maybe something more elegant :-))
>>
>> Cheers
>>
>> Herbert
>>
>> Am 27.12.2013 20:15, schrieb David Holiday:
>>> As far as I can tell, messages have to be directed at a single
>>> recipient. Is this the case or, for example, is it possible to blast a
>>> message to every member of an Array at the same time?
>>>
>>>
>>> David Holiday
>>> -------------------------------------------------
>>> San Diego State University
>>> neuburge at rohan.sdsu.edu <mailto:neuburge at rohan.sdsu.edu>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: 
>> http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131227/bba8afda/attachment-0001.htm
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Fri, 27 Dec 2013 18:11:31 -0800
>> From: Casey Ransberger <casey.obrien.r at gmail.com>
>> Subject: Re: [Newbies] Is there a way to broadcast messages to more
>> than onerecipient?
>> To: "A friendly place to get answers to even the most basic questions
>> aboutSqueak." <beginners at lists.squeakfoundation.org>
>> Message-ID:
>> <CACemAZciouy6aRYTjtU8hMRWKo6f-NCby07Z+DD0RPnzGhM5XA at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> I think I heard about something like what you seem to want a bit ago 
>> called
>> Announcements. Objects can "sign up" to be notified of a particular 
>> event.
>> I dug up a wiki page about it.
>>
>> http://wiki.squeak.org/squeak/5734
>>
>> Hope this helps,
>>
>> Casey
>>
>>
>> On Fri, Dec 27, 2013 at 11:44 AM, Herbert König 
>> <herbertkoenig at gmx.net>wrote:
>>
>>> Hi David,
>>>
>>> short answer:
>>> anArray do: [:each| each message].
>>>
>>> One of the things to learn about Smalltalk is it's rich collection
>>> protocol.
>>>
>>> The fact that I use do: might hint that I should reread the protocol of
>>> collections, there maybe something more elegant :-))
>>>
>>> Cheers
>>>
>>> Herbert
>>>
>>> Am 27.12.2013 20:15, schrieb David Holiday:
>>>
>>> As far as I can tell, messages have to be directed at a single 
>>> recipient.
>>> Is this the case or, for example, is it possible to blast a message to
>>> every member of an Array at the same time?
>>>
>>>
>>> David Holiday
>>> -------------------------------------------------
>>> San Diego State University
>>> neuburge at rohan.sdsu.edu
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing 
>>> listBeginners at lists.squeakfoundation.orghttp://lists.squeakfoundation.org/mailman/listinfo/beginners
>>>
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>>
>>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: 
>> http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131227/18d53e55/attachment.htm
>>
>> ------------------------------
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
>>
>> End of Beginners Digest, Vol 92, Issue 9
>> ****************************************
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131228/0570b107/attachment-0001.htm


More information about the Beginners mailing list