Collapsing two replies into one, for easier "management":
--
Looking at a little of your code:
template< typename InputIterator, typename T >
inline typename accumulate_traits< T >::result_type
accumulate( InputIterator begin,
InputIterator end,
T v = accumulate_traits< T >::first() )
{
return breeze::accumulate_traits<
T >::compute( begin, end, v ); // gps qualify?
This one is an inline comment.
Yes. You caught one of my famous (! ;-)) temporary comments (for the
record, 'g' and 'p' in "gps" are my initials; 's' is a... secret
).
They are markers for issues I want to think further about, and won't
ever get into releases (it should be evident that the code isn't at a
release stage: the project front page reports "planning" development
status, and no unit tests have been committed yet, though of course I
have them).
It looks to me like an indication of unfinished code
Indeed. Or rather of code that I'm aware to be unfinished (I might
consider "finished" lot of things which actually aren't
).
--
I think you could cut down the size of your "header" comment a great
deal (where you explain the license and such.
I already (tried to) cut it down, and it is shorter than what
<
http://www.gnu.org/licenses/gpl.html#SEC4>
recommends (as well as shorter than the average prologues I find in
open source headers). For one thing I omitted the no-warranty
disclaimer.
I'd remove the part which says to write to the FSF in case no copy of
the license accompanies the code, too, if only I were sure that the
removal is allowed (I was assured that my other snips *are* legally
fine).
[...]
http://breeze.svn.sourceforge.net/v...iom/bool_testable.hpp?revision=16&view=markup
There is more comment than code, as before, but worse...the code is
intermixed into the comments so you have like 100 lines of comment, a
line of code...20 lines of comment, a line of code, 10 lines of comment,
2 lines of code...etc...not good.
Well, not sure your general point holds, but that file is a particular
case, anyway (note the todo markers as well).
Sure
If one exposes his/her code publicly s/he must be willing to
accept criticisms. And I even asked for it
BTW, one of the Breeze (ambitious) goals is to encourage adoption, and
centralized development/testing, of "modern C++" into the open source
world; with few exceptions I have noticed that open source C++ is on
average a "C with classes", and I think we can have much better than
that (the best C++ is IMHO much more *reliable* than the best C or C
with classes). I think everyone will benefit from a wider use of more
robust techniques (we all have a Linux box, don't we?) so some of the
comments in my code are "didactic", to say so. Despite that, I don't
think they would be much different in a production environment, at
least in an environment where the effort to write such comments would
be adequately appreciated.
--
HELP: many of this group's participants might know that I'm the legit
~~~~ owner of the yahoo account with id 'gennaro_prota'; I would be
immensely grateful to anyone who might help me gaining access
to it again (note that I'm now using the id 'gennaro.prota').
Thanks!
Genny.