Re: [Pharo-users] IceGenericError: Failed to connect to github.com: Interrupted system call

2019-06-10 Thread Hernán Morales Durand
This is interesting, Pharo VM crashes with segmentation fault on macOS High Sierra when I select the error instance variable from the GTDebugger. crash.dmp attached. On the other hand, I wrote a workaround for others with the same problem and who need a quick & dirty fix. Cheers, Hernán El lun.

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Christopher Fuhrman
Using an intermediate object "Play" (abstraction of a track being played during an episode), a UML diagram

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
these numbers are super tiny.. 25 episodes so far with about 15 tracks per episode.. > On Jun 10, 2019, at 1:36 PM, James Foster wrote: > > The disadvantage is extra time doing the lookup. But before you discount this > approach, ask yourself what performance penalty this will cost. How many

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
ah! this exactly how i ended up putting it together… and thanks, Jim for the pointers… I just wanted to make sure I wasn’t totally missing something.. > On Jun 10, 2019, at 1:53 PM, Esteban Maringolo wrote: > > But it's not that one object has two "parents" (this isn't a tree like > structu

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I've done a couple cheap and cheerful ORMs in various languages. I always punt on doing the relationships because finishing the app is more urgent than writing a whole framework. I just add an instance method that executes the appropriate SQL to fetch the related objects

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
By reference I mean an instance variable. So it's the same thing. But it's not that one object has two "parents" (this isn't a tree like structure). The object (it is, the Track) has two references to the Episodes where it appears, such reference happens because aTrack as a instance variable "hold

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
when you say references, how does this look in pharo? I don’t know that I have used such a relationship. I was thinking that an object would have an instance variable that was an ordered collection of objects.. So having one object belong to two parent objects could be tricky. > On Jun 10, 2

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread James Foster
Sergio, When you have a two-way relationship, one option is to keep duplicate information and use it to go from one object to the others. The advantage is rapid lookup, but the disadvantage is the need to update multiple places to maintain consistency (as well as the space it takes). Another

[Pharo-users] Dr. Geo release 19.06a

2019-06-10 Thread Hilaire
I am please to announce the Dr. Geo release 19.06, the GNU interactive geometry software. It follows the release 19.03 in March 2019. - New features - Bugs fix - Updated French user guide - New book "Programmer des math avec Dr. Geo" . WIP - Feedback a

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
The M:N relationship is pretty straightforward in pure OO design. You have anEpisode that references a collection with instances of Track. And each Track has a collection of episodes. Of course this could be elaborated even further, and have an object like TrackPlay sitting in between of anEpisod

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
Thanks! I’ll look at this. I’d like to keep it in the OO domain.. There is no existing data. Everything would be created for this project. > On Jun 10, 2019, at 12:53 PM, Ben Coman wrote: > > If you are keeping your design purely in the object-oriented domain, > you might try Mutual Friends..

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Ben Coman
On Mon, 10 Jun 2019 at 20:21, sergio ruiz wrote: > I am currently putting together a Seaside website for my radio show. I am > trying to figure out how to model the "has and belongs to many" > relationships. > > Each episode can have many tracks, each of these tracks can belong to > several episo

[Pharo-users] Modeling HABTM

2019-06-10 Thread sergio ruiz
I am currently putting together a Seaside website for my radio show. I am trying to figure out how to model the "has and belongs to many" relationships. Each episode can have many tracks, each of these tracks can belong to several episodes. I want to be able to present a listing of which episode