In fact I try to avoid utilities class by defining as few as possible but the mandatory/handy class side methods on the most relevant class. My point is that if you script is useful then it can be an interesting method with some parameters and its "instantiation" can be just a class side method
calling a method with the right parameters.

<<
I usually create a method and a class.
because script do not compose well.
>>
ᐧ



Thanks, that sounds interesting. And, just for clarity, do you mean that you create a single class e.g. MyGists and then create methods for each of your useful snippets? Or, is there a benefit in creating a class per gist?

Cheers

Reply via email to