Re: [Pharo-users] Beta testers for the Pharo mooc

2016-03-23 Thread Jeff Gray
I tried the link. I got a form to send a mail but it errored with 'Missing domain' Are you getting responses? -- View this message in context: http://forum.world.st/Beta-testers-for-the-Pharo-mooc-tp4886075p4886225.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] ZnUrl>>#= - Why Require Same Classes?

2016-03-23 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > I am curious though why you subclasses ZnUrl. If you did not add structure > but only behaviour you could have added some extension methods. I implemented a ProtectedUrl, which carries around the additional information it needs (in this case an authenticated client

Re: [Pharo-users] ZnUrl>>#= - Why Require Same Classes?

2016-03-23 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > I don't think the mutability is a problem I thought it was a no-no for an object's hash to ever change, which it would if the path changed, no? - Cheers, Sean -- View this message in context: http://forum.world.st/ZnUrl-Why-Require-Same-Classes-tp4886102p488

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Johan Fabry
Exactly the solution that I thought of :-) > On Mar 23, 2016, at 16:51, Esteban A. Maringolo wrote: > > 2016-03-23 16:31 GMT-03:00 Peter Uhnák : >>> I would do something like: >>> >>> Color named: #red. >>> Color named: #blue. >> >> >> That idea crossed my mind (it would be good for serializ

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Damien Pollet
On 23 March 2016 at 18:40, Peter Uhnák wrote: > Why / how ? >> > > As explained in the first example. > > Try adding #organization or #package methods to the class-side. > I'd rather have selector namespaces to remove homonymy conflicts…

Re: [Pharo-users] Customizing SmalltalkEditor context menu issue

2016-03-23 Thread Ala'a Mohammad
Thanks for the great explanation! I had reached an almost the target menu by modify all of SmalltalkEditor, TClassDescription and AbstractNautilusUI classes methods. To be honest I'm newbie and this pragma thing seems foreign between the other pleasant experiences with smalltaking, and kind of hi

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Michal Balda
If there are not so many options and if they do not programatically change, I would suggest creating a dedicated subclass for all of them: – BormParticipantOrganizationType – BormParticipantSystemType – BormParticipantPersonType All subclasses of BormParticipantType. And then use something lik

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Esteban A. Maringolo
2016-03-23 16:31 GMT-03:00 Peter Uhnák : >> I would do something like: >> >> Color named: #red. >> Color named: #blue. > > > That idea crossed my mind (it would be good for serialization from some > external data), but how would you as user/programmer know what to put in > there? > The idea of enum

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
> > I would do something like: > > Color named: #red. > Color named: #blue. > > That idea crossed my mind (it would be good for serialization from some external data), but how would you as user/programmer know what to put in there? The idea of enums is that you have a predetermined set of predeterm

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread stepharo
+1 Le 23/3/16 18:53, Johan Fabry a écrit : I would do something like: Color named: #red. Color named: #blue. et cetera. the implementation of named: is a dictionary lookup. Color class>>named: aSymbol ^self colors at: aSymbol And the colors dictionary is a class instance variable that is l

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Johan Fabry
I would do something like: Color named: #red. Color named: #blue. et cetera. the implementation of named: is a dictionary lookup. Color class>>named: aSymbol ^self colors at: aSymbol And the colors dictionary is a class instance variable that is lazily initialized by its accessor. Pr

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Esteban A. Maringolo
2016-03-23 14:40 GMT-03:00 Peter Uhnák : >> Why / how ? > > > As explained in the first example. > > Try adding #organization or #package methods to the class-side. The "only 5 reserved keywords" is just a half-truth. :) Some selectors are used by the the tooling, and with names to broad that mak

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
> > Why / how ? > As explained in the first example. Try adding #organization or #package methods to the class-side.

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Damien Pollet
On 23 March 2016 at 17:49, Peter Uhnák wrote: > > Color red. >> Color blue. >> >> Unfortunately this doesn't scale, because putting unary methods on the >> class-side is a good way to break your image. >> > Why / how ?

Re: [Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
Plus this may typically interact with some serialization/materialization which would use the base format ('red', 'organization', 'kind'), so if there's any change to the name another mapping format would be required. On Wed, Mar 23, 2016 at 5:41 PM, Peter Uhnák wrote: > Hi, > > as this probably

[Pharo-users] patterns for representing enumerations/constants

2016-03-23 Thread Peter Uhnák
Hi, as this probably doesn't have one solution I am interested in your approach, if you have any. The problem is that often you want to create instances (or just return constants) in some particular domain, e.g. Color red. Color blue. Unfortunately this doesn't scale, because putting unary meth

Re: [Pharo-users] ZnUrl>>#= - Why Require Same Classes?

2016-03-23 Thread Sven Van Caekenberghe
> On 23 Mar 2016, at 15:37, Sean P. DeNigris wrote: > > = anObject > ^ self class == anObject class > ... > > Most of the time, I've seen a test for #species, not class. This matters > because I have a custom ZnUrl subclass that I'd like to be equal to a ZnUrl > pointing to the sam

[Pharo-users] ZnUrl>>#= - Why Require Same Classes?

2016-03-23 Thread Sean P. DeNigris
= anObject ^ self class == anObject class ... Most of the time, I've seen a test for #species, not class. This matters because I have a custom ZnUrl subclass that I'd like to be equal to a ZnUrl pointing to the same place. While we're on the subject, I'm not an expert on hashing,

Re: [Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread Ben Coman
On Wed, Mar 23, 2016 at 5:22 PM, Martin Bähr wrote: > the kids were more interested in IoT I'm think of getting some ESP8286 [1] modules to connect Pharo (and thus possibly Phratch0 to via TCP/IP. There is a lot of buzz around IoT and I think the ESP8286 might be a way for Pharo to piggyback that

[Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread Torsten Bergmann
Hi Martin, >the kids were more interested in IoT and android workshops than learning >smalltalk. Yes - I played lately with some stuff myself like IBeacons (which you could get now for small money already) and BLE on Android. The Smart Mirror is also a nice idea. All cool stuff as well. >i n

Re: [Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread Damien Cassou
Torsten Bergmann writes: > I was asked on #slack by user embee (Martin Baehr) how he can create an up to > date setup with "PharoLauncher" > configuration locally that he can afterwards easily distribute ("unzip and > go") to 40 Windows PCs for a > training/presentation. > He was preparing Ph

Re: [Pharo-users] [Pillar] Logo for Pillar

2016-03-23 Thread stepharo
I think more about the ones below the pier :) http://www.routard.com/photos/los_angeles/18237-la_jetee_de_malibu.htm http://fr.dreamstime.com/photos-libres-de-droits-jetée-avec-le-restaurant-à-la-mer-baltique-allemagne-image1493 but this is not good for a logo. the one that sustain the pier

[Pharo-users] Beta testers for the Pharo mooc

2016-03-23 Thread stepharo
Hi guys we are looking for beta tester (We do not have yet the english translation for the mooc). If you are interested contact me on stephane.duca...@inria.fr Stef

Re: [Pharo-users] Seaside 3.1 and 3.2 in Pharo 5

2016-03-23 Thread Johan Brichau
Torsten pointed me to a typo I made for loading version 3.2.0. This is the correct version: “Load pre-release 3.2" Metacello new configuration: 'Seaside3'; repository: 'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main'

Re: [Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread stepharo
cool ressource!!! Le 23/3/16 09:45, Torsten Bergmann a écrit : Hi, I was asked on #slack by user embee (Martin Baehr) how he can create an up to date setup with "PharoLauncher" configuration locally that he can afterwards easily distribute ("unzip and go") to 40 Windows PCs for a training/pr

Re: [Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread Martin Bähr
Excerpts from Torsten Bergmann's message of 2016-03-23 09:45:09 +0100: > I was asked on #slack by martin how he can create an up to date setup with > "PharoLauncher" configuration locally that he can afterwards easily > distribute ("unzip and go") to 40 Windows PCs for a training/presentation. > >

[Pharo-users] Setup a Launcher distribution for Pharo trainings/presentations on Windows

2016-03-23 Thread Torsten Bergmann
Hi, I was asked on #slack by user embee (Martin Baehr) how he can create an up to date setup with "PharoLauncher" configuration locally that he can afterwards easily distribute ("unzip and go") to 40 Windows PCs for a training/presentation. He was preparing Pharo for Singapore FOSSASIA confer