Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-09 Thread Herby Vojčík
Esteban A. Maringolo wrote: 2017-08-08 17:49 GMT-03:00 Esteban Lorenzano: Extension. Helpers are for javaers. Extensions are concise, and right to the point, but as long as they stay in your private image or prove of value to everybody else both in function and selector naming. My guides are:

Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-09 Thread Esteban A. Maringolo
2017-08-08 17:49 GMT-03:00 Esteban Lorenzano : > Extension. Helpers are for javaers. Extensions are concise, and right to the point, but as long as they stay in your private image or prove of value to everybody else both in function and selector naming. My guides are: A. If it's your image, exten

Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-09 Thread Henrik Johansen
> On 8 Aug 2017, at 22:39 , Herby Vojčík wrote: > > Hello! > > I've got this portion in my delegate: > > requestPayload ifNotNil: [ uuidKeys do: [ :each | > requestPayload at: each ifPresent: [ :s | > requestPayload at: each put: (UUID fromString: s) ] ] ]. >

Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-08 Thread Ben Coman
On Wed, Aug 9, 2017 at 4:39 AM, Herby Vojčík wrote: > Hello! > > I've got this portion in my delegate: > > requestPayload ifNotNil: [ uuidKeys do: [ :each | > requestPayload at: each ifPresent: [ :s | > requestPayload at: each put: (UUID fromString: s) ] ] ]. >

Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-08 Thread Richard Sargent
Herby Vojčík wrote > Hello! > > I've got this portion in my delegate: > > requestPayload ifNotNil: [ uuidKeys do: [ :each | > requestPayload at: each ifPresent: [ :s | > requestPayload at: each > put: (UUID fromString: s) ] ] ]. > responsePayload := self towerg

Re: [Pharo-users] Stylistic question: private helper vs extension method?

2017-08-08 Thread Esteban Lorenzano
Extension. Helpers are for javaers. Esteban > On 8 Aug 2017, at 22:39, Herby Vojčík wrote: > > Hello! > > I've got this portion in my delegate: > >requestPayload ifNotNil: [ uuidKeys do: [ :each | >requestPayload at: each ifPresent: [ :s | requestPayload at: each > put: (UUID