On 11/13/2013 11:39, Bahman Movaqar wrote:
On 11/13/2013 11:13, Bahman Movaqar wrote:
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.
After reading Sven's reply, I came up with this design. Is it the idiomatic way to handle this problem in Smalltalk: <pseudo-design> class JulianConverter: instance variable: 'day' #toGregorian #toIranian class GregorianConverter: instance variable: 'year month day' #toJulian class IranianConverter: instance variable: 'year month day' #toJulian </pseudo-design> -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation & Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)