I use class method for generic actions that are not to be performed per
instance of data. But if I have multiple instances of data then instance
methods make more sense.

Some classes offer both instance and class methods doing the same process.
So in the end its up to you there is no golden rule. For example you may
have a class method that return the instance of the class which you can
then use to trigger additional instance methods. Sky is the limit ;)

On Tue, Mar 3, 2015 at 2:22 PM, Julien Delplanque <jul...@tamere.eu> wrote:

> On 03/03/15 13:11, Serge Stinckwich wrote:
> > This is not really difficult to implement a khi2 or ks-test. I'm doing
> that with my 1st year university student in Python. I will try if I found
> sone time in Pharo.
> I know it's not complicated, I had to implement KS test in python for
> another project (but I don't think you are one of my professor :p).
>
> I will do it soon but I'm still noob in smalltalk so I don't know where
> to implement this and how: class messages or object messages for example?
>
> Julien
>
>

Reply via email to