I have read both the docs and the posts on clientcide, plus the
mootools more source, but I'm still not 100% sure about this..

Before, I was extending classes, classes from myself, classes from -
More, classes from others (e.g. forge/github) to add some extra
functionality I needed, overwriting existing methods and adding new
ones. Looking back I could probably have used Refactor as well... I
think....

In -More I see more Refactor used in HtmlTable for example, where it
adds a little bit extra with each change (zebra, sort, etc.)
With the Fx there's usually Extends. From what I understand it has to
do with not destroying the namespace, but that's still a little vague
to me.
Could you say that if there's no subclass then you don't need Extend?
Or, use Extend if you change actual functionality of class A to B
(like Fx.Morph becoming a move thing with Fx.Move)? With Refactor it
seems like its meant to be used when adding small extra bits but not
changing the original functionality of a class.. (makes sense?)

For example, Request is Refactored with Spinner functionality.. in
theory you could also extend Request to implement/add Spinner (no?),
but because it's only a small addition you refactor it.. or am I
thinking wrong?



(btw- I feel like I'm flooding the google group with too many posts,
but that's just because I have a "Moo" moment currently and I'm trying
to understand Git at the same time, while in fact I should be doing
beziers in Illustrator. But anyway, I hope to help out some others as
well too soon)

Reply via email to