Re: [Pharo-users] mentor wanted

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 08:30 schreef Richard Sargent: On Fri, Apr 24, 2020, 22:25 Richard O'Keefe wrote: Roelof, I don't thin

[Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Hello, Im doing the OOP book written by Ducassse and im now stuck at the network-simulator. Code so far can be found here : https://github.com/RoelofWobben/Network-simulator Im stuck at 2 places 1) What for datatype is loopba

Re: [Pharo-users] mentor question 1

2020-04-25 Thread tbrunz
1. 'loopback' is a node, just like 'source' and 'destination'. A network is a mesh of 'nodes' joined by 'links'. Your Pharo program represents one of those nodes: It is the 'loopback' node. 2. The block in the #linksTowards:do: method is the action to take on a packet, depending on whether its d

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 20:04 schreef tbrunz: 1. 'loopback' is a node, just like 'source' and 'destination'. A network is a mesh of 'nodes' joined by 'links'. Your Pharo program represents one of those nodes: It is the 'loopback' node. oke, so I can do : loopback := KNetworkNode

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 25-4-2020 om 20:17 schreef Roelof Wobben: Op 25-4-2020 om 20:04 schreef tbrunz: 1. 'loopback' is a node, just like 'source' and 'destination'.  A network is a mesh of 'nodes' joined by 'links'.  Your Pharo program represents one of those nodes: It is the 'loopback' nod

[Pharo-users] [ANN] Cheer for THE Medusa - the single Smalltalk based battle snake

2020-04-25 Thread Jerry Kott
Hi lists, you may recall a mention of Battlesnake in these forums before. Today, the Battlesnake team is holding an online tournament that you can watch live on Twitch: https://www.twitch.tv/battlesnakeofficial . My entry THE Medusa is the only Smallt

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Richard Sargent
On Sat, Apr 25, 2020, 11:46 Roelof Wobben via Pharo-users < pharo-users@lists.pharo.org> wrote: > Op 25-4-2020 om 20:17 schreef Roelof Wobben: > > Op 25-4-2020 om 20:04 schreef tbrunz: > >> 1. 'loopback' is a node, just like 'source' and 'destination'. A > >> network is > >> a mesh of 'nodes' joi

Re: [Pharo-users] mentor question 1

2020-04-25 Thread tbrunz
Hi Richard, I looked the repo; he's defined 3 classes: one for packets, one for nodes, and one for links. So yes, he instantiates links. Likely each node has a collection of links (each of which leads to another node in the network). The application is to simulate a network by modeling it in ST

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Richard Sargent
On Sat, Apr 25, 2020, 15:50 tbrunz wrote: > Hi Richard, > > I looked the repo; he's defined 3 classes: one for packets, one for nodes, > and one for links. So yes, he instantiates links. Likely each node has a > collection of links (each of which leads to another node in the network). > The app

Re: [Pharo-users] mentor question 1

2020-04-25 Thread tbrunz
Roelof, The core concept (as I see it) is that each node in your simulated network will receive packets as the simulation progresses, and the nodes must do something with each packet they receive. In OOP, it often helps to think about the objects in terms of "their responsibilities". And by that

Re: [Pharo-users] mentor question 1

2020-04-25 Thread tbrunz
Richard, I don't think it was silly. I'm sitting here thinking to myself, "Wow, that's creative... Pharo being Pharo, you can write applications that can send *blocks* between nodes, not just *data*..." The concept of sending behaviors as well as data opens up some interesting and powerful p

Re: [Pharo-users] mentor question 1

2020-04-25 Thread Richard Sargent
On Sat, Apr 25, 2020, 16:17 tbrunz wrote: > Richard, > > I don't think it was silly. I'm sitting here thinking to myself, "Wow, > that's creative... Pharo being Pharo, you can write applications that can > send *blocks* between nodes, not just *data*..." > I understand. I meant that in the wor

Re: [Pharo-users] mentor wanted

2020-04-25 Thread Richard O'Keefe
Roelof, *I* was offering to write something. On Sat, 25 Apr 2020 at 19:47, Roelof Wobben via Pharo-users wrote: > > Op 25-4-2020 om 08:30 schreef Richard Sargent: > > On Fri, Apr 24, 2020, 22:25 Richard O'Keefe wrote: >> >> Roelof, I don't think CRC cards or the GRASP patterns or anything like t