Richard Herring said:
Because it offers a solution to a problem you actually have?
No. After I got the answer opendir, readdir and so on would be a
function family solving my problem it took my 20 minutes to implement
the whole algorithm. I could not have been faster using Boost or _any_
other class library.
Well, why not? It's three function calls and 20 lines of code less
to maintain,
The replacement of my code by other code leads to "code less to
maintain"?
In my experience many people tend to use multiple libraries. If they
get a new programming task they go into the Internet immediately to
look for a library "that solves the problem". Especially many young
developers do not know any other way. They don't even think about
implementing an algorithm themselves. And they really don't think
about dependencies (on software providers, on the software's versions
and patches, on compilers, on platforms), about maintenance (perhaps
for a runtime period of 10 years!), about portability, about
performance and other aspects. Today a very markable aim of
developement communicated especially by managers is just a short
developement time regardless of the result ...
I have several reasons to remain independent in this case. I have
several reasons to use libraries in other cases. It depends just on
many conditions. The use of a library is never the one and only and
also not always the best solution in a given situation.
and the cost is approximately nil if you're already using the
library anyway.
Yes but exactly this condition was _not_ given. I did not use the
Boost library in this program and I do not want to change this.
T.M.