On Thu, Jun 9, 2016 at 11:05 AM Cesar Saez <[email protected]> wrote:

> >> Why not pass the stretchy to makeIk as an argument?
> >
> >... Because maybe I makeIkStretchy has arguments on it own....
> >... Same goes with the twist method. what if I discover a new setup of
> twisting in the future?
>
> That is usually handled by abstracting the computation as a solver and
> passing a reference to said solver as an argument (it is what Maya does
> with its ik, there are not multiple subclasses per type of ik).
>

And for google-ability: "Composition over Inheritance".


> Think about the code using your classes, your future self, when all the
> implementation details are not so clear in your mind, isn't it painful to
> have to import and learn how to use different things in order to create a
> limb with slightly different features? What about maintenance?
>
> And yes, by testing I meant unit/integration/automated testing (hopefully
> test-first or tdd), sorry if I wasn't clear enough.
>
> Anyway, good luck with the project,
> Cheers!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPamJi_Ge58xuR8652veqq2T16vmJtgmo4UfdQEN77yCwetoYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPamJi_Ge58xuR8652veqq2T16vmJtgmo4UfdQEN77yCwetoYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2NoHu7MZV6wqe775zYGDDyT%3D%3DajXZtp3GdWq1uGzMxNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to