Getting Loopy

Sign in to queue


fruit_loops1[1]Over at the Visual Basic blog, Matt Gertz has a great post on hidden effects with loops on stuff you may not realize.  He talks about how looping backwards versus forwards depending on the situation will drastically simplify your code or if you're looping and using the array.Count how the Count property will be called on every pass.

Matt also has another article about additional hidden costs too that is an interesting, quick read.

The Discussion

  • User profile image

    @Mauro, you say that but I still see people making these types of mistakes.  Look at NASA, they forgot to convert from metric to english (maybe it was eng to met) for distance and crashed a multimillion dollar probe.

  • User profile image

    you dont need to read Matt Gertz to know this thing.

Add Your 2 Cents