[Pharo-project] A small quiz: longest selector

2012-09-13 Thread Pavel Krivanek
Hi, I've got a small quiz question for fun: What is the length of the longest method selector in Pharo? Before you will write an oneliner to get the exact result, try to make a tip ;-) Cheers, -- Pavel

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Benjamin
I will have bet on a Morphic method, but the result is surprising :) Ben On Sep 13, 2012, at 7:15 PM, Pavel Krivanek wrote: > Hi, > > I've got a small quiz question for fun: What is the length of the > longest method selector in Pharo? > > Before you will write an oneliner to get the exact re

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Sean P. DeNigris
Pavel Krivanek-3 wrote > > Before you will write an oneliner to get the exact result, try to make a > tip ;-) > #subclass:instanceVariableNames:classVariableNames:poolDictionaries:category: ? probably not, but that's the first thing that came to mind... -- View this message in context: http

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Sven Van Caekenberghe
Symbol allSymbols detectMax: [ :each | each size ] MCClassDefinition>>#initializeWithName:superclassName:traitComposition:classTraitComposition:category:instVarNames:classVarNames:poolDictionaryNames:classInstVarNames:type:comment:commentStamp: 173 On 13 Sep 2012, at 19:15, Pavel Krivanek wrote

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Pavel Krivanek
in 20281 there is even longer method selector :-) -- Pavel On Thu, Sep 13, 2012 at 8:31 PM, Sven Van Caekenberghe wrote: > Symbol allSymbols detectMax: [ :each | each size ] > > MCClassDefinition>>#initializeWithName:superclassName:traitComposition:classTraitComposition:category:instVarNames:cla

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Sven Van Caekenberghe
Hmm, I did that in #281 … How can there be a longer selector if that was the longest symbol ? This is fun ;-) On 13 Sep 2012, at 20:38, Pavel Krivanek wrote: > in 20281 there is even longer method selector :-) > > -- Pavel > > On Thu, Sep 13, 2012 at 8:31 PM, Sven Van Caekenberghe wrote: >>

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Pavel Krivanek
hmm, well, as I see I haven't used clean image, there was Tanker in it. One selector there has 189 characters :-) -- Pavel On Thu, Sep 13, 2012 at 9:12 PM, Sven Van Caekenberghe wrote: > Hmm, I did that in #281 … > > How can there be a longer selector if that was the longest symbol ? > > This is

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Esteban A. Maringolo
Good oneliner. But why `Symbol allSymbols asSortedCollection last` Doesn't return the same? -- View this message in context: http://forum.world.st/A-small-quiz-longest-selector-tp4647311p4647355.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Pavel Krivanek
it sorts by alphabetical order, not by symbol size On Thu, Sep 13, 2012 at 10:21 PM, Esteban A. Maringolo wrote: > Good oneliner. > > But why `Symbol allSymbols asSortedCollection last` > > Doesn't return the same? > > > > > > > > > > > > > -- > View this message in context: > http://forum.world

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Esteban A. Maringolo
Pavel Krivanek-3 wrote > > it sorts by alphabetical order, not by symbol size > Excellent, I didn't look into its implementation. Thank you Pavel. -- View this message in context: http://forum.world.st/A-small-quiz-longest-selector-tp4647311p4647357.html Sent from the Pharo Smalltalk mail

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > > #detectMax: Woot! I've needed this several times and hand-rolled something because I didn't know it existed... and to think this thread started as a joke... -- View this message in context: http://forum.world.st/A-small-quiz-longest-selector-tp4647311p464736

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread H. Hirzel
This means that a browser which is just like a regular natural language dictionary could be useful. A list of buttons (or a list) with A...Z and then just the list of selectors and their class and comment. Not actually new thing. I think Ernest Micklei from the Netherlands had a web site displayin

Re: [Pharo-project] A small quiz: longest selector

2012-09-13 Thread H. Hirzel
On 9/13/12, H. Hirzel wrote: > This means that a browser which is just like a regular natural > language dictionary could be useful. A list of buttons (or a list) > with A...Z and then just the list of selectors and their class and > comment. > > Not actually new thing. I think Ernest Micklei from