Boost logo

Boost :

From: David A. Greene (greened_at_[hidden])
Date: 2007-06-16 20:44:50


On Saturday 16 June 2007 05:44, Paul A Bristow wrote:

> >What's the advantage over individual function calls as Phil
> >and others have suggested?
>
> Using the .axis_width().axis_color saves typing
> (and makes it is more compact

This is a poor reason to choose a design. I don't spend most of my time
typing. I spend most of it maintaining what's already been written, and
clarity is king.

> and perhaps clearer by grouping things together).

I'm not convinced. Function calls can be grouped just as well.

> It is entirely optional - novice users can (should?) just use
>
> myplot.axis_width();
> myplot.axis_color();

Ooh, multiple interfaces are about the worst thing you can do. TIMTOWTDI
in my mind is what makes Perl code unmaintainable.

                                        -Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk