On 11/13/2013 11:22, jtuc...@objektfabrik.de wrote:
> Bahman,
>
> Am 13.11.13 08:43, schrieb Bahman Movaqar:
>> Let's say I have a method with signature in a language like Java as
>> below:
>>    gregorianDayToJulianDay(year, month, day)
>>
>> What could be a proper naming for this method in Smalltalk?  I'm a bit
>> confused as I'm so used to the concept of methods being "verbs" which
>> accept some arguments.
>>
>> I'd appreciate any help/idea.
>>
> Thats always hard ;-)
>
> I suggest a method name starting with 'convert' or 'as'. If you
> implement the method on a specialized GregorianDate class, you can
> sure omit the part for what you convert from, in a helper class you
> need to keep it.
>
> So let's assume you implement the method on a helper class. Then I'd
> suggest
>
> #convertGregorianToJulianYear:month:day:

Thank you for your suggestions. They look fine but in all of them,
somehow, the word "Year" or "Day" becomes part of the message name,
which is somehow confusing, isn't it?  Or maybe I'm not used to this
concept yet.

-- 
Bahman Movaqar  (http://BahmanM.com)

ERP Evaluation, Implementation & Deployment Consultant
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to