It is indeed about *receiveDataInto:fromHost:port:* I am talking about.
Its *fromHost* parameter is not of the same nature as the *toHost* parameter
in the message *sendUDPData:toHost:port: *
In the former it is expected a ByteArray to work, in the later a
SocketAdress.
*About the context.
*This school year I am doing basic Pharo programming with Dr.Geo (12 and 13
years old). I wrote a school book[1] for that. But It is a bit tedious to
teach and not enough appealing. It may just be my fault or the format of the
book. For the next semester, I will explore alternative format, in more
independent teaching unit.
For the longer term, I want to explore alternative way of teaching Pharo,
more appealing. Something more in the kids interest area.
Do you know Minetest, it is a free implementation of Minecraft? It comes
with a server software and client instances communicating with the server
with a dedicated UDP protocol. In the past, we use it in an architecture
project in connexion with math.
Written with Pharo, I envision a Minetest client using the UPD protocol to
interact with a server. This Pharo written client will be used as a
programming environment to control the kid avatar in the Minetest 3D world,
like a BotsInc of 3D. The Pharo client will not render the view, it will be
done by the usual Minetest client.
For example, a kid could code the behaviour of his avatar to build a tower
with a Minetest DSL:
../..
100 timesRepeat: [
avatar goUp
4 timesRepeat: [
10 timesRepeat: [avatar dropBrick; moveForward].
avatar turnLeft] ]
There are some extensions in Minetest client (Mod in Minetest terminology)
to do some basic programming but it is not as interesting as could be Pharo
programming with a dedicated DSL[3].
I speculate it could be pretty cool and it should meet a lot of success
among kids. Plus provide good teaching interest and more Pharo awareness.
Hilaire
[1]
https://launchpad.net/drgeo/trunk/19.09/+download/programmer-avec-drgeo.pdf
[2] http://www.minetest.net
[3]
https://forum.minetest.net/viewtopic.php?f=14&p=365620&sid=5d825763b9cb5579c5e195c0bf4e3b28#p365113
-----
http://drgeo.eu
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html