Am 25.03.2012 17:54, schrieb Bharath M R:
I am in favor of using experimental_lambdify explicitly for plotting and
nothing else. I think this will allow us to separate the plotting module
from the main codebase. This I think will allow us to add more features
to the plotting  backend without having to worry about breaking the
features of sympy. Though this will have lots of code duplication, I think
it is justified by the ease with which we can add/ manipulate evaluation of
series for plotting.This is just my opinion which might not agree with
software programming practices.

Software programming practices generally agree :-)

One exception though: It is advisable to move the duplicate code into a common function or class, and call it from the places where the original code was ripped out. Particular care should be taken to make the new deduplicated code so that it has a nice, as-narrow-as-possible interface. (A "narrow" interface is one that has a small number of functions, with short parameters lists, and a small number of preconditions under which a function may be called. The narrower the better.)

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to