Original Post
quote:Thought people might find this interesting. There are people who shy away from using the Standard Library containers because they want to write their own. This article suggests that you shouldn't even be writing your own loops.
This article argues that calling an algorithm is usually preferable to any hand-written loop. Why? There are three reasons: Efficiency: Algorithms are often more efficient than the loops programmers produce. Correctness: Writing loops is more subject to errors than calling algorithms. Maintainability: Algorithm calls often yield code that is clearer and more straightforward than the corresponding explicit loops. The remainder of this article lays out the case for algorithms.