Re: [Pharo-dev] Bug in Zinc with empty Context Type?

2015-07-30 Thread Otto Behrens
Hi, We recently stumbled onto this and use WAMimeType because we have WAFile instances (from Seaside-Core). It appears as if there is a lot of overlap with ZnMimeType. It would have been better for us to use ZnMimeType because we had to map the mime type in a similar way that ZnMimeType >> forFi

Re: [Pharo-dev] merging in a filetree repository

2015-07-08 Thread Otto Behrens
We have a .gitignore file that contains: version methodProperties.json So, we don't bother. The side effects of this are: Without methodProperties.json, you have the default author and meaningless timestamp. Without the version file, loading does not work properly. So we have a script that genera

Re: [Pharo-dev] Fwd: exception handling problem when running tests in Nautilus

2015-04-21 Thread Otto Behrens
> We miss a functionality in Pharo to easily run (a shorcut) a set of selected > tests (ex: your project tests). This way, you can have a quick feedback on > your updates. > As it is not so easy, I often fallback to run tests from Nautilus (a test > class or sometimes only a test method). This

Re: [Pharo-dev] Fwd: exception handling problem when running tests in Nautilus

2015-04-21 Thread Otto Behrens
n-handling-when-running-tests-in-Nautilus Is this the right place? > > Regards, > Christophe. > > Le 21 avr. 2015 à 15:34, Otto Behrens a écrit : > >> I realised I may have posted this on the wrong list. Is there anyone >> that can help with this one please? >>

[Pharo-dev] Fwd: exception handling problem when running tests in Nautilus

2015-04-21 Thread Otto Behrens
I realised I may have posted this on the wrong list. Is there anyone that can help with this one please? -- Forwarded message -- From: Otto Behrens Date: Sun, Apr 19, 2015 at 10:08 AM Subject: exception handling problem when running tests in Nautilus To: pharo-us

Re: [Pharo-dev] fixing 'format on display' and 'format on accept'

2014-12-04 Thread Otto Behrens
Thanks a lot. Phew, that was difficult. :-) On Thu, Dec 4, 2014 at 12:55 PM, Marcus Denker wrote: > >> On 04 Dec 2014, at 10:41, Otto Behrens wrote: >> >> Hi, >> >> We just upgraded to Pharo 3 (after using pharo 1.4 for a looong time). >> I'm a bi

Re: [Pharo-dev] fixing 'format on display' and 'format on accept'

2014-12-04 Thread Otto Behrens
Hi, We just upgraded to Pharo 3 (after using pharo 1.4 for a looong time). I'm a bit new to some things, so pardon my ignorance. We're so used to auto formatting the code, it drives us nuts not to have it. I eventually figured out that the Pharo30 inbox is here: http://smalltalkhub.com/mc/Pharo/

Re: [Pharo-dev] Sort by property

2014-03-11 Thread Otto Behrens
Why do we need one method that takes either a block or symbol? > SequenceableCollection>>sortedAs: aSortBlockOrSymbol Perhaps sort: can take a block and sortedAs: a symbol?

Re: [Pharo-dev] Null Object Pattern

2014-01-23 Thread Otto Behrens
> MyNullClass>>#ifNil: nilBlock ifNotNil: notNilBlock > nilBlock value. > > Any ideas? I've got a slightly different understanding of the null object pattern, perhaps. I would use it this way: MyClass is an abstract class that defines an interface that users would expect, with a subcl

Re: [Pharo-dev] [Glass] printString and asString

2014-01-06 Thread Otto Behrens
> I don't really understand why. How would you distinguish between which > (kinds of) core objects and which not? Will you not end up with a > displayString on Object again? > > > You will not know all the 'why's in advance. The concrete answer is in the > next developer's creativity. > > What you

Re: [Pharo-dev] [Glass] printString and asString

2014-01-06 Thread Otto Behrens
>> I need for example a string representation of objects generally to >> display in anchors in our seaside application. We have a class >> DomainObject from which most of our classes inherit, so this is >> probably the place to add a 'displayString' for something like this. > > Not necessarily doma

Re: [Pharo-dev] [Glass] printString and asString

2014-01-05 Thread Otto Behrens
Thank you everyone for your comments. I agree with Martin's comments and Stef's most recent one. Some of the messages may not have reached the other lists as this was actually posted to glass and pharo. Is this the right conclusion of what we're going to do now? - On Pharo and GemStone, we will

Re: [Pharo-dev] printString and asString

2014-01-03 Thread Otto Behrens
> #printString is used for debugging, that's why the default > implementation shows the class name. It's implemented using #printOn: Makes sense. So unless there's a nice symbol that one can add to show what it is (eg #foo printString = '#foo'), implementors of printOn: should call super printOn:,

Re: [Pharo-dev] printString and asString

2014-01-03 Thread Otto Behrens
> 'Conversion' implies using the resulting String in some further > computation. 'Printing' usually implies displaying something to the > user (and nothing more), or serialising to a file/network. What kinds of computation are you thinking of regarding a string? I think I understand what you're sa

Re: [Pharo-dev] printString and asString

2014-01-03 Thread Otto Behrens
> #printString and #printOn: protocol should be used for printing and #asString > for conversion. This implies that #asString should not depend on #print > protocol. Ah, I used it the other way around: printOn depends on asString. I saw 'conversion' as the lower level. Why do you distinguish he

[Pharo-dev] printString and asString

2014-01-03 Thread Otto Behrens
Hi, I've run into one of my favorite problems in Smalltalk and decided to try the list. Please don't shoot me on this one; perhaps you've run into it yourself. If there are discussions that I should read, please send me some info. My first assumption is that the difference between printString and

Re: [Pharo-dev] Object>>#if:then:else:

2013-06-18 Thread Otto Behrens
It feels to me as if this code wants to be on the temp. So perhaps, > | temp | > temp := . > temp > ifTrue: [ temp ] > ifFalse: [ temp ]. can become doSomething and on Temp: doSomething self ifTrue: [ self ] ifFalse: [ self ] It often works out nicer if you move th

Re: [Pharo-dev] Killing respondsTo:

2013-05-14 Thread Otto Behrens
+1 On Tuesday, 14 May 2013, stephane ducasse wrote: > why do we want to introduce a bad slow type system on certain single place? > Why a UI element would have to check that a given instance can do something > while we never ever do it in any other places. > > if we have a button and its label sh

Re: [Pharo-dev] Killing respondsTo:

2013-05-14 Thread Otto Behrens
+1 On Tuesday, 14 May 2013, stephane ducasse wrote: > why do we want to introduce a bad slow type system on certain single place? > Why a UI element would have to check that a given instance can do something > while we never ever do it in any other places. > > if we have a button and its label sh