<br><div class="gmail_quote">On Thu, Sep 23, 2010 at 3:54 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Sep 23, 2010 at 1:35 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
><br>
> Why is everyone so against convenience functions? They make things<br>
> convenient (read "easy", "intuitive", "clean") to use by definition...<br>
<br>
</div>Most of us are in it for the long haul (as developers), and the<br>
smaller the class interfaces are, the easier it is to maintain the VTK<br>
codebase.<br>
<br>
In my opinion, class interfaces should be orthogonal, meaning that<br>
there should be only one method for achieving one specific class<br>
functionality.  This maximizes code coverage.<br>
<br>
But the biggest problem with convenience methods is that different<br>
people have different opinions about what is the "best/easiest" way of<br>
doing something.  You can't add new methods to classes just because<br>
someone thinks there is a better way of doing things.  New methods<br>
should add new functionality.  Otherwise, they are bloat.<br></blockquote><div><br></div><div>Well said. "Convenience" makes things more expensive over the long run.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5"><br>
  David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br>