* Posts by Dan

2 publicly visible posts • joined 8 Aug 2006

Writing the Rules

Dan

interesting

I really liked this, but comnig from a C++ background where we're not privileged to have such infrastructure software I would have liked more of a theoretical background into the rules, along with some references ... This is exactly a problem I'm facing at work today so for once an hour that I've spent on the net is justified!)

Out of the (C++) loop

Dan

I preferred what scott meyers said

That sometimes loops work well and othertimes algorithms work well, algos if you can use a standard functor or if it makes sense to decouple your loop body into a functor (normally will for a non trivial body) - once you do it a few times you dont waste time trying to get it to compile

And the downside of not using algorithms is you clutter up what the code does with the mundane affair of stepping from element to element