[vtk-developers] KdTree FindPointsWithinRadius

David Cole david.cole at kitware.com
Thu Sep 23 15:57:50 EDT 2010


On Thu, Sep 23, 2010 at 3:54 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> On Thu, Sep 23, 2010 at 1:35 PM, David Doria <daviddoria at gmail.com> wrote:
> >
> > Why is everyone so against convenience functions? They make things
> > convenient (read "easy", "intuitive", "clean") to use by definition...
>
> Most of us are in it for the long haul (as developers), and the
> smaller the class interfaces are, the easier it is to maintain the VTK
> codebase.
>
> In my opinion, class interfaces should be orthogonal, meaning that
> there should be only one method for achieving one specific class
> functionality.  This maximizes code coverage.
>
> But the biggest problem with convenience methods is that different
> people have different opinions about what is the "best/easiest" way of
> doing something.  You can't add new methods to classes just because
> someone thinks there is a better way of doing things.  New methods
> should add new functionality.  Otherwise, they are bloat.
>

Well said. "Convenience" makes things more expensive over the long run.



>
>  David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100923/f76d31f9/attachment.html>


More information about the vtk-developers mailing list